function get_enq_main_form2()
{

main_enq2 = "<table cellpadding='0' width='390' height='119'><tr><td height='12' width='150'></td><td height='12' width='6'></td><td height='12' width='228'></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Full Name</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><input TYPE='TEXT' name='tb_FName' id='tb_FName' size='29'></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Gender</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><select NAME='radio' id='radio' class=fnt>	<option SELECTED VALUE='Male'>Male</option>	<option VALUE='Female'>Female</option></select></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Date of Birth</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'>Day&nbsp;&nbsp;&nbsp; Month&nbsp;&nbsp;&nbsp;&nbsp; Year <br>	<select NAME='ddL_DOTDate' id='ddL_DOTDate' class=fnt>	<option SELECTED VALUE></option>	<option VALUE='1'>1</option>	<option VALUE='2'>2</option>	<option VALUE='3'>3</option><option VALUE='4'>4</option><option VALUE='5'>5</option><option VALUE='6'>6</option><option VALUE='7'>7</option><option VALUE='8'>8</option><option VALUE='9'>9</option><option VALUE='10'>10</option><option VALUE='11'>11</option><option VALUE='12'>12</option><option VALUE='13'>13</option><option VALUE='14'>14</option><option VALUE='15'>15</option><option VALUE='16'>16</option><option VALUE='17'>17</option><option VALUE='18'>18</option><option VALUE='19'>19</option><option VALUE='20'>20</option><option VALUE='21'>21</option><option VALUE='22'>22</option><option VALUE='2'>23</option><option VALUE='24'>24</option><option VALUE='25'>25</option><option VALUE='26'>26</option><option VALUE='27'>27</option><option VALUE='28'>28</option><option VALUE='29'>29</option><option VALUE='30'>30</option><option VALUE='31'>31</option></select>&nbsp; <select NAME='ddl_DOTMonth' id='ddl_DOTMonth' class=fnt><option SELECTED VALUE></option><option VALUE='Jan'>Jan</option><option VALUE='Feb'>Feb</option><option VALUE='March'>March</option><option VALUE='April'>April</option><option VALUE='May'>May</option><option VALUE='June'>June</option><option VALUE='July'>July</option><option VALUE='Aug'>Aug</option><option VALUE='Sept'>Sept</option><option VALUE='Oct'>Oct</option><option VALUE='Nov'>Nov</option><option VALUE='Dec'>Dec</option></select>&nbsp; <select NAME='ddl_DOTYear' id='ddl_DOTYear' class=fnt><option SELECTED VALUE></option><option VALUE='2008'>2008</option><option VALUE='2007'>2007</option><option VALUE='2006'>2006</option><option VALUE='2005'>2005</option><option VALUE='2004'>2004</option><option VALUE='2003'>2003</option><option VALUE='2002'>2002</option><option VALUE='2001'>2001</option><option VALUE='2000'>2000</option><option VALUE='1999'>1999</option><option VALUE='1998'>1998</option><option VALUE='1997'>1997</option><option VALUE='1996'>1996</option><option VALUE='1995'>1995</option><option VALUE='1994'>1994</option><option VALUE='1993'>1993</option><option VALUE='1992'>1992</option><option VALUE='1991'>1991</option><option VALUE='1990'>1990</option><option VALUE='1989'>1989</option><option VALUE='1988'>1988</option><option VALUE='1987'>1987</option><option VALUE='1986'>1986</option><option VALUE='1985'>1985</option><option VALUE='1984'>1984</option><option VALUE='1983'>1983</option><option VALUE='1982'>1982</option><option VALUE='1981'>1981</option><option VALUE='1980'>1980</option><option VALUE='1979'>1979</option><option VALUE='1978'>1978</option><option VALUE='1977'>1977</option><option VALUE='1976'>1976</option><option VALUE='1975'>1975</option><option VALUE='1974'>1974</option><option VALUE='1973'>1973</option><option VALUE='1971'>1971</option><option VALUE='1970'>1970</option></select></span></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>E-mail Id</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><input TYPE='TEXT' name='tb_email' id='tb_email' size='29'></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Phone No</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><input TYPE='TEXT' name='tb_TelNo' id='tb_TelNo' size='29'></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>City</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><input TYPE='TEXT' name='tb_CurrLoc' id='tb_CurrLoc' size='29'></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Interested in</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><select NAME='ddl_Course' id='ddl_Course' class=fnt><option SELECTED VALUE='Select Course'>Select Course</option><option VALUE='RIA - Rich Internet Application'>RIA - Rich Internet Application</option><option VALUE='Placement Assured Program'>Placement Assured Program</option><option VALUE='PHP & MySQL'>PHP &amp; MySQL</option><option VALUE='.Net'>.Net</option><option VALUE='JAVA / J2EE'>JAVA / J2EE</option><option VALUE='Software Testing'>Software Testing</option><option VALUE='Others'>Others</option></select></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Location</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><select NAME='ddl_City' id='ddl_City' class=fnt><option SELECTED VALUE='Select City / Centre'>Select City/Centre</option><option SELECTED VALUE='Chennai - Mount Road'>Chennai - Mount Road</option><option SELECTED VALUE='Chennai - Anna Nagar'>Chennai - Anna Nagar</option><option SELECTED VALUE='Ramnagar'>Kovai - Ramnagar</option><option SELECTED VALUE='Hope College'>Kovai - Hope College</option><option SELECTED VALUE='Bangalore - Sanjay Nagar'>Bangalore - Sanjay Nagar</option><option SELECTED VALUE='Bangalore - Malleswaram'>Bangalore - Malleswaram</option><option SELECTED VALUE='Bangalore - Jayanagar'>Bangalore - Jayanagar</option><option SELECTED VALUE='Bangalore - Banaswadi'>Bangalore - Banaswadi</option><option SELECTED VALUE='Bangalore - Kormangla'>Bangalore - Kormangla</option></select></td></tr><tr><td height='25' width='150' class=fnt valign='top'>Comments</td><td height='25' width='6' class=fnt valign='top'>:</td><td height='25' width='228' class=fnt valign='middle'><textarea NAME='tb_Comment' id='tb_Comment' rows='4' cols='23' size='29'></textarea></td></tr><tr><td height='25' width='150' class=fnt valign='middle'></td><td height='25' width='6' class=fnt valign='middle'></td><td height='25' width='228' class=fnt valign='middle'><input type=button  onclick=clean_main_enq() value='Reset' name='reset' class='sub1'  style='width : 47; height:22'> <input type=button onclick='bind_enq_form_data()' value='Submit' name='submit' class='sub1'  style='width : 47; height:22'> </td></tr></table>";

document.getElementById("cv_box").innerHTML = main_enq2;
}

