﻿function PrintThisPage(content) 
			{ 
			
			var LeftPosition = (screen.width) ? (screen.width-770)/2 : 0;
			var TopPosition = (screen.height) ? ((screen.height-470)/2)-50 : 0;
						
			var sOption="toolbar=no,location=no,directories=no,menubar=no,"; 
				sOption+="scrollbars=yes,width=780,height=470,left=" + LeftPosition + ",top=" + TopPosition + "";
				
				var sWinHTML = document.getElementById(content).innerHTML; 
   
				var winprint=window.open("","euroreizenwindow",sOption); 
					winprint.document.open(); 
					winprint.document.write('<html><HEAD><link href="http://www.travual.com/css/StyleSheetPrint.css" rel="stylesheet" type="text/css" /><title>Travual, your travel manual for city breaks, vacations, hotels and flights in Europe</title></head><body onLoad=window.print()><table border=0 cellpadding=0 cellspacing=0 width=750 height=75><tr><td width=234 valign=top align=left><img src=http://www.travual.com/images/logoTravual.jpg></td><td width=326></td></tr></table>'); 
					winprint.document.write(sWinHTML);          
	                winprint.document.close(); 
					winprint.focus(); 
}


function PopUpURL(pagina,myWidth,myHeight) 
			{ 
			var LeftPosition = (screen.width) ? (screen.width-myWidth)/2 : 0;
			var TopPosition = (screen.height) ? ((screen.height-myHeight)/2)-50 : 0;
						
			var sOption="toolbar=no,location=no,directories=no,menubar=no,"; 
				sOption+="scrollbars=yes,width=" + myWidth +",height=" + myHeight +",left=" + LeftPosition + ",top=" + TopPosition + "";
				
			window.open(pagina,"autopubwin",sOption); 
			
}

function getURL(pagina)
{ 
			var strHref = window.location.href;
			var LeftPosition = (screen.width) ? (screen.width-610)/2 : 0;
			var TopPosition = (screen.height) ? ((screen.height-500)/2)-50 : 0;
						
			var sOption="toolbar=no,location=no,directories=no,menubar=no,"; 
			sOption+="scrollbars=no,width=610,height=500,left=" + LeftPosition + ",top=" + TopPosition + "";
			window.open(pagina + strHref,"euroreizenwindow",sOption); 
} 
