
// AFFICHE / CACHE DIV
function showHide(id) {
	var elt=document.getElementById(id);
	if ( elt )    elt.style.display = ( elt.style.display == 'none' ) ? '' : 'none';
	return false;
}

// BLOCK LES ERREURS JAVASCRIPT
/*function blockError() { return true; }
    window.onerror = blockError;
*/

// FORMULAIRE DE RECHERCHEfunction inputswap(me,def,setto) {
  if(me.value==def) {
   me.value=setto;
  }
}

// ajout favori

 function favoris(){browserName = navigator.appName;browserVer = parseInt(navigator.appVersion);if (browserName == "Microsoft Internet Explorer" & browserVer >= 4) {window.external.AddFavorite('http:www.nosespaces.com/', 'http:www.nosespaces.com');}} 
// ***************** BLOCK JAVASCRIPT ERRORS *****************function blockError(){return true;}
window.onerror = blockError;

// ***************** ROLL OVER *****************

function makeHoverImages() {    		
var i,imgs = document.getElementsByTagName("img");    		
for (i=0;i!=imgs.length;i++) {    			
if (imgs[i].className.indexOf('rollhover')!=-1) {    				
imgs[i].hoverSrc  = imgs[i].src.substr( 0, imgs[i].src.length - 4 ) + '-hover' + imgs[i].src.substr( imgs[i].src.length - 4 );    				
imgs[i].normalSrc = imgs[i].src; 				
imgs[i].onmouseover = new Function( "this.src=this.hoverSrc" ); 				
imgs[i].onmouseout  = new Function( "this.src=this.normalSrc" );     			
}    		
}    	
}


// *************** 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 form************* 
function ValidLien()
{
	i = document.ValidChoix.ValidListe.selectedIndex;
	if (i == 0) return;
	url = document.ValidChoix.ValidListe.options[i].value;
	parent.location.href = url;
}	