function book_enq_form()
{
content = "<table cellpadding='0' cellspacing='0' width='328' id='table1' align=center><tr><td height=10 colspan=3></td></tr><tr><td height='25' width='95' valign='middle' class='fnt3'><font color='#FF0000'>*</font>Name</td><td height='25' width='6' valign='top' class='fnt3'>:</td><td height='25' width='228' valign='middle'><input type=text name='visitor1' id='visitor1' class='txt_fnt' style='width : 200; height : 22'></td></tr><tr><td height='25' width='95' valign='middle' class='fnt3'><font color='#FF0000'>*</font>E-mail</td><td height='25' width='6' valign='top' class='fnt3'>:</td><td height='25' width='228' valign='middle'><input type=text name='visitormail1' id='visitormail1' class='txt_fnt' style='width : 200; height : 22;'></td></tr>									<tr><td height='29' width='328' valign='middle' colspan='3' align=center><input type=button onclick=clean_book()  value='Reset' name='reset' class='sub1' class='sub1'  style='width : 52;height:20'> <input type=button  onclick='book_enq_data()' value='Submit' name='submit' class='sub1'  style='width : 52;height:20'></td></tr></table>";

document.getElementById("book_enq").innerHTML = content;
}


function get_enq_form()
{
content = "<table cellpadding='0' cellspacing='0' id='table2' width='234' align=center height='202'><tr><td height='25' valign='middle'></td><td height='25' valign='middle' width='205'><input type=text name='visitor' id='visitor' class='txt_fnt' style='width : 200px; height : 22px;' onfocus='blank(this)' onblur='unblank(this)' value='Full Name'></td><td height='25' valign='top' width='15' class='mad'>*</td></tr><tr><td height='25' valign='middle'></td><td height='25' valign='middle' width='205'><input type=text name='visitormail' id='visitormail' class='txt_fnt' style='width : 200px; height : 22px;' onfocus='blank(this)' onblur='unblank(this)' value='Valid E-mail'></td><td height='25' valign='top' width='15' class='mad'>*</td></tr><tr><td height='25' valign='middle'></td><td height='25' valign='middle' width='205'><input type=text name='contact' id='contact' class='txt_fnt' style='width : 200px; height : 22px' onfocus='blank(this)' onblur='unblank(this)' value='Contact Number'></td><td height='25' valign='top' width='15' class='mad'>*</td></tr><tr><td height='25'></td><td height='25' width='205'><select NAME='location' id='location' class='txt_fnt2' style='width : 200px; height : 22px;'><option VALUE='' selected='selected'>Select Location</option><option VALUE='Mount Road'>Chennai- Mount Road</option><option VALUE='Anna Nagar'>Chennai- Anna Nagar</option><option VALUE='Adyar'>Chennai- Adyar</option><option VALUE='Malleswaram'>B'lore- Malleswaram</option><option VALUE='Jayanagar'>B'lore- Jayanagar</option><option VALUE='Kormangla'>B'lore- Kormangla</option><option VALUE='Davangare'>KA- Davangare</option><option VALUE='Hubli'>KA- Hubli</option><option VALUE='Shimoga'>KA- Shimoga</option><option VALUE='Gandhipuram'>Kovai- Ramnagar</option><option VALUE='Hopes College'>Kovai- Hope College</option><option VALUE='Tumkur'>KA- Tumkur</option></select></td><td height='25' width='15' class='mad' valign='top'>*</td></tr><tr><td width='14' valign='middle' height='70'></td><td width='205' valign='middle' height='70'><textarea name='notes' id='notes' class='txt_fnt1' style='width : 200px; height : 70px;' onfocus='blank(this)' onblur='unblank(this)'>Message</textarea></td><td width='15' valign='top' height='70' class='mad'>*</td></tr><tr><td valign='middle'></td><td valign='middle' align=right width='205'><input type=button  onclick='bind_enq_data();' value='Call me' name='submit' class='sub1' style='width:55px; height:22px'> <input type=button onclick=clean()  value='Reset' name='reset' class='sub1'  style='width:55px; height:22px'>&nbsp; </td><td valign='middle' align=right width='15'></td></tr></table>";

document.getElementById("small_box").innerHTML = content;
}

