function save_listing(id)
{	
	url = "../mylouer/saved-listings/global-fr.php?howto=res&check[]=" + id ;
	popup(url);	
}

function email(id, lang)
{	
	url = "../mylouer/email/index-fr.html?howto=res&cid=" + id ;
	popup(url);
}

function email_checked(id, lang)
{	
	url = "../mylouer/email/index-fr.html?howto=res&check[]=" + id ;
	popup(url);
}
function print_me()
{

	document.form1.action = "http://www.louer.ca/search/print-res03-fr.html?resid=<?=$resid?>";
	document.form1.target= "_blank";
	document.form1.submit();
	document.form1.action="";
	document.form1.target= "_self";
}
function popup(url)
{
	/*CENTER POPPUP */
	var w = 480, h = 340;
	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}	
	var popW = 700, popH = 420;	
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;	
	window.open(url,'popup','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=auto');		
	return;
}
function popup2(url)
{
	/*CENTER POPPUP */
	var w = 480, h = 340;
	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}	
	var popW = 450, popH = 475;	
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;	
	window.open(url,'popup','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=auto');		
	return;
}
function gotocorpiq()
{
	url = "../mylouer/corpiq-member/index-fr.html" ;
	popup2(url);	
}
function popup03(url)
{
	/*CENTER POPPUP */
	var w = 480, h = 600;
	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}	
	var popW = 700, popH = 420;	
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;	
	window.open(url,'popup','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=auto');		
	return;
}
function popup03(url)
{
	/*CENTER POPPUP */
	var w = 480, h = 600;
	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}	
	var popW = 700, popH = 420;	
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;	
	window.open(url,'popup','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=auto');		
	return;
}
function email_checked(id, lang)
{	
	url = "../mylouer/email/index-fr.html?howto=res&check[]=" + id ;
	popup(url);
}
