function AddToFaves_hp(theval){
    
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = location.href;
	var theloc=theval;
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,theloc);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();	
	
	}
	
function printit(theurl)
{
   window.open(theurl,'','height=600,width=700,resizable=1,toolbars=no,,scrollbars=yes');
}	

function EmailThisPage(EmailPage)
{
   var theurl="/emailthispage.asp?referer="+ EmailPage;
   window.open(theurl,'','height=600,width=700,resizable=1,toolbars=no,scrollbars=yes');
}
 
   function voting(obj)
  {
    var i=0;
	for(i=0;i<5;i++)
	{
	 if(document.voteform.vote[i].checked) 
	 {
      var votevalue=document.voteform.vote[i].value;
      var theurl="/submitrating.asp?referer="+ obj+"&vote="+ votevalue;
      window.open(theurl,'','height=150,width=220,resizable=0,toolbars=no,scrollbars=no');
	 }	
 	}
  }
 