function chkForm()
{
	if( (document.form1.name.value == "" ) || (document.form1.country.value == "" ) || (document.form1.email.value == "" ) || (document.form1.telephone.value == "" ))
	{
		alert("Please fill in the fields marked with * ");
		return(false);
	}
	
if(document.form1.email.value.indexOf(" ") >= 0)
{
	alert("Please enter your email-id without any white space character.");
	document.form1.email.focus();
	return (false);
}
if ( (document.form1.email.value.indexOf("@") == -1) || (document.form1.email.value.indexOf(".") == -1) )
{
	alert("Please enter your valid email-id");
	document.form1.email.focus();
	return (false);
}


BeforeAtRate = document.form1.email.value.substring(0,document.form1.email.value.indexOf("@"));
AfterAtRate = document.form1.email.value.substring(document.form1.email.value.indexOf("@")+1,document.form1.email.value.length);

if (AfterAtRate.indexOf(".") == -1)
{
	alert("Please enter a valid email-id");
	document.form1.email.focus();
	return (false);
}

middle = AfterAtRate.substring(0, AfterAtRate.indexOf("."))
last = AfterAtRate.substring(AfterAtRate.indexOf(".") + 1,AfterAtRate.length)

if (BeforeAtRate.length == 0 || middle.length == 0 || last.length == 0)
{
	alert("Please enter a valid email-id"); 
	document.form1.email.focus();
	return (false);
}
}


function disableselect(e){ 
return false; 
} 
function reEnable(){ 
return true; 
} 
document.onselectstart=new Function ("return false"); 
if (window.sidebar){ 
document.onmousedown=disableselect; 
document.onclick=reEnable; 
} 
function droit(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) {
alert('© Copyright - Tour Passion');
return false;
}else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert('© Copyright - Tour passion');
return false;
}
return true;
}
document.onmousedown=droit;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);


// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 6000;
// Duration of crossfade (seconds)
var crossFadeDuration = 6;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '../slide/1.gif'
Pic[1] = '../slide/2.gif'
Pic[2] = '../slide/3.gif'
Pic[3] = '../slide/4.gif'
Pic[4] = '../slide/5.gif'
Pic[5] = '../slide/6.gif'
Pic[6] = '../slide/7.gif'
Pic[7] = '../slide/8.gif'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=3)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
//  End -->

function logo()
{
document.write('<table width="100%" height="225" cellpadding="0" cellspacing="0">')
document.write(' <tr>')
document.write(' <td background="../../images/bg.gif" width="100%">&nbsp;</td>')
document.write('</tr>')
document.write('</table>')			  
}

function home()
{
document.write('<table cellpadding="0" cellspacing="0" width="100%" align="center">')
document.write(' <tr>')
document.write(' <td><a href="../../index.html" class="main">Home</a></td>')
document.write(' <td><a href="../../aboutus.html" class="main">About Us </a></td>')
document.write(' <td><a href="../../contactus.html" class="main">contact Us </a></td>')
document.write(' <td><a href="../../sitemap.html" class="main">SiteMap</a></td>')
document.write(' <td><a href="#bookingform" class="main">Send Enquiry / Ask for price</a></td>')
document.write('</tr>')
document.write('</table>')	
}

function footer()
{
document.write('<table cellpadding="0" cellspacing="0" width="100%" align="center">')
document.write('<tr>')
document.write('<td colspan="5">')

document.write('<FORM name=form1 action="../sendform.php" method=post>')
document.write('<input type="hidden" name="redirect" value="http://www.delhitravelagent.com/thankyou.html">')
document.write('<input type="hidden" name="recipient" value="tourpassion@gmail.com">')
document.write('<table borderColor=#0099cc cellSpacing=0 borderColorDark=#ffffff cellPadding=0 width="100%" align=left border=1 bgcolor="#EEECDB">')
 document.write('<tr>')
document.write('<tD colspan="4" class="form" align="center"><a name="bookingform">Travel Reservation / Booking Form</a></td>')

         document.write('</tr>')

        document.write('<tr>')
document.write('<tD class="txtbody" width="25%">* Name</td>')
 document.write('<td width="25%"><INPUT style="FONT-SIZE: 9px" name=nm></td>')
      document.write('<tD class="txtbody" width="25%">* Country</td>')
          document.write('<tD width="25%"><INPUT style="FONT-SIZE: 9px" name=country></td>')
 
         document.write('</tr>')
		  document.write('<tr>')
          document.write('<tD class="txtbody">* E-mail</td>')

          document.write('<tD><INPUT name=email id="email" style="FONT-SIZE: 9px"></td>')
		   document.write('<td class="txtbody">* Telephone</td>')
      
          document.write('<td><INPUT name=telephone id="telephone" style="FONT-SIZE: 9px"></td>')
document.write('</tr>')

		  document.write('<tr>')
		
          document.write('<td class="txtbody">* <span class="frm">Hotels Category Required</span></td>')
          document.write('<td><select name="hotel" size="1" id="hotel" style="FONT-SIZE: 9px"> <option> Select Hotel</option> <option value="5 Star- Modern">5 Star- Modern</option><option value="5 Star- Palaces">5 Star- Palaces</option> <option value="Small Heritage Hotels - 3 *">Small Heritage Hotels - 3 *</option> <option value="Budget Hotels">Budget Hotels</option> </select></td>')
		  		 document.write('<td class="txtbody">* Number of Person</td>')

          document.write('<tD><INPUT name="nop" id="nop" style="FONT-SIZE: 9px"></td>')
        document.write('</tr>')
		
document.write('<tr>')
          document.write('<td class="txtbody">* Date of Travel</td>')
      
          document.write('<td><INPUT name="dot" id="dot" style="FONT-SIZE: 9px"></td>')
          document.write('<tD class="txtbody">* Requirement</td>')
          document.write('<tD><tEXTAREA id=textarea style="FONT-SIZE: 9px" name=des></TEXTAREA></td>')
		  document.write('</tr>')
		  
        document.write('<tR>')
          document.write('<td colspan="4" align="center"><input name="Submit" style="FONT-SIZE: 9px" type="submit" onClick=" return chkForm()" value="          Send          "></td>')
			document.write('</tr>')
			document.write('</TABLE>')
			document.write('</FORM>')



document.write('</td>')
document.write('</tr>')

document.write(' <tr>')
document.write(' <td><img src="../../images/asta-sm.gif" width="60" height="41"></td>')
document.write(' <td><img src="../../images/jet.jpg" width="66" height="20"></td>')
document.write(' <td><img src="../../images/spicejet.jpg" width="59" height="20"></td>')
document.write(' <td><img src="../../images/sahara-logo.jpg" width="100" height="20"></td>')
document.write(' <td><img src="../../images/iato.jpg" width="35" height="41"></td>')
document.write('</tr>')
document.write('</table>')
}
