// JavaScript Document

// favorie
function favoris()
{
	if ( navigator.appName != 'Microsoft Internet Explorer' )
	{
		window.sidebar.addPanel("Les conseillers Komilfo, stores et fermetures","http://www.komilfo.fr","");
	}else{
		window.external.AddFavorite("http://www.komilfo.fr","Les conseillers Komilfo, stores et fermetures");
	}
} 

// -------- à voir
function CentreWindow(mypage, myname, w, h, scroll, toolbar) {
    var winl = (screen.width - w) / 2 - 305;
    var wint = (screen.height - h) / 2 - 230;
    if (toolbar == undefined) {
        toolbar = "no";
    }
    winprops = "height=" + h + ",width=" + w + ",top=" + wint + ",left=" + winl + ",scrollbars=" + scroll + ",toolbar=" + toolbar + ",resizable=no,status=no";
    win = window.open(mypage, myname, winprops);
    if (parseInt(navigator.appVersion) >= 4) {
        win.window.focus();
    }
    win.window.focus();
}


function partenaire(lang){
	CentreWindow('partenaire_'+lang+'.html', 'NLC', '380', '400', 'yes');
}


function zoom(idvisuel, idcat) {
    window.open("zoom.php?id=" + idvisuel + "&id_cat=" + idcat, "Zoom", "width=600, height=680, location=no, status=no, toolbar=no, scrollbars=no, left=" + (screen.width - 600) / 2 + " , top= " + (screen.height - 680) / 2 + " ");
}

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function valideCheckBox()
{
	if(document.getElementById('condition').checked) document.location.href="adresse.php";
	else alert("Vous devez accepter les conditions generales de vente");
}

function redirect(objId,targ,restore){
	var selObj = null;
	with (document)
	{ 
		if (getElementById) selObj = getElementById(objId);
		if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0; 
	}
}