function get_enq_main_form()
{

main_enq = "<table cellpadding='0' width='390' height='119'><tr><td height='12' width='150'></td><td height='12' width='6'></td><td height='12' width='228'></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Full Name</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><input TYPE='TEXT' name='tb_FName' id='tb_FName' size='29'></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Gender</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><select NAME='radio' id='radio' class=fnt>	<option SELECTED VALUE='Male'>Male</option>	<option VALUE='Female'>Female</option></select></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Date of Birth</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'>Day&nbsp;&nbsp;&nbsp; Month&nbsp;&nbsp;&nbsp;&nbsp; Year <br>	<select NAME='ddL_DOTDate' id='ddL_DOTDate' class=fnt>	<option SELECTED VALUE></option>	<option VALUE='1'>1</option>	<option VALUE='2'>2</option>	<option VALUE='3'>3</option><option VALUE='4'>4</option><option VALUE='5'>5</option><option VALUE='6'>6</option><option VALUE='7'>7</option><option VALUE='8'>8</option><option VALUE='9'>9</option><option VALUE='10'>10</option><option VALUE='11'>11</option><option VALUE='12'>12</option><option VALUE='13'>13</option><option VALUE='14'>14</option><option VALUE='15'>15</option><option VALUE='16'>16</option><option VALUE='17'>17</option><option VALUE='18'>18</option><option VALUE='19'>19</option><option VALUE='20'>20</option><option VALUE='21'>21</option><option VALUE='22'>22</option><option VALUE='2'>23</option><option VALUE='24'>24</option><option VALUE='25'>25</option><option VALUE='26'>26</option><option VALUE='27'>27</option><option VALUE='28'>28</option><option VALUE='29'>29</option><option VALUE='30'>30</option><option VALUE='31'>31</option></select>&nbsp; <select NAME='ddl_DOTMonth' id='ddl_DOTMonth' class=fnt><option SELECTED VALUE></option><option VALUE='Jan'>Jan</option><option VALUE='Feb'>Feb</option><option VALUE='March'>March</option><option VALUE='April'>April</option><option VALUE='May'>May</option><option VALUE='June'>June</option><option VALUE='July'>July</option><option VALUE='Aug'>Aug</option><option VALUE='Sept'>Sept</option><option VALUE='Oct'>Oct</option><option VALUE='Nov'>Nov</option><option VALUE='Dec'>Dec</option></select>&nbsp; <select NAME='ddl_DOTYear' id='ddl_DOTYear' class=fnt><option SELECTED VALUE></option><option VALUE='2008'>2008</option><option VALUE='2007'>2007</option><option VALUE='2006'>2006</option><option VALUE='2005'>2005</option><option VALUE='2004'>2004</option><option VALUE='2003'>2003</option><option VALUE='2002'>2002</option><option VALUE='2001'>2001</option><option VALUE='2000'>2000</option><option VALUE='1999'>1999</option><option VALUE='1998'>1998</option><option VALUE='1997'>1997</option><option VALUE='1996'>1996</option><option VALUE='1995'>1995</option><option VALUE='1994'>1994</option><option VALUE='1993'>1993</option><option VALUE='1992'>1992</option><option VALUE='1991'>1991</option><option VALUE='1990'>1990</option><option VALUE='1989'>1989</option><option VALUE='1988'>1988</option><option VALUE='1987'>1987</option><option VALUE='1986'>1986</option><option VALUE='1985'>1985</option><option VALUE='1984'>1984</option><option VALUE='1983'>1983</option><option VALUE='1982'>1982</option><option VALUE='1981'>1981</option><option VALUE='1980'>1980</option><option VALUE='1979'>1979</option><option VALUE='1978'>1978</option><option VALUE='1977'>1977</option><option VALUE='1976'>1976</option><option VALUE='1975'>1975</option><option VALUE='1974'>1974</option><option VALUE='1973'>1973</option><option VALUE='1971'>1971</option><option VALUE='1970'>1970</option></select></span></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>E-mail Id</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><input TYPE='TEXT' name='tb_email' id='tb_email' size='29'></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Phone No</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><input TYPE='TEXT' name='tb_TelNo' id='tb_TelNo' size='29'></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>City</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><input TYPE='TEXT' name='tb_CurrLoc' id='tb_CurrLoc' size='29'></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Interested in</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><select NAME='ddl_Course' id='ddl_Course' class=fnt><option SELECTED VALUE='Select Course'>Select Course</option><option VALUE='RIA - Rich Internet Application'>RIA - Rich Internet Application</option><option VALUE='Placement Assured Program'>Placement Assured Program</option><option VALUE='PHP & MySQL'>PHP &amp; MySQL</option><option VALUE='.Net'>.Net</option><option VALUE='JAVA / J2EE'>JAVA / J2EE</option><option VALUE='Software Testing'>Software Testing</option><option VALUE='Others'>Others</option></select></td></tr><tr><td height='25' width='150' class=fnt valign='middle'>Location</td><td height='25' width='6' class=fnt valign='middle'>:</td><td height='25' width='228' class=fnt valign='middle'><select NAME='ddl_City' id='ddl_City' class=fnt><option SELECTED VALUE='Select City / Centre'>Select City/Centre</option><option SELECTED VALUE='Chennai - Mount Road'>Chennai - Mount Road</option><option SELECTED VALUE='Chennai - Anna Nagar'>Chennai - Anna Nagar</option><option SELECTED VALUE='Ramnagar'>Kovai - Ramnagar</option><option SELECTED VALUE='Hope College'>Kovai - Hope College</option><option SELECTED VALUE='Bangalore - Sanjay Nagar'>Bangalore - Sanjay Nagar</option><option SELECTED VALUE='Bangalore - Malleswaram'>Bangalore - Malleswaram</option><option SELECTED VALUE='Bangalore - Jayanagar'>Bangalore - Jayanagar</option><option SELECTED VALUE='Bangalore - Banaswadi'>Bangalore - Banaswadi</option><option SELECTED VALUE='Bangalore - Kormangla'>Bangalore - Kormangla</option></select></td></tr><tr><td height='25' width='150' class=fnt valign='top'>Comments</td><td height='25' width='6' class=fnt valign='top'>:</td><td height='25' width='228' class=fnt valign='middle'><textarea NAME='tb_Comment' id='tb_Comment' rows='4' cols='23' size='29'></textarea></td></tr><tr><td height='25' width='150' class=fnt valign='middle'></td><td height='25' width='6' class=fnt valign='middle'></td><td height='25' width='228' class=fnt valign='middle'><input type=button  onclick=clean_main_enq() value='Reset' name='reset' class='sub1'  style='width : 47; height:22'> <input type=button onclick='bind_enq_form_data()' value='Submit' name='submit' class='sub1'  style='width : 47; height:22'> </td></tr></table>";

document.getElementById("main_div").innerHTML = main_enq;
}

