

var win = null;
function nouvPage(url,nom,w,h){
	
	hor = (screen.width) ? (screen.width-w)/2 : 0;
	ver = (screen.height) ? (screen.height-h)/2 : 0;

	settings = 'height='+h+',width='+w+',top='+ver+',left='+hor+',scrollbars=yes,status=no, fullscreen=no'
	win = window.open(url,nom,settings)

}

function newWin(page,width,height) {
	NewWindow = window.open(page,'popup','width='+width+',height='+height+',left=0,top=0,scrollbars=No,resizable=Yes');
	NewWindow.focus();
	screen_height = window.screen.availHeight;
	screen_width = window.screen.availWidth;
	left_point = parseInt(screen_width/2)-(width/2);
	top_point = parseInt(screen_height/2)-(height/2);
	setTimeout('NewWindow.moveTo(left_point,top_point)',0);
	void(0);
}

function change(imgNm,gif) {	
	document.images[imgNm].src = "/images/" + gif;
}

function changePng(imgNm,png) {	
	document.images[imgNm].src = "images/" + png;
}

function openForm(id) {

	largeur=550;
	hauteur=412;

	NewWindow = window.open('/request-form.asp?ft=1&ws='+id,'form','width='+largeur+',height='+hauteur+',left=0,top=0,scrollbars=Yes,resizable=Yes');
	NewWindow.focus();
	screen_height = window.screen.availHeight;
	screen_width = window.screen.availWidth;
	left_point = parseInt(screen_width/2)-(largeur/2);
	top_point = parseInt(screen_height/2)-(hauteur/2);
	setTimeout('NewWindow.moveTo(left_point,top_point)',0);
	void(0);
}

function validSearch(){
     document.f.submit();
}

function launchOverlay2(page,afterurl){
	alert(location.pathname.substring(0,location.pathname.lastIndexOf('/')+1));
	if(page !='survey'){
		lb = new lightbox(page+'.html');
		lb.activate();
		curl = afterurl;
	}else{
		PDF_launch('62A00FE50368A645');
	}
}

function RIFromFlash()
{
	var win=null;
	var winl = (screen.width-600)/2;
	var wint = (screen.height-530)/2;
	var settings ='height=530,width=600,top='+wint+',left='+winl+',scrollbars=No,resizable=no';
	newWindow = window.open('https://www.flexjet25.com/Expert-Guide-Edition/Request-Information/RI.html','popup',settings);
}