﻿// Fichier JScript
var winX=250, winY=250;
//function markClick(e){
//    winX=event.screenX;
//    winY=event.screenY;
//}

function pagi(PageIndex, NumRows) {    
    with (document.forms[0])
    {
        nb = elements.length;
        for (i=0;i<nb;i++)    {   
            if (elements[i].name != undefined)
            {        
                if (elements[i].name.lastIndexOf('F_PageIndex')!=-1)
                {   elements[i].value=PageIndex; 
                    break;
                }
            }
        }
        submit();
    }
}

function PopUp(url, width, height, impression) { 
    if (impression=="0") {
    window.open(url, "_blank", "toolbar=no,location=no,resizable=yes,status=no,menubar=no,scrollbars=yes,width="+width+",height="+height+",left="+winX+",top="+winY+"");
    }
    else
    {
    window.open(url, "_blank", "toolbar=yes,location=yes,resizable=yes,status=yes,menubar=yes,scrollbars=yes,width="+width+",height="+height+",left="+winX+",top="+winY+"");
    }
} 


sfHover = function() {
    if (document.getElementById("nav")){
	    var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	    for (var i=0; i<sfEls.length; i++) {
		    sfEls[i].onmouseover=function() {
			    this.className+=" sfhover";
		    }
		    sfEls[i].onmouseout=function() {
			    this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		    }
	    }
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


