function id2element(id)
{
    if (!document.getElementById)return;
    if (document.all)return eval("document.all." + id);
    else return document.getElementById(id);
}

function toggle_msg(id) { id2element("msg" + id).style.display = (id2element("msg" + id).style.display == "none" ? "block" : "none");}


function surligne(texte_var){
	var r,i,s=document.selection.createRange().text;
	if(!s)s=texte_var;
	if(s){r=document.body.createTextRange();for(i=0;r.findText(s);i++){r.execCommand('BackColor','','yellow');r.collapse(false)};}};
	
function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
ns6marquee(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
ns4marquee(document.slider1.document.slider2)
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
ns4layer.document.write(wholemessage)
ns4layer.document.close()
sizeup=ns4layer.document.height
ns4layer.top-=sizeup
ns4slide()
}
function ns4slide(){
if (ns4layer.top>=sizeup*(-1)){
ns4layer.top-=sspeed
setTimeout("ns4slide()",100)
}
else{
ns4layer.top=sheight
ns4slide()
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
ns6div.innerHTML=wholemessage
ns6div.style.top=sheight
sizeup=sheight
ns6slide()
}
function ns6slide(){
if (parseInt(ns6div.style.top)>=sizeup*(-1)){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6slide()",100)
}
else{
ns6div.style.top=sheight
ns6slide()
}
}

function aumoinstrois_lyr()
{
var ok1='oui';
if (window.document.lyric.search_lyr.value.length<3){ok1='no';alert('Votre recherche doit au moins comporter 3 caractères')}
if (ok1=='oui'){window.document.lyric.submit()}
}

function aumoinstrois_sfv()
{
var ok2='oui';
if (window.document.sfv.serie_search.value.length<3){ok2='no';alert('Votre recherche doit au moins comporter 3 caractères')}
if (ok2=='oui'){window.document.sfv.submit()}
}

function aumoinstrois_win()
{
var ok3='oui';
if (window.document.skin.search_win.value.length<3){ok3='no';alert('Votre recherche doit au moins comporter 3 caractères')}
if (ok3=='oui'){window.document.skin.submit()}
}
