// *************** Ouverture pop fenetre ************* 

function OpenNL(sURL, sName, width, height, scroll)
	{
 sFeatures = 'toolbar=no,menubar=no,statusbar=no,scrollbars='+scroll+',width='+ width+',height='+height;
 window.open(sURL,sName,sFeatures);
	}

//  ************* validation form1 ************* 
function Lien()
{
	i = document.Choix.Liste.selectedIndex;
	if (i == 0) return;
	url = document.Choix.Liste.options[i].value;
	parent.location.href = url;
}

//  ************* validation form2 ************* 
function Lien2()
{
	i = document.Choix2.Liste2.selectedIndex;
	if (i == 0) return;
	url = document.Choix2.Liste2.options[i].value;
	parent.location.href = url;
}

//  ************* validation form3 ************* 
function Lien3()
{
	i = document.Choix3.Liste3.selectedIndex;
	if (i == 0) return;
	url = document.Choix3.Liste3.options[i].value;
	parent.location.href = url;
}


// *************  ajout aux favoris ************* 
function favad() {
	window.external.AddFavorite('<? echo"$baseurl"; ?>','Le site des guyots - chez-guyot.com!');
		}

// block right click

//<!--
//var message="";

//function clickIE() {if (document.all) {(message);return false;}}
//function clickNS(e) {if 
//(document.layers||(document.getElementById&&!document.all)) {
//if (e.which==2||e.which==3) {(message);return false;}}}
//if (document.layers) 
//{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
//else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

//document.oncontextmenu=new Function("return false")
// --> 

// focus sur search

function inputswap(me,def,setto) {
  if(me.value==def) {
   me.value=setto;
  }
}

// block javascipt error

function blockError(){return true;}
window.onerror = blockError;


