<!--
BR=BRV=0;
var win_det=null;
var shi = window.screen.availHeight;
var swi = window.screen.availWidth;

function rentalConditions(conditions_url,location_id,w_width, w_height, title, pik_up_dateR, return_dateR, language){
	//alert(pik_up_dateR);
	if(win_det && win_det.closed==false){
		if (!BR || BR==2) closepopup();
		else reswin(w_width,w_height);
		}
	if(win_det && win_det.closed==false) {
		if(url) win_det.location.replace(url);
		}
	else {			
		scrollbars  = 'yes';					
		var lf=(swi-w_width)/2;
		var tp=(shi-w_height)/2;			
		win_det=window.open(conditions_url+"?pik_up_dateR="+pik_up_dateR+"&return_dateR="+return_dateR+"&location_id="+location_id+"&title="+title+"&language="+language, "" , "left=" + lf + ", top=" + tp+", scrollbars=" + scrollbars+", menubar=no,resizable=no, status=yes, toolbar=no, width=" + w_width + ",height=" + w_height);
		}
	win_det.focus();	
}


function carRentalConditions(conditions_url, ProductID, w_width, w_height, title, language){
	//alert(pik_up_dateR);
	if(win_det && win_det.closed==false){
		if (!BR || BR==2) closepopup();
		else reswin(w_width,w_height);
		}
	if(win_det && win_det.closed==false) {
		if(url) win_det.location.replace(url);
		}
	else {			
		scrollbars  = 'yes';					
		var lf=(swi-w_width)/2;
		var tp=(shi-w_height)/2;			
		win_det=window.open(conditions_url+"?ProductID="+ProductID+"&title="+title+"&language="+language, "" , "left=" + lf + ", top=" + tp+", scrollbars=" + scrollbars+", menubar=no,resizable=no, status=yes, toolbar=no, width=" + w_width + ",height=" + w_height);
		}
	win_det.focus();	
}


function TermsAndConditions(conditions_url, w_width, w_height){
	//alert(pik_up_dateR);
	if(win_det && win_det.closed==false){
		if (!BR || BR==2) closepopup();
		else reswin(w_width,w_height);
		}
	if(win_det && win_det.closed==false) {
		if(url) win_det.location.replace(url);
		}
	else {			
		scrollbars  = 'yes';					
		var lf=(swi-w_width)/2;
		var tp=(shi-w_height)/2;			
		win_det=window.open(conditions_url, "" , "left=" + lf + ", top=" + tp+", scrollbars=" + scrollbars+", menubar=no,resizable=no, status=yes, toolbar=no, width=" + w_width + ",height=" + w_height);
		}
	win_det.focus();	
}

function printOrder(print_url, w_width, w_height){
	if(win_det && win_det.closed==false){
		if (!BR || BR==2) closepopup();
		else reswin(w_width,w_height);
		}
	if(win_det && win_det.closed==false) {
		if(url) win_det.location.replace(url);
		}
	else {			
		scrollbars  = 'yes';					
		var lf=(swi-w_width)/2;
		var tp=(shi-w_height)/2;			
		win_det=window.open(print_url, "" , "left=" + lf + ", top=" + tp+", scrollbars=" + scrollbars+", menubar=no,resizable=no, status=yes, toolbar=no, width=" + w_width + ",height=" + w_height);
		}
	win_det.focus();	
}

function closepopup(){
	if(win_det!=null && win_det.open) 
	win_det.close();
}

if (BR==2 || !BR) 
window.onunload=closepopup;

function reswin(w_width,w_height) {
if(win_det && !win_det.closed) {
	x1 = BR==1 ? win_det.document.body.clientWidth  : win_det.innerWidth;
	y1 = BR==1 ? win_det.document.body.clientHeight : win_det.innerHeight;
	if (x1!=w_width || y1!=w_height)win_det.resizeBy(w_width-x1, w_height-y1);
	}
}
//-->
