document.write('<table width="100%"  border="0" cellpadding="1" cellspacing="1">')
document.write('<tr> ')
document.write('<td><a href="mailto:reveindien@yahoo.fr" class="left">SCRIVETECI</a></td>')
document.write('</tr>')
document.write('<tr> ')
document.write('<td><marquee scrollamount="2" behavior="alternate"><a href="ananda_himalayas.html" class="left">ANANDA &nbsp; IN THE HIMALAYAS</a></marquee></td>')
document.write('</tr>')
document.write('</table>')
document.write('<br>')
document.write('<form name="form1" method="post" action="sendform.php">')
document.write('<input type="hidden" name="redirect" value="http://www.tourpassion.in/thankyou.html">')
document.write('<input type="hidden" name="recipient" value="tourpassion@gmail.com">')
document.write('<table width="100%"  border="0" cellpadding="1" cellspacing="1">')
document.write('<tr>')
document.write('<td colspan="3">')
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">')
document.write('<tr>')
document.write('<td><span class="style3">Compila la richiesta per richiedere un preventivo senza impegno</span> </td>')
document.write('</tr>')
document.write('</table>')

document.write('</td>')
document.write('</tr>')
document.write('<tr>')
document.write('<td width="40%"> <span class="calltxt">* Nome </spna> </td>')
document.write('<td><input name="name" type="text"  id="name"></td>')
document.write('</tr>')

document.write('<tr>')
document.write('<td> <span class="calltxt">* Paese</span> </td>')
document.write('<td><input name="country" type="text"  id="country"></td>')
document.write('</tr>')

document.write('<tr>')
document.write('<td><span class="calltxt">* Email </span></td>')
document.write('<td><input name="email" type="text"  id="email"></td>')
document.write('</tr>')

document.write('<tr>')
document.write('<td><span class="calltxt">* Telefono</span> </td>')
document.write('<td><input name="telephone" type="text" id="telephone" ></td>')
document.write('</tr>')

document.write('<tr>')
document.write('<td><span class="calltxt">* Alberghi Preferiti</span> </td>')
document.write('<td><select name="hotel" size="1" id="hotel"> <option> Scegliere </option> <option value="5* moderni">5* moderni</option>  <option value="5* Palazzi">5* Palazzi</option> <option value="Alberghi Heritage">Alberghi Heritage</option> <option value="Economici Ma Puliti">Economici Ma Puliti</option></select></td>')
document.write('</tr>')

document.write('<tr>')
document.write('<td><span class="calltxt">* Messaggio</Span></td>')
document.write('<td><textarea name="des" id="textarea"></textarea></td>')
document.write('</tr>')

document.write('<tr>')
document.write('<td>&nbsp;</td>')
document.write('<td><input name="Submit" type="submit" onClick=" return chkForm()" value=" Invia La Richiesta "></td>')
document.write('</tr>')
document.write('</table>')
document.write('</form>')

function chkForm()
{
	if( (document.form1.name.value == "" ) || (document.form1.country.value == "" ) || (document.form1.email.value == "" ) || (document.form1.telephone.value == "" )||(document.form1.hotel.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);

document.write('<table width="100%"cellpadding="0" cellspacing="0">')
document.write('<tr> ')
document.write('<td align="center"><a href="http://www.tourpassion.com" class="flag" target="_blank"><img src="inglese.gif" width="35" height="23"></a> </td>')
document.write(' <td align="center"><a href="http://fr.tourpassion.in" class="flag" target="_blank"><img src="francese.gif" width="35" height="23"></a> </td>')
document.write(' <td align="center"><a href="http://www.indien.co.in" class="flag" target="_blank"><img src="tedesco.gif" width="35" height="23"></a> </td>')
document.write('</tr>')
document.write('</table>')