function iop_enq_main_form()
{

iop_enq = "<table cellpadding='0' width='191' height='119' cellspacing='0' class=tb_border1 bgcolor='#FAFAFA' align='center'><tr><td bgcolor=#EEEEEE class=header1 height='25' align=center background=images/footer_bg2.gif> For Quick Response</td></tr><tr><td height='20' width='191' class=fnt>Name</td></tr><tr><td height='4' width='191' class=fnt valign='middle'><input TYPE='TEXT' name='tb_FName1' id='tb_FName1' style='width : 185px; height:22'></td></tr><tr><td height='20' width='191' class=fnt>E-mail Id</td></tr><tr><td height='14' width='191' class=fnt valign='middle'><input TYPE='TEXT' name='tb_email1' id='tb_email1' style='width : 185; height:22'></td></tr><tr><td height='20' width='191' class=fnt>Phone No</td></tr><tr><td height='5' width='191' class=fnt valign='middle'><input TYPE='TEXT' name='tb_TelNo1' id='tb_TelNo1' style='width : 185; height:22'></td></tr><tr><td height='25' width='191' class=fnt>Location&nbsp; :&nbsp;<select NAME='ddl_City1' id='ddl_City1' class=fnt style='width : 116; height:22'><option SELECTED VALUE='Chennai'>Chennai</option><option SELECTED VALUE='Coimbatore'>Coimbatore</option><option SELECTED VALUE='Bangalore'>Bangalore</option><option SELECTED value='Select City' >Select City</option></select></td></tr><tr><td height='20' width='191' class=fnt>Comments</td></tr><tr><td height='25' width='191' class=fnt valign='middle'><textarea NAME='tb_Comment1' id='tb_Comment1' rows='4' style='width : 185; height:68'></textarea></td></tr><tr><td height='25' width='191' class=fnt valign='middle'><input type=button  onclick=clean_iop_enq() value='Reset' name='reset' class='sub1' style='width : 47;height:22'> <input type=button onclick='iop_enq_form_data()' value='Submit' name='submit' class='sub1'  style='width : 47;height:22'> </td></tr></table>";

document.getElementById("iop_div").innerHTML = iop_enq;
}




