function validate(theForm) {
var se_objFormElement
se_objFormElement = theForm.frmHotelID
if (se_objFormElement.options[se_objFormElement.selectedIndex].value == "Please select a hotel") {
alert("Please select value: Hotel");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmNumberOfRooms
if (se_objFormElement.value == "") {
alert("Please enter value: Number of rooms");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmCheckInDateMM
if (se_objFormElement.options[se_objFormElement.selectedIndex].value == "") {
alert("Please select value: Check-in month");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmCheckInDateDD
if (se_objFormElement.options[se_objFormElement.selectedIndex].value == "") {
alert("Please select value: Check-in day");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmCheckInDateYYYY
if (se_objFormElement.options[se_objFormElement.selectedIndex].value == "") {
alert("Please select value: Check-in year");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmCheckOutDateMM
if (se_objFormElement.options[se_objFormElement.selectedIndex].value == "") {
alert("Please select value: Check-out month");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmCheckOutDateDD
if (se_objFormElement.options[se_objFormElement.selectedIndex].value == "") {
alert("Please selectvalue: Check-out day");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmCheckOutDateYYYY
if (se_objFormElement.options[se_objFormElement.selectedIndex].value == "") {
alert("Please select value: Check-out year");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmAdults
if (se_objFormElement.value == "") {
alert("Please enter value: Adults");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmChildren
if (se_objFormElement.value == "") {
alert("Please enter value: Children under 12 years");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmPayment
if (se_objFormElement.options[se_objFormElement.selectedIndex].value == "") {
alert("Please select value: Preferred way of payment");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmFirstName
if (se_objFormElement.value == "") {
alert("Please enter value: Forename");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmLastName
if (se_objFormElement.value == "") {
alert("Please enter value: Surname");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmEmail
if (se_objFormElement.value == "") {
alert("Please enter value: E-mail");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmEmail
var goodEmail = se_objFormElement.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (!goodEmail){
alert("Please enter a valid e-mail address");
se_objFormElement.focus();
return (false)
	}
se_objFormElement = theForm.frmCountry
if (se_objFormElement.options[se_objFormElement.selectedIndex].value == "") {
alert("Please select value: Country");
se_objFormElement.focus();
return (false)
	}



var btxt='ONLINE BOOKING%0D%0A%0D%0AFrom:%0D%0A'+document.theForm.frmTitle.value+document.theForm.frmFirstName.value+' '+document.theForm.frmLastName.value;
btxt=btxt+' ('+document.theForm.frmEmail.value+'), '+document.theForm.frmCountry.value+'; %0D%0A(Organisation: '+document.theForm.frmOrganisation.value+'; Position: '+document.theForm.frmPosition.value;
btxt=btxt+'; fax: '+document.theForm.frmFax.value+' );'+'%0D%0A'+'________________________________________________________%0D%0A';
btxt=btxt+'Hotel: '+document.theForm.frmHotelID.value+';%0D%0A';
btxt=btxt+' Room type: '+document.theForm.frmRoomTypeID.value+';%0D%0A';
btxt=btxt+' Number of rooms: '+document.theForm.frmNumberOfRooms.value+';%0D%0A';
btxt=btxt+' Basis: '+document.theForm.frmBasis.value+';%0D%0A';
btxt=btxt+' Check-in date (MM-DD-YYYY): '+document.theForm.frmCheckInDateMM.value+'-'+document.theForm.frmCheckInDateDD.value+'-'+document.theForm.frmCheckInDateYYYY.value+';%0D%0A';
btxt=btxt+' Check-out date (MM-DD-YYYY): '+document.theForm.frmCheckOutDateMM.value+'-'+document.theForm.frmCheckOutDateDD.value+'-'+document.theForm.frmCheckOutDateYYYY.value+';%0D%0A';
btxt=btxt+' Adults: '+document.theForm.frmAdults.value+';%0D%0A';
btxt=btxt+' Children under 12 years: '+document.theForm.frmChildren.value+';%0D%0A';
btxt=btxt+' Transfer: '+document.theForm.frmTransfer.value+';%0D%0A';
btxt=btxt+' Preferred way of payment: '+document.theForm.frmPayment.value+'%0D%0A________________________________________________________%0D%0A'+'Notes:%0D%0A >>'+document.theForm.frmNotes.value+'<< ';



function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false");

var jsLink = '&#109;&#97;&#x69;&#x6c;&#x74;&#x6f;&#x3a;&#x72;&#x65;&#115;&#x65;&#114;&#x76;&#x61;&#x74;&#105;&#111;&#x6e;&#115;&#64;&#x61;&#108;&#116;&#x6f;&#117;&#x72;&#115;&#x2d;&#98;&#x67;&#x2e;&#x63;&#x6f;&#109;?Subject='+document.theForm.frmSubject.value+'&amp;Body='+btxt;
var jsTitle = 'Click here to email the information by using your default email client account';

sHTML = '<html><head><title>validate-hob-form-exit<\/title><meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta name="language" content="en-us"><link rel="stylesheet" type="text/css" href="Contact_files/altscroll.css"><link rel="stylesheet" type="text/css" href="Contact_files/elegant.css"><script type="text/javascript" src="js/butani.js"><\/script><script type="text/javascript" src="js/norclick.js"><\/script><\/head><body link="#CC5500" vlink="#CC5500" alink="#CC5500" style="margin:5px 0px 0px 12px;padding:0px;background:#fff repeat;"><div class="container"><table cellSpacing="0" cellPadding="0" width="984" align="left" border="0" bgcolor="#ffffff" style="background-image:url(\'head_std_files/blue_letter_back4.gif\')"><tbody><tr><td noWrap vAlign="top" align="center" width="235"><a href="../index.htm"><img height="55" title="To Altours Welcomepage" alt="Altours logo" src="head_std_files/altourslogo.jpg" width="200" vspace="22" border="0"><\/a><\/td><td noWrap vAlign="top" align="center" width="535"><img height="78" title="A Tradition of Excellence in Cultural Travel" alt="Altours motto" src="images/cultural-tours/tradition-of-excellence-cultural-tourism.jpg" width="417" vspace="10" border="0"><\/td><td noWrap vAlign="top" align="center" width="180"><img height="82" alt="Altours logo" src="images/cultural-tours/Bulgaria/20-years-bringing-you-closer-to-bulgaria.jpg" width="160" vspace="10" border="0"><\/td><td noWrap vAlign="top" align="center" width="34">&nbsp;<\/td><\/tr><\/tbody><\/table><br><br><br><br><br><br><br><table cellSpacing="0" cellPadding="0" width="984" align="left" border="0" bgcolor="#238e02"><tbody><tr><td width="750" valign="top" align="left"><table cellSpacing="0" cellPadding="0" width="70%" align="left" border="1" style="background-image:url(\'images/blue_green_back.gif\')"><tbody><tr><td noWrap width="0"><a href="home.htm" onMouseOver="act(\'home\')" onMouseOut="inact(\'home\')"><img src="homen.gif" height="24" width="120" name="home" border="0" title="Home" alt="Home"><\/a><\/td><td width="10"><img height="20" alt="" src="head_std_files/green_spacer.gif" width="10"><\/td><td noWrap width="0"><a href="about.htm" onMouseOver="act(\'about\')" onMouseOut="inact(\'about\')"><img src="aboutn.gif" height="24" width="140" name="about" border="0" title="About Altours" alt="About Altours"><\/a><\/td><td width="10"><img height="20" alt="" src="head_std_files/green_spacer.gif" width="10"><\/td><td noWrap width="0"><a href="why_bg.htm" onMouseOver="act(\'whybg\')" onMouseOut="inact(\'whybg\')"><img src="whybgn.gif" height="24" width="120" name="whybg" border="0" title="Why Bulgaria" alt="Why Bulgaria"><\/a><\/td><td width="10"><img height="20" alt="" src="head_std_files/green_spacer.gif" width="10"><\/td><td noWrap width="0"><a href="tours.htm" onMouseOver="act(\'tours\')" onMouseOut="inact(\'tours\')"><img src="toursn.gif" height="24" width="120" name="tours" border="0" title="Tours" alt="Tours"><\/a><\/td><td width="10"><img height="20" alt="" src="head_std_files/green_spacer.gif" width="10"><\/td><td noWrap width="0"><a href="gallery.htm" onMouseOver="act(\'gallery\')" onMouseOut="inact(\'gallery\')"><img src="galleryn.gif" height="24" width="120" name="gallery" border="0" title="Photo Gallery" alt="Photo Gallery"><\/a><\/td><td width="10"><img height="20" alt="" src="head_std_files/green_spacer.gif" width="10"><\/td><td noWrap width="0"><a href="hotels.htm" onMouseOver="act(\'hotels\')" onMouseOut="inact(\'hotels\')"><img src="hotelsn.gif" height="24" width="120" name="hotels" border="0" title="Hotels" alt="Hotels"><\/a><\/td><td width="10"><img height="20" alt="" src="head_std_files/green_spacer.gif" width="10"><\/td><td noWrap width="0"><a href="contact.htm" onMouseOver="act(\'contact\')" onMouseOut="inact(\'contact\')"><img src="contactn.gif" height="24" width="120" name="contact" border="0" title="Contact Us" alt="Contact Us"><\/a><\/td><\/tr><\/tbody><\/table><\/td><\/tr><\/tbody><\/table><br><br><table border="0" cellpadding="0" cellspacing="0" width="984" bgcolor="#238e02"><tbody><tr><td width="750" valign="top" align="left"><table border="0" cellpadding="0" cellspacing="0" width="750"><tbody><tr><td width="230" valign="top" align="center" bgcolor="#238e02"><br><img src="images/hb-112x100.jpg" width="112" height="100" border="0" alt="In booking with us you get the best value for your budget"><\/td><td width="520" valign="top" align="center" bgcolor="#EAAC15"><img height="4" width="520" src="images/bar.jpg" align="top" border="0" alt=""><br><br><table cellspacing="0" cellpadding="0" width="100%" align="center" border="0"><tbody><tr><td><table cellspacing="0" cellpadding="0" width="400" align="center" bgcolor="#BD2931" border="0"><tbody><tr><td align="center" valign="top"><h1><font face="Arial" color="#ffcc00">Hotel Online Booking<\/font><\/h1><br><\/td><\/tr><\/tbody><\/table><\/td><\/tr><\/tbody><\/table><table cellspacing="0" cellpadding="0" width="494" bgcolor="#FFFCCF" border="0"><tbody><tr><td width="47" align="left" align="top"><img height="47" width="47" src="images/3t.gif" align="top" border="0" alt=""><\/td><td width="400"><table cellspacing="0" cellpadding="0" width="400" bgcolor="#FFFCCF" border="0"><tbody><tr><td width="400" align="left"><p align="left"><font face="Arial" size="2" color="#005500"><b>ONLINE BOOKING FORM EXIT<\/b><\/font><\/p><\/td><\/tr><\/tbody><\/table><table cellspacing="0" cellpadding="0" width="400" border="0"><tbody><tr><td width="400"><div style="height:14px;background: #fffccf url(images/band-.jpg) no-repeat scroll center;"><hr style="display:none;" \/><\/div><br><\/td><\/tr><\/tbody><\/table><\/td><td width="47" align="right" valign="top"><img height="47" width="47" src="images/2t.gif" align="top" border="0" alt=""><\/td><\/tr><tr><td width="47" align="left" valign="top">&nbsp;<\/td><td width="400" align="center"><table cellspacing="0" cellpadding="0" width="400" border="0"><tr><td width="200" align="right"><a href="'+ jsLink +'" title="'+ jsTitle +'"><img height="27" width="47" src="images/email.jpg" align="top" border="0" alt=""><\/a>&nbsp;&nbsp;</td><td width="200" align="left">&nbsp;&nbsp;<a href="javascript:history.back(1)" title="Click here or the browser Back button, to return to the previous page"><img height="27" width="53" src="images/return.jpg" align="top" border="0" alt=""><\/a><\/td><\/tr><\/table><\/td><td width="47" align="right" valign="top"><\/td><\/tr><tr><td width="47" align="left" valign="top"><img height="47" width="47" src="images/6t.gif" align="top" border="0" alt=""><\/td><td width="400" valign="middle" align="center"><a href="../index.htm" onmouseover="act(\'buthome\')" onmouseout="inact(\'buthome\')"><img src="buthomen.gif" height="24" width="24" name="buthome" border="0" title="To Altours Homepage" alt="To Altours Homepage"><\/a><\/td><td width="47" align="right" valign="top"><img height="47" width="47" src="images/4t.gif" align="top" border="0" alt=""><\/td><\/tr><\/tbody><\/table><\/td><\/tr><\/tbody><\/table><table border="0" cellpadding="0" cellspacing="0" width="750"><tbody><tr><td width="230" valign="top" align="center" bgcolor="#238e02">&nbsp;</td><td width="520" valign="top" align="center" bgcolor="#EAAC15"><table cellspacing="0" cellpadding="0" width="100%" bgcolor="#EAAC15" border="0"><tbody><tr><td width="520" valign="top" align="center"><font face="Arial" size="2" color="#005500">Copyright&nbsp;<a href="copyright.htm" title="Copyright">&copy;<\/a>&nbsp;2002-2010 Altours<sup><font size=-2>BG<\/font><\/sup><\/font><\/td><\/tr><\/tbody><\/table><\/td><\/tr><\/tbody><\/table></td><td width="234" valign="top" align="center" bgcolor="#238e02"><table cellspacing="0" cellpadding="0" width="100%" align="center" border="0"><tbody><tr><td width="200" vAlign="top" bgcolor="#238e02">&nbsp;<\/td><\/tr><\/tbody><\/table><\/td><\/tr><\/tbody><\/table><table border="0" cellpadding="0" cellspacing="0" width="984" bgcolor="#238e02"><tbody><tr><td width="750" valign="top" align="left"><table border="0" cellpadding="0" cellspacing="0" width="750"><tbody><tr><td width="230" valign="top" align="center" bgcolor="#238e02">&nbsp;<\/td><td width="520" valign="top" align="center" bgcolor="#238e02""><img height="4" width="520" src="images/bar.jpg" align="top" border="0" alt=""><\/td><\/tr><\/tbody><\/table><\/td><\/tr><\/tbody><\/table><\/td><td width="234" valign="top" align="center" bgcolor="#238e02">&nbsp;<\/td><\/tr><\/tbody><\/table><\/td><\/tr><\/tbody><\/table><\/div><\/body><\/html>';
document.write(sHTML);
return;
}

