function fiche(){
var mode = document.form_fiche.select_fiche.options[document.form_fiche.select_fiche.options.selectedIndex].value;
if(mode!=""){
document.location.href = "page.php?id=10502_" + mode;
}
}

function postForm(ref){
	if(document.search.string.value!=''){
		//document.location.replace('page.php?id=<? echo $HTTP_GET_VARS["id"]; ?>&pg=search.php&string=' + document.search.string.value);
		document.location.replace('page.php?id='+ref+'&pg=search.php&string=' + document.search.string.value);
	}
}

function popup(url, w, h, sc){
window.open(url, 'popup', 'resizable=no,scrollbars=' + sc + ',width=' + w + ',height=' + h + ',menubar=no');
}

function url(chemin){
  window.opener.location = chemin;
  window.close();
}

function urlreplace(chemin){
document.location.href=chemin;
}

function urlpop(chemin){
  window.open(chemin);
  window.close();
}

//Déroulant
function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("cont").getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function ChangeClass(menu, newClass) { 
	 if (document.getElementById) { 
	 	document.getElementById(menu).className = newClass;
	 } 
} 
document.onselectstart = new Function("return true");