/*************************************************************************
*	Script pour le menu											         *
*	Création le 04/05/09        										 *
*	Site :  HLI															 *
*************************************************************************/

function openwin(f, w, h) {
	if (w >800) w=800;
	if (h >600) h=600;
	w=w+40;
	h=h+40;
	mywin=window.open(f, w, "width=" + w + ", height=" + h + ", status=no, scrollbars=yes, resizable=yes"); //, status=yes
	mywin.moveTo((screen.width-w)/2,(screen.height-(h+80))/2);
	mywin.resizeTo(w,h);
	mywin.creator = self;
} 

function preload(imgObjet, imgSrc) {
	if (document.images){
		eval(imgObjet+'=new Image()')
		eval(imgObjet+'.src="'+imgSrc+'"')
	}

}

function changeImage(layer, imgName, imgObj){
	if (document.layers&&layer!=null)
	    eval('document'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src');
	else
	    document.images[imgName].src = eval(imgObj+".src");
}

function openwinform(f,w,h) {
	mywin=window.open(f,"mywin","width="+w+", height="+h+", scrollbars=yes, resizable=yes");
	mywin.creator=self;
}

function redimform(f, w, h){
	w=w+40;
	h=h+40;
	f.moveTo((screen.width-w)/2,(screen.height-(h+80))/2);
	f.resizeTo(w,h);
}

