function get_header(){
document.write ("<table width=\"777\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.write ("<tr>");
document.write ("<td width=\"115\" valign=\"top\"><a href=\"../index.html\"><img src=\"../images/new-logo.jpg\" border=\"0\" width=\"280\" height=\"89\" /</a></td>");
document.write ("<td style=\"padding-right:10px; padding-bottom:5px;\"><table width=\"250\" height=\"90\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">");
document.write ("<tr>");
document.write ("<td align=\"right\"><img src=\"../images/visit_india_logo.gif\" width=\"90\" height=\"52\" /></td>");
document.write ("</tr>");
document.write ("<tr>");
document.write ("<td align=\"right\" style=\"padding-top:5px;\" valign=\"bottom\"><a href=\"../index.html\" class=\"link1\">Home</a> | <a href=\"../aboutus.html\" class=\"link1\">About Us</a> | <a href=\"../contactus.html\" class=\"link1\">Contact Us</a> | <a href=\"../feedback.html\"  class=\"link1\">Feedback</a> </td>");
document.write ("</tr>");
document.write ("</table></td>");
document.write ("</tr>");
document.write ("</table>");
document.write ("<table width=\"838\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" style=\"border:1px solid #a19694;\">");
document.write ("<tr><td style=\"padding-right:12px; padding-left:35px;\" align=\"center\">");
document.write ("<div id=\"ddtopmenubar\" class=\"mattblackmenu\">");
document.write ("<ul>");
document.write ("<li><a href=\"../index.html\">Home</a></li>");
document.write ("<li><a href=\"#\" rel=\"ddsubmenu1\">Tours</a></li>");
document.write ("<li><a href=\"#\" rel=\"ddsubmenu2\">Holiday Packages</a></li>");
document.write ("<li><a href=\"../hotels.html\">Hotels</a></li>");
document.write ("<li><a href=\"../special-offers.html\">Special Offers</a></li>");
document.write ("<li><a href=\"../destinations.html\">Destinations</a></li>");
document.write ("<li><a href=\"../travelguides.html\">Travel Guides</a></li>");
document.write ("</ul>");
document.write ("</div>");
document.write ("</td></tr></table>");
}
function get_products(){
document.write ("<ul id=\"ddsubmenu1\" class=\"ddsubmenustyle\">");
document.write ("<li><a href=\"../custom-tours.html\">Custom Tour</a></li>");
document.write ("<li><a href=\"../guaranteed-departures.html\">Guaranteed Departures</a></li>");
document.write ("<li><a href=\"../spl-interest-tours.html\">Special Interest Tours</a></li>");
document.write ("<li><a href=\"../starter-packages.html\">City Stopover Packages</a></li>");
document.write ("</ul>");
}

function get_services(){
document.write ("<ul id=\"ddsubmenu2\" class=\"ddsubmenustyle\">");
document.write ("<li><a href=\"../adventure-holidays.html\">Adventure Holidays</a></li>");
document.write ("<li><a href=\"../beach-holidays.html\">Beach Holidays</a></li>");
document.write ("<li><a href=\"../cultural-holidays.html\">Cultural Holidays</a></li>");
document.write ("<li><a href=\"../wildlife-safaries.html\">Wildlife Safaris</a></li>");
document.write ("<li><a href=\"../spa-holidays.html\">Spa & Wellness</a></li>");
document.write ("<li><a href=\"../ayurveda.html\">Ayurveda</a></li>");
document.write ("<li><a href=\"../family-holidays.html\">Family Holidays</a></li>");
document.write ("<li><a href=\"../honeymoon.html\">Honeymoon Special</a></li>");
document.write ("</ul>");
}
 
function get_footer(){
document.write ("<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">");
document.write ("<tr><td style=\"background:url(../images/border1.jpg) repeat-x;\" height=\"30\">&nbsp;</td></tr>");
document.write ("<tr>");
document.write ("<td style=\"padding-top:5px;\">");
document.write ("<table width=\"93%\" border=\"0\" align=\"center\" cellpadding=\"1\" cellspacing=\"1\">");
document.write ("<tr>");
document.write ("<td align=\"center\"><a href=\"../index.html\" class=\"link1\">Home</a>  | <a href=\"../aboutus.html\" class=\"link1\">About Us</a> | <a href=\"../guaranteed-departures.html\" class=\"link1\">Guaranteed Departures</a> | <a href=\"../spl-interest-tours.html\" class=\"link1\">Special Interest Tours</a>   |  <a href=\"../ayurveda.html\" class=\"link1\">Wellness/Ayurveda Tours</a> | <a href=\"../business-travel.html\" class=\"link1\">Conferences</a> | <a href=\"../sitemap.html\" class=\"link1\">Sitemap</a> | <a href=\"../contactus.html\" class=\"link1\">Contact Us</a></td>");
document.write ("</tr>");
document.write ("<tr>");
document.write ("<td align=\"center\" style=\"color:#939292; padding-top:8px;\"><img src=\"../images/asso-logo.jpg\" width=\"700\" height=\"50\" /></td>");
document.write ("</tr>");
document.write ("<tr>");
document.write ("<td align=\"center\" style=\"color:#939292;\">Copyright India-Incoming.in 2010</td>");
document.write ("</tr>");
document.write ("<tr>");
document.write ("<td>&nbsp;</td>");
document.write ("</tr>");
document.write ("</table>");
document.write ("</td>");
document.write ("</tr>");
document.write ("</table>");
}


  function trimStr(ss)
{
	 thestr=ss;
	 if (thestr.length>0)
	 {
		 doubleSpaces=true;
		 while (doubleSpaces)
		 {
			  thestr=thestr.replace('  ', ' ');
			  if (thestr.indexOf('  ')==-1)
			  {
				  doubleSpaces=false;
			  }
		  }
	 for(i=0; i<thestr.length; i++)
	 {
		  if(thestr.charAt(i)!=' ')
		  {
			  thestr=thestr.substr(i,thestr.length-i);
			  break;
		  }
		  else
		  {
			  thestr=thestr.substr(i,thestr.length);
			  i=0
		  }
	  }
	 for(i=thestr.length-1; i>=0; i--)
	 {
		  if(thestr.charAt(i)!=' ')
		  {
			  thestr=thestr.substr(0,i+1);
			  break;
		  }
	  }
 }
 if (thestr==' ')
 {
	 thestr='';
 }
 return thestr;
 }
function checkValidate()
{
			
					if(document.Form1.txtName.value == "")
					{
					alert("Please Enter Your Name");
					document.Form1.txtName.focus();
					return false;
					}
					var str=document.Form1.txtEmail.value;
			var result=true;
				if(trimStr(str)=='')
			{  
				alert("Please Enter Your Email Id")
				document.Form1.txtEmail.focus();
				return false ;
			}	 
					 
			if (str == null) 
				result=false;
				//str = trim(str);
				if (str.length <6)  result= false;   
			if (str.indexOf('@') == -1)    result=false;
			if (str.indexOf('@') == 0)    result=false;
				if (str.indexOf('@') == (str.length-1)) result=false;
				if (str.indexOf("@@") != -1)    result=false;
				if (str.indexOf('@') != str.lastIndexOf('@'))    result=false;
				if (str.indexOf('.@') != -1)    result=false;
				if (str.indexOf('@.') != -1)    result=false;
				if (str.indexOf(' ') != -1)    result=false;
				if (str.indexOf('.') == -1)    result=false;
				if (str.indexOf('.') == 0)    result=false;
				if (str.indexOf('.') == (str.length-1))  result=false;
				if (str.indexOf('..') != -1)    result=false;
				if (str.indexOf('<') != -1)    result=false;
				if (str.indexOf('>') != -1)    result=false;
				if (str.indexOf('=') != -1)    result=false;
				if (str.indexOf('~') != -1)    result= false;
				if (str.indexOf('^') != -1)    result=false;
				if (str.indexOf('%') != -1)    result=false;
				if (str.indexOf('+') != -1)    result=false;
				if (str.indexOf('$') != -1)    result=false;
				if (str.indexOf('#') != -1)    result=false;
				if (str.indexOf('!') != -1)    result=false;
				if (str.indexOf('(') != -1)    result=false;
				if (str.indexOf(')') != -1)    result=false;
				if (str.indexOf('\\') != -1)    result=false;
				if (str.indexOf('/') != -1)    result=false;
				if (str.indexOf('\"') != -1)    result=false;
				if (str.indexOf('\'') != -1)    result=false;
				if (str.indexOf('?') != -1)    result=false;
				if (str.indexOf(';') != -1)    result=false;
				if (str.indexOf(',') != -1)    result=false;
				if (str.indexOf('\t') != -1)    result=false;
				if (str.indexOf('*') != -1)    result=false;
				if (str.indexOf('|') != -1)    result=false;
				
				if(!result)
		 			{
						alert('Invalid Email Id');
		 				document.Form1.txtEmail.focus();
					//  setAllPv();
		 				return false;
		 			}
}
					