// Standard print code
function printIt(){ 
 if (window.print) {
  window.print() ; 
 }else{
  var browsername = '<object id="browsername1" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>';
  document.body.insertAdjacentHTML('beforeEnd', browsername);
  browsername1.ExecWB(6, 2);
 }
}

function goPopup(url, wdth, hgt) {
	window.open(url,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + wdth + ',height=' + hgt + ',framemargin=0,leftmargin=0,topmargin=0,marginwidth=0,marginheight=0');
}

function jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function formDestinos(){
	if(document.form_destinations.dest_txt.value != "" && document.form_destinations.dest_txt.value != "Enter the destination"){
		document.form_destinations.submit()
	}else{
		alert('Enter the destination'); 
		document.form_destinations.dest_txt.focus();
	}
}

function formBook(){
	if(document.form_bookonline.hotel_txt.value != "" && document.form_bookonline.hotel_txt.value != "Enter the hotel name"){
		document.form_bookonline.submit()
	}else{
		alert('Please, enter the hotel name'); 
		document.form_bookonline.hotel_txt.focus();
	}
}

function validaMail(){
	
 	var filter=/^[A-Za-z0-9_._-]+[A-Za-z0-9_]*@[A-Za-z0-9-ביםףתאטעס_-]+\.[A-Za-z0-9_.]+[A-za-z]$/;
	
	if (document.getElementById("email").value=="" || document.getElementById("email").value=="Enter an e-mail"){
		alert("Please enter the email");
	}
	else if(!filter.test(document.getElementById("email").value)) {
		alert("Incorrect format");
	}
	else document.form_bookonline2.submit()
	
		
}
function writeFlash(movie) {
    document.write(movie);
}

//