function checkfield(small_box)
{
	ok=true
	alert("HAI");
	if(small_box.visitor.value=="")
	{
		alert("Please Enter Your Name.")
		small_box.visitor.focus()
		ok=false
	}
	else if (small_box.visitormail.value == "")
	{
		alert("Please enter a value for the email field.");
		small_box.visitormail.focus();
		ok=false
	}
	else if (!isEmailAddr(small_box.visitormail.value))
	{
		alert("Please enter a complete email address in the form: yourname@yourdomain.com");
		small_box.visitormail.focus();
		ok=false
	}
	else if(small_box.contact.value=="")
	{
		alert("Please Enter Phone Number.")
		small_box.contact.focus()
		ok=false
	}
	else if(small_box.location.value=="")
	{
		alert("Please Enter Country Name.")
		small_box.location.focus()
		ok=false
	}
	
	else if (small_box.notes.value == "")
	{
		alert("Please specify your requirements.");
		small_box.notes.focus();
		ok=false
	}
	return ok
}

function isEmailAddr(visitormail)
{
  var result = false
  var theStr = new String(visitormail)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
	var pindex = theStr.indexOf(".",index);
	if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function ValidateNum(input,event)
	{
			var keyCode = event.which ? event.which : event.keyCode;
			if(parseInt(keyCode)>=48 && parseInt(keyCode)<=57)
			{
				return true;
			}
			return false;
		}



function clean_book()
{
	document.getElementById("visitor1").value = "";
	document.getElementById("visitormail1").value = "";
}

function book_enq_data()
{
	name = document.getElementById("visitor1").value;
	vmail = document.getElementById("visitormail1").value;
if(name=="")
	{
		alert("Please Enter Your Name.")
		name.focus();
		
	}
	else if (vmail == "")
	{
		alert("Please enter a value for the email field.");
		vmail.focus();
		
	}
	else if (!isEmailAddr(vmail))
	{
		alert("Please enter a complete email address in the form: yourname@yourdomain.com");
		vmail.focus();
		
	}
	
	var url="php/book_enquiry.php";
	url=url+"?visitor1="+name;
	url=url+"&visitormail1="+vmail;
	url=url+"&sid="+Math.random();

	Ajax(url,"book_enq");
}

function clean()
{
	document.getElementById("visitor").value = "Full Name";
	document.getElementById("visitormail").value = "Valid E-mail";
	document.getElementById("contact").value = "Contact Number";
	document.getElementById("location").value = "Select Location";
	document.getElementById("notes").value ="Message";
}

function clean_main_enq()
{
	document.getElementById("tb_FName").value = "";
	document.getElementById("tb_email").value = "";
	document.getElementById("tb_CurrLoc").value = "";
	document.getElementById("tb_gender").value = "";	
	document.getElementById("ddl_DOTMonth").value = "";
	document.getElementById("ddl_DOTYear").value = "";	
	document.getElementById("tb_mobile").value = "";
	document.getElementById("tb_skills").value = "";	
	document.getElementById("tb_qualification").value = "";
	document.getElementById("tb_title").value = "";
	document.getElementById("tb_Comment").value = "";
	document.getElementById("wordresume").value = "";
}

function clean_iop_enq()
{
	document.getElementById("tb_FName1").value = "";
	document.getElementById("tb_email1").value = "";
	document.getElementById("tb_TelNo1").value = "";
	document.getElementById("ddl_City1").value = "Select City";
	document.getElementById("tb_Comment1").value = "";
}
function isValidPhoneNumber(strPhone)
	{
		var phone = /^([0]{1}[1-9]{1}[0-9]{1}(-|\s)?\d{6,8})|([1-9]{1}\d{5,7})|([0]?([9]{1})([0-9]{9}))$/; 
		if (strPhone.match(phone)) {
			return true;
		} else {
			return false;
		}
	
	}
function bind_enq_data()
{
	name = document.getElementById("visitor").value;
	vmail = document.getElementById("visitormail").value;
	cont  = document.getElementById("contact").value;
	loc  = document.getElementById("location").value;
	note = document.getElementById("notes").value;
if(name=="")
	{
		alert("Please Enter Your Name.")		
		return false;
	}
if (vmail == "")
	{
		alert("Please enter a value for the email field.");
		return false;
		
	}
if (!isEmailAddr(vmail))
	{
		alert("Please enter a complete email address in the form: yourname@yourdomain.com");
		return false;
		
	}
if(cont=="")
	{
		alert("Please Enter Phone Number.");		
		return false;
	}
	
if(!isValidPhoneNumber(cont))
	{
		alert("Please Enter A Valid Phone Number.");	
		return false;
	}
	
if(loc=="")
	{
		alert("Please Enter A Intersted Location.")
		return false;
		
	}
	
if (note== "")
	{
		alert("Please specify your requirements.");
		return false;
		
	}
	
	var url="php/quick_enquiry.php";
	url=url+"?visitor="+name;
	url=url+"&visitormail="+vmail;
	url=url+"&notes="+note;
	url=url+"&contact="+cont;
	url=url+"&location="+loc;
	url=url+"&sid="+Math.random();

	Ajax(url,"small_box");
}



function bind_enq_form_data()
{
	vname = document.getElementById("tb_FName").value;
	mail = document.getElementById("tb_email").value;
	city = document.getElementById("tb_location").value;
	gen = document.getElementById("tb_gender").value;	
	
	dom = document.getElementById("tb_DOTMonth").value;
	doy = document.getElementById("tb_DOTYear").value;
	
	phone = document.getElementById("tb_mobile").value;
	skills = document.getElementById("tb_skills").value;
	course = document.getElementById("tb_qualification").value;	
	restitle = document.getElementById("tb_title").value;
	comment = document.getElementById("tb_Comment").value;
	resume = document.getElementById("wordresume").value;
	if(vname=="")
	{
		alert("Please Enter Your Name.")
		document.getElementById("tb_FName").focus()
		return false;
	}
	
	if(mail=="")
	{
		alert("Please Enter Your Email Id.")
		document.getElementById("tb_email").focus()
		return false;
	}
	
	if (!isEmailAddr(mail))
	{
		alert("Please enter a complete email address in the form: yourname@yourdomain.com");
		document.getElementById("tb_email").focus()
		return false;		
	}
	
	if(city=="")
	{
		alert("Please Enter Your Current Location.")	
		document.getElementById("tb_location").focus()
		return false;
	}
	
	if(gen=="")
	{
		alert("Please Enter Your Gender.")	
		document.getElementById("tb_gender").focus()
		return false;
	}
	
	if(dom=="" && doy=="")
	{
		alert("Please Enter Your Total Experince.")	
		document.getElementById("tb_DOTYear").focus()
		return false;
	}
	
	if(phone=="")
	{
		alert("Please Enter Your Contact Number.")	
		document.getElementById("tb_mobile").focus()
		return false;
	}
	
	if(!isValidPhoneNumber(phone))
	{
		alert("Please Enter A Valid Phone Number.");	
		document.getElementById("tb_mobile").focus()
		return false;
	}
	
	if(skills=="")
	{
		alert("Please Enter Your Skill Set.")	
		document.getElementById("tb_skills").focus()
		return false;
	}
	
	if(course=="")
	{
		alert("Please Enter Your Qualification.")	
		document.getElementById("tb_qualification").focus()
		return false;
	}
	
	if(restitle=="")
	{
		alert("Please Enter Your Resume Title.")	
		document.getElementById("tb_title").focus()
		return false;
	}
	
	if(comment=="")
	{
		alert("Please Enter Additional Information Column.")	
		document.getElementById("tb_Comment").focus()
		return false;
	}
	
	if(resume=="")
	{
		alert("Please Attach Your Resume.")		
		document.getElementById("wordresume").focus()
		return false;
	}
	
	/*var url="enquiry_1.php";
	url=url+"?name="+vname;
	url=url+"&mail="+mail;
	url=url+"&city="+city;
	url=url+"&gen="+gen;	
	url=url+"&dom="+dom;
	url=url+"&doy="+doy;	
	url=url+"&phone="+phone;
	url=url+"&skills="+skills;
	url=url+"&course="+course;
	url=url+"&restitle="+restitle;
	url=url+"&comment="+comment;	
	url=url+"&sid="+Math.random();

/*	Ajax(url,"main_div");
	var url="upload.php";
	url=url+"?name="+vname;
	url=url+"&mail="+mail;
	url=url+"&city="+city;
	url=url+"&gen="+gen;	
	url=url+"&dom="+dom;
	url=url+"&doy="+doy;	
	url=url+"&phone="+phone;
	url=url+"&skills="+skills;
	url=url+"&course="+course;
	url=url+"&restitle="+restitle;
	url=url+"&comment="+comment;	
	url=url+"&sid="+Math.random();

	Ajax(url,"cv_box");*/
}

function iop_enq_form_data()
{
	name = document.getElementById("tb_FName1").value;
	mail = document.getElementById("tb_email1").value;
	phone = document.getElementById("tb_TelNo1").value;
	scity = document.getElementById("ddl_City1").value;
	comment = document.getElementById("tb_Comment1").value;
	
	var url="enquiry_iop.php";
	url=url+"?name="+name;
	url=url+"&mail="+mail;
	url=url+"&phone="+phone;
	url=url+"&scity="+scity;	
	url=url+"&comment="+comment;
	url=url+"&sid="+Math.random();

	Ajax(url,"iop_div");
}

//Job Ast start

function job_enq_main_form()
{

job_enq = "<TABLE class=table_bg cellSpacing=0 cellPadding=0 width='39%' align=center><TR><TD height=25><TABLE class=commonfont cellSpacing=0 cellPadding=0 width='100%'><TR class=header_fnt><TD align=right width='3%' height=28></TD><TD align=left width='61%' height=28 class=header10>Job Astrologer</TD><TD align=middle width='35%' height=28><A class=link9 href='javascript:jobClose()'>[ Close Window ]</A></TD><TD align=left width='1%' height=28></TD></TR></TABLE></TD></TR><TR><TD height=5></TD></TR><TR><TD height=97><TABLE cellSpacing=0 cellPadding=0 width='270'><TR><TD vAlign=top width='91%' height=120><!-- form design --><div id='job_div' align=center><table cellpadding='0' cellspacing='0' width='255' id='table1' align=center><tr><td height=2 colspan=3></td></tr><tr><td height='35' width='255' class='fnt8' colspan='3'>Enter your details to know about Job Astrologer Predictions.</td></tr><tr><td height='25' width='92' valign='middle' class='fnt8'><font color='#FF0000'>*</font>E-mail</td><td height='25' width='6' valign='top' class='fnt3'>:</td><td height='25' width='157' valign='middle'><input type=text name='visitormail2' id='visitormail2' class='fnt8' style='width : 150; height : 22;'></td></tr><tr><td height='25' width='92' valign='middle' class='fnt8'><font color='#FF0000'>*</font>Contact No</td><td height='25' width='6' valign='top' class='fnt3'>:</td><td height='25' width='157' valign='middle'><input type=text name='contact2' id='contact2' class='fnt8' style='width : 150; height : 22;'></td></tr><tr><td height='29' width='255' valign='middle' colspan='3' align=center><input type=button onclick=clean_job()  value='Reset' name='reset' class='sub1' class='sub1'  style='width : 52;height:20'> <input type=button  onclick='job_enq_data()' value='Submit' name='submit' class='sub1'  style='width : 52;height:20'></td></tr></table></div><!-- end --></TD></TR></TABLE></TD></TR></TABLE>";

document.getElementById("job_div").innerHTML = job_enq;
}

function clean_job()
{
	document.getElementById("visitormail2").value = "";
	document.getElementById("contact2").value = "";
}

function job_enq_data()
{
	mail = document.getElementById("visitormail2").value;
	phone = document.getElementById("contact2").value;
	
	var url="enquiry_job.php";
	url=url+"?mail="+mail;
	url=url+"&phone="+phone;
	url=url+"&sid="+Math.random();

	Ajax(url,"job_div");
}

// Job Ast End

var xmlHttp
function Ajax(url,place)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
 	 {
 	 alert ("Your browser does not support AJAX!");
 	 return;
 	 } 

xmlHttp.onreadystatechange=function()
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById(place).innerHTML=xmlHttp.responseText;
}
}
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
