// JavaScript Document 
//dynamically load external JS file
function dhtmlLoadScript(url)
{
   var e = document.createElement("script");
   e.src = url;
   e.type="text/javascript";
   document.getElementsByTagName("head")[0].appendChild(e);
}

onload=function (){
if(document.frmquery)
	{document.frmquery.reset();}

if(document.frmqry2)
	{document.frmqry2.reset();}
	
if(document.frmquery1)
	{document.frmquery1.reset();}

if(document.frmAdvCard)
	{document.frmAdvCard.reset();}
}


function chkQryFrm(frmnm)
{
	var f = eval("document."+frmnm);
	
	if(trim(f.txtfname.value)=='' || trim(f.txtfname.value)=='Enter First Name')
		{
			alert("Please provide your first name.");
			f.txtfname.focus();
			f.txtfname.select();
			return false;
		}
	if(f.txtfname.value.charAt(0)==' ')
		{
			alert("First name cannot start with spaces.");
			f.txtfname.focus();
			f.txtfname.select();
			return false;			
		}
	if(chkinput((f.txtfname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in first name. (Only alphabets allowed)");
			f.txtfname.focus();
			f.txtfname.select();
			return false;
		}
	
	
	if(trim(f.txtlname.value)=='' || trim(f.txtlname.value)=='Enter Last Name')
		{
			alert("Please provide your last name.");
			f.txtlname.focus();
			f.txtlname.select();
			return false;
		} 
	if(f.txtlname.value.charAt(0)==' ')
		{
			alert("Last name cannot start with spaces.");
			f.txtlname.focus();
			f.txtlname.select();
			return false;			
		}
	if(chkinput((f.txtlname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in last name. (Only alphabets allowed)");
			f.txtlname.focus();
			f.txtlname.select();
			return false;
		}
	if(trim(f.selsex.value)=='')
		{
			alert("Please select your gender.");
			f.selsex.focus();
			return false;
		}
	if(trim(f.selcity.value)=='')
		{
			alert("Please select your city.");
			f.selcity.focus();
			return false;
		}

//	Below put in comment on 29-06-2009		
/*	if(trim(f.txtph.value)=='' || trim(f.txtph.value)=='Contact Number')
		{
			alert("Please provide your contact number.");
			f.txtph.focus();
			f.txtph.select();
			return false;
		}
	if(isNaN(f.txtph.value) || parseInt(f.txtph.value,10) == 0 || f.txtph.value.length<5)
		{
			alert("Please provide a valid contact number.");
			f.txtph.focus();
			f.txtph.select();
			return false;
		}*/

//	Below Added on 29-06-2009
	if(((trim(f.txtph.value)=='' || trim(f.txtph.value)=='Landline No.') && (trim(f.txtstd.value)=="" || trim(f.txtstd.value)=="STD")) && (trim(f.mobile.value)=="" || trim(f.mobile.value)=="Mobile"))
	{
		alert("Please provide any one contact number.")
		f.txtstd.focus()
		f.txtstd.select()
		return false
	}
	
	if((trim(f.txtph.value)=='' || trim(f.txtph.value)=='Landline No.') && (trim(f.txtstd.value)!="" && trim(f.txtstd.value)!="STD"))
	{
		alert("Please provide your landline number.")
		f.txtph.focus()
		f.txtph.select()
		return false
	}
	
	if((trim(f.txtstd.value)=='' || trim(f.txtstd.value)=='STD') && (trim(f.txtph.value)!="" && trim(f.txtph.value)!="Landline No."))
	{
		alert("Please provide your STD code.")
		f.txtstd.focus()
		f.txtstd.select()
		return false
	}
	
	if((trim(f.txtstd.value)!='' && trim(f.txtstd.value)!='STD'))
	{
		if(isNaN(f.txtstd.value) || parseInt(f.txtstd.value,10) == 0 || f.txtstd.value.length<2 || f.txtstd.value.length>5)
		{
			alert("Please provide a valid STD code.");
			f.txtstd.focus();
			f.txtstd.select();
			return false;
		}
	}

	if((trim(f.txtph.value)!='' && trim(f.txtph.value)!='Landline No.'))
	{
		if(isNaN(f.txtph.value) || parseInt(f.txtph.value,10) == 0 || f.txtph.value.length<6 || f.txtph.value.length>8)
		{
			alert("Please provide a valid landline number.");
			f.txtph.focus();
			f.txtph.select();
			return false;
		}	
	}
	if(((trim(f.txtstd.value)!='' && trim(f.txtstd.value)!='STD')) && ((trim(f.txtph.value)!='' && trim(f.txtph.value)!='Landline No.')))
	{
		var LandlineNo_tmp=f.txtstd.value+f.txtph.value
		if(LandlineNo_tmp.charAt(0)==0 && LandlineNo_tmp.length!=11)
		{
//			alert("Please provide a valid landline number.");
			alert("Please enter a valid 10 digit number (excluding zero) or 11 digit number (including zero).");
			f.txtstd.focus();
			f.txtstd.select();
			return false;
		}
		if(LandlineNo_tmp.charAt(0)!=0 && LandlineNo_tmp.length!=10)
		{
//			alert("Please provide a valid landline number.");
			alert("Please enter a valid 10 digit number (excluding zero) or 11 digit number (including zero).");			
			f.txtstd.focus();
			f.txtstd.select();
			return false;
		}
	}

	if((trim(f.mobile.value)!='' && trim(f.mobile.value)!='Mobile'))
	{
//		if(isNaN(f.mobile.value) || parseInt(f.mobile.value,10) == 0 || f.mobile.value.length!=10 || f.mobile.value.charAt(0)!=9)
		if(isNaN(f.mobile.value) || parseInt(f.mobile.value,10) == 0 || (f.mobile.value.charAt(0)!=9 && f.mobile.value.charAt(0)!=0))
		{
			alert("Please provide a valid mobile number.");
			f.mobile.focus();
			f.mobile.select();
			return false;
		}
		if(f.mobile.value.charAt(0)==9 && f.mobile.value.length!=10)
		{
//			alert("Please provide a valid mobile number.");
			alert("Please enter a valid 10 digit number (excluding zero) or 11 digit number (including zero).");
			f.mobile.focus();
			f.mobile.select();
			return false;
		}
		if(f.mobile.value.charAt(0)==0 && f.mobile.value.length!=11)
		{
//			alert("Please provide a valid mobile number.");
			alert("Please enter a valid 10 digit number (excluding zero) or 11 digit number (including zero).");
			f.mobile.focus();
			f.mobile.select();
			return false;
		}
	}
//	Above Added on 29-06-2009	

	if(trim(f.txtemail.value)=='' || trim(f.txtemail.value)=='Email id')
		{
			alert("Please provide your email id.");
			f.txtemail.focus();
			f.txtemail.select();
			return false;
		}
	if(!emailValidate(f.txtemail.value,''))
		{
			alert("Please enter a valid email id.")
			f.txtemail.focus();
			f.txtemail.select();
			return false;
		}
	if(trim(f.selprod.value)=='')
		{
			alert("Please select product/service.");
			f.selprod.focus();
			return false;
		}
		
	
	var querystr="txtfname="+f.txtfname.value+"&txtlname="+f.txtlname.value+"&selsex="+f.selsex.value+"&selcity="+f.selcity.value+"&txtstd="+f.txtstd.value+"&txtph="+f.txtph.value+"&mobile="+f.mobile.value+"&txtemail="+f.txtemail.value+"&selprod="+f.selprod.value;
	
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url="/processquery.asp";
	url=url+"?"+querystr;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=function() {stateChanged(frmnm)};
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	//document.frmquery.submit();	
		
}

function stateChanged(frmnm) 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById(frmnm+"msgDiv").innerHTML=xmlHttp.responseText;
		document.getElementById(frmnm).style.display='none';
	}
	else
	{document.getElementById(frmnm+"msgDiv").innerHTML="<b>Please wait.....</b>";}
}

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;
}


function rhs_home()
{
	//load validation file
	dhtmlLoadScript("/common/js/validation.js");
	/*Column 02 rhs starts*/
	document.write("<div class='column2'> ");
		/*Fullerton on starts here*/
	 document.write("<div class='title_login_3'>");
 document.write("<h2 class='facebook'>Connect with us on</h2>");
 document.write("<a href='http://www.facebook.com/FullertonSecurities/' target='_blank' title=''><img src='/common/images/facebook.gif'/></a>");
  document.write("<a href='http://www.linkedin.com/groups?mostPopular=&gid=2675025' target='_blank'><img src='/common/images/in-icon.gif'/></a>");
 document.write("<div class='clear'></div>");
	document.write("</div>");
	/*Fullerton on ends here*/
	/*Rhs content box starts here*/
	document.write("<div class='rhsContent'>");
		document.write("<div class='divider'></div>");
		document.write("<div class='title_login'>");
	document.write("<h2><a href='https://trade.fullertonsecurities.co.in' target='_blank' title='Login to Equity Trading'>Login to Equity Trading</a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
		document.write("<div class='title_login'>");
	document.write("<h2><a href='demo/fullerton-online.html' target='_blank' title='View Online Trading Demo'>View Online Trading Demo</a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	/*Fullerton online box starts*/
	
	document.write("<div class='boxonline_2'>");
	document.write("<a href='https://investments.fullertonsecurities.co.in' target='_blank'><img src='/common/images/fs_online_banner.gif'/></a>");
	document.write("</div>");
	/*Fullerton online box ends*/
	/*Call and trade starts*/
	document.write("<div class='call_trade_2'>");
	document.write("<div class='trade_cal_22'>");
	document.write("<img src='/common/images/call_trade.gif' alt=''/>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	document.write("<div class='title_login_44'>");
	document.write("<a href='/common/pdf/Safe_Secure_Transaction_A4Flyer.pdf' target='_blank'><img src='/common/images/Do_Dont.jpg' alt=''/></a>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	document.write("</div>");
	/*Call and trade ends*/
	/*Register contact details starts*/
	document.write("<div class='contact_2'>");
	/*Register title*/
	/*document.write("<div id='titRegister' class='title_login_4'>");
	document.write("<h2><a href='#' onclick=showrhs('detRegister'); return false;><img src='/common/images/get_in_touch.gif' alt=''/></a></h2>");
	document.write("</div>");*/
	document.write("<div class='title_login_4'>");
	document.write("<a href='http://www.fullertonsecurities.co.in/sub_broker/index.asp' target='_blank'><img src='/common/images/partner-us.jpg' alt=''/></a>");
	document.write("</div>");
	/*Register title ends*/
	/*Register details start*/
	document.write("<div id='detRegister'>");
	document.write("<div class='topcurve'></div>");
	document.write("<div id='showRegister'>");
	document.write("<h2><a href='#' onclick=hiderhs('detRegister'); return false;>Get in touch with us NOW</a></h2>");
	document.write("<div id='frmquerymsgDiv' align='center'></div>");
	document.write("<form name='frmquery' id='frmquery' method='post' action='/processquery.asp' class='frm1'>");
            document.write("<input name='txtfname' onBlur=\"if(this.value=='') this.value='Enter First Name'\" onFocus=\"if(this.value=='Enter First Name')this.value='';\" id='txtfname' maxlength='25' type='text' value='Enter First Name' onkeypress='return charonly(event)' class='text' />");
			document.write("<input name='txtlname' onBlur=\"if(this.value=='') this.value='Enter Last Name'\" onFocus=\"if(this.value=='Enter Last Name')this.value='';\" id='txtlname' maxlength='25' type='text' value='Enter Last Name' onkeypress='return charonly(event)' class='text' />");
			document.write("<select name='selsex' id='selsex'>");
              document.write("<option value=''>Select Gender</option>");
			  document.write("<option value='Male'>Male</option>");
			  document.write("<option value='Female'>Female</option>");
            document.write("</select>");
            document.write("<select name='selcity' id='selcity'>");
              document.write("<option value=''>Select City</option>");
			  document.write("<OPTION value='Ahmedabad'>Ahmedabad</OPTION>");
				document.write("<OPTION value='Ajmer'>Ajmer</OPTION>");
				document.write("<OPTION value='Akola'>Akola</OPTION>");
				document.write("<OPTION value='Ambala'>Ambala</OPTION>");
				document.write("<OPTION value='Amravati'>Amravati</OPTION>");
				document.write("<OPTION value='Amritsar'>Amritsar</OPTION>");
				document.write("<OPTION value='Ankleshwar'>Ankleshwar</OPTION>");
				document.write("<OPTION value='Bangalore'>Bangalore</OPTION>");
				document.write("<OPTION value='Bardoli'>Bardoli</OPTION>");
				document.write("<OPTION value='Baroda'>Baroda</OPTION>");
				document.write("<OPTION value='Bharuch'>Bharuch</OPTION>");
				document.write("<OPTION value='Bhatinda'>Bhatinda</OPTION>");
				document.write("<OPTION value='Bhilwara'>Bhilwara</OPTION>");
				document.write("<OPTION value='Chalakudy'>Chalakudy</OPTION>");
				document.write("<OPTION value='Chandigarh'>Chandigarh</OPTION>");
				document.write("<OPTION value='Chengannur'>Chengannur</OPTION>");
				document.write("<OPTION value='Chennai'>Chennai</OPTION>");
				document.write("<OPTION value='Cochin'>Cochin</OPTION>");
				document.write("<OPTION value='Coimbatore'>Coimbatore</OPTION>");
				document.write("<OPTION value='Curchorem'>Curchorem</OPTION>");
				document.write("<OPTION value='Delhi'>Delhi</OPTION>");
				document.write("<OPTION value='Guntur'>Guntur</OPTION>");
				document.write("<OPTION value='Gurgaon'>Gurgaon</OPTION>");
				document.write("<OPTION value='Himatnagar'>Himatnagar</OPTION>");
				document.write("<OPTION value='Hoshiarpur'>Hoshiarpur</OPTION>");
				document.write("<OPTION value='Hyderabad'>Hyderabad</OPTION>");
				document.write("<OPTION value='Indore'>Indore</OPTION>");
				document.write("<OPTION value='Jaipur'>Jaipur</OPTION>");
				document.write("<OPTION value='Jampshedpur'>Jampshedpur</OPTION>");
				document.write("<OPTION value='Junagadh'>Junagadh</OPTION>");
				document.write("<OPTION value='Kadi'>Kadi</OPTION>");
				document.write("<OPTION value='Kalyan'>Kalyan</OPTION>");
				document.write("<OPTION value='Kakinada'>Kakinada</OPTION>");
				document.write("<OPTION value='Kannur'>Kannur</OPTION>");
				document.write("<OPTION value='Kanpur'>Kanpur</OPTION>");
				document.write("<OPTION value='Karad'>Karad</OPTION>");
				document.write("<OPTION value='Karim Nagar'>Karim Nagar</OPTION>");
				document.write("<OPTION value='Karnal'>Karnal</OPTION>");
				document.write("<OPTION value='Kolkatta'>Kolkatta</OPTION>");
				document.write("<OPTION value='Kollam'>Kollam</OPTION>");
				document.write("<OPTION value='Kottayam'>Kottayam</OPTION>");
				document.write("<OPTION value='Kurukshetra'>Kurukshetra</OPTION>");
				document.write("<OPTION value='Lucknow'>Lucknow</OPTION>");
				document.write("<OPTION value='Ludhiana'>Ludhiana</OPTION>");
				document.write("<OPTION value='Mandi Govindgarh'>Mandi Govindgarh</OPTION>");
				document.write("<OPTION value='Mehsana'>Mehsana</OPTION>");
				document.write("<OPTION value='Moga'>Moga</OPTION>");
				document.write("<OPTION value='Mumbai'>Mumbai</OPTION>");
				document.write("<OPTION value='Nadiad'>Nadiad</OPTION>");
				document.write("<OPTION value='Nagpur'>Nagpur</OPTION>");
				document.write("<OPTION value='Nasik'>Nasik</OPTION>");
				document.write("<OPTION value='Nawanshahar'>Nawanshahar</OPTION>");
				document.write("<OPTION value='Nellore'>Nellore</OPTION>");
				document.write("<OPTION value='Palakkad'>Palakkad</OPTION>");
				document.write("<OPTION value='Panjim'>Panjim</OPTION>");
				document.write("<OPTION value='Patiala'>Patiala</OPTION>");
				document.write("<OPTION value='Pondicherry'>Pondicherry</OPTION>");
				document.write("<OPTION value='Pune'>Pune</OPTION>");
				document.write("<OPTION value='Rajkot'>Rajkot</OPTION>");
				document.write("<OPTION value='Ratnagiri'>Ratnagiri</OPTION>");
				document.write("<OPTION value='Sangli'>Sangli</OPTION>");
				document.write("<OPTION value='Simla'>Simla</OPTION>");
				document.write("<OPTION value='Surat'>Surat</OPTION>");
				document.write("<OPTION value='Thalassery'>Thalassery</OPTION>");
				document.write("<OPTION value='Tiruppur'>Tiruppur</OPTION>");
				document.write("<OPTION value='Trivandrum'>Trivandrum</OPTION>");
				document.write("<OPTION value='Unjha'>Unjha</OPTION>");
				document.write("<OPTION value='Valsad'>Valsad</OPTION>");
				document.write("<OPTION value='Vishakapatnam'>Vishakapatnam</OPTION>");
				document.write("<OPTION value='Warangal'>Warangal</OPTION>");
            document.write("</select>");
//			 document.write("<input name='txtph' onBlur=\"if(this.value=='') this.value='Contact Number'\" onFocus=\"if(this.value=='Contact Number')this.value='';\" onkeypress='return numbersonly(event)' id='txtph' maxlength='13' type='text' value='Contact Number' class='text' />");	//Put in comment on 29-06-2009

//	Below Added on 29-06-2009
//			document.write("<span class='note'>Please provide atleast one contact number.</span>")			
			document.write("<input name='txtstd' onBlur=\"if(this.value=='') this.value='STD'\" onFocus=\"if(this.value=='STD')this.value='';\" onkeypress='return numbersonly(event)' id='txtstd' maxlength='5' type='text' value='STD' class='text text3' />");
			document.write("<input name='txtph' onBlur=\"if(this.value=='') this.value='Landline No.'\" onFocus=\"if(this.value=='Landline No.')this.value='';\" onkeypress='return numbersonly(event)' id='txtph' maxlength='8' type='text' value='Landline No.' class='text textlan' />");
			document.write("<input name='mobile' onBlur=\"if(this.value=='') this.value='Mobile'\" onFocus=\"if(this.value=='Mobile')this.value='';\" onkeypress='return numbersonly(event)' id='mobile' maxlength='11' type='text' value='Mobile' class='text' />");			
//	Above Added on 29-06-2009			

			 document.write("<input name='txtemail' onBlur=\"if(this.value=='') this.value='Email id'\" onFocus=\"if(this.value=='Email id')this.value='';\" id='txtemail' maxlength='60' type='text' value='Email id' class='text' />");
			 /*document.write("<input name='' type='text' value='Income' class='text' />");*/
			 document.write("<select name='selprod' id='selprod'>");
              document.write("<option value=''>Select Product/Service</option>");
			    document.write("<option value='GOI Bonds'>GOI Bonds</option>");
				document.write("<option value='Company Fixed Deposits'>Company Fixed Deposits</option>");
				document.write("<option value='Demat'>Demat</option>");
				document.write("<option value='Equity'>Equity</option>");
				document.write("<option value='F and O'>F&O</option>");
				document.write("<option value='Life Insurance'>Life Insurance</option>");
				document.write("<option value='Mutual Funds'>Mutual Funds</option>");
				document.write("<option value='Health Insurance'>Health Insurance</option>");
				document.write("<option value='Vehicle Insurance'>Vehicle Insurance</option>");
				document.write("<option value='Home Insurance'>Home Insurance</option>");
				document.write("<option value='Travel Insurance'>Travel Insurance</option>");
				document.write("<option value='Fullerton Advantage Account'>Fullerton Advantage Account</option>");				
            document.write("</select>");
            document.write("<input name='' type='button' value='Submit' class='button' onclick=\"chkQryFrm('frmquery')\" />");
          document.write("</form>");
	document.write("</div>");
	document.write("</div>");
	/*Register details end*/
	document.write("</div>");
	/*Register contact details ends*/
	/*Portfolio tracker starts*/
	document.write("<div class='call_trade'>");
	document.write("<p class='call'><a href='http://fullertonwt.acesphere.com/' target='_blank' title='Portfolio Tracker'>Portfolio Tracker</a></p>");
	document.write("<div class='divider'></div>");
	document.write("</div>");
	document.write("<div id='titRegister' class='title_login_5'>");
	document.write("<h2 class='facebook'><a href='../careers/open_positions.aspx'><img src='/common/images/discover-career.gif' alt=''/></a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	/*Portfolio tracker ends*/
	document.write("<div class='reachus'>");
	document.write("<h2>Reach Us</h2>");
	document.write("<p><span>Call us:</span>39 400 800</p>");
	document.write("<p><span>Fax us:</span>+91 - 124- 3092424</p>");
	document.write("<p><span>Email:</span><a href='mailto:customercare@fullertonsecurities.co.in'>customercare@<br>fullertonsecurities.co.in</a></p>");
	document.write("</div>");
	document.write("<div class='newadholder'>");
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='191' height='417'><param name='movie' value='/common/images/Verticle_Banner.swf' /><param name='quality' value='high' /><embed src='/common/images/Verticle_Banner.swf' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='191' height='417'></embed></object>");
	document.write("</div>");
	/*document.write("<div class='newadholder'>");
	document.write("<a href='/LP_Investment%20Restructring/LP_investment1.asp' target='_blank'><img src='/common/images/Fs_portfolio_banner.gif' alt=''/></a>");
	document.write("</div>");*/
	document.write("</div>");
	/*Rhs content box ends here*/
	document.write("</div>");
	/*Column 02 rhs starts*/
}

function rhs()
{
	//load validation file
	dhtmlLoadScript("/common/js/validation.js");
	/*Column 02 rhs starts*/
	document.write("<div class='column2'> ");
		/*Fullerton on starts here*/
	 document.write("<div class='title_login_3'>");
 document.write("<h2 class='facebook'>Connect with us on</h2>");
 document.write("<a href='http://www.facebook.com/FullertonSecurities/' target='_blank' title=''><img src='/common/images/facebook.gif'/></a>");
  document.write("<a href='http://www.linkedin.com/groups?mostPopular=&gid=2675025' target='_blank'><img src='/common/images/in-icon.gif'/></a>");
 document.write("<div class='clear'></div>");
	document.write("</div>");
	/*Fullerton on ends here*/
	/*Sharing box starts here*/
	/*document.write("<div class='rhsbox sharing'>");
	document.write("<!-- AddThis Button BEGIN --><div class='addthis_toolbox addthis_default_style'><a href='http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4b4572cc4af1a7bf' class='addthis_button_compact'>Share</a><span class='addthis_separator'>|</span><a class='addthis_button_facebook'></a><a class='addthis_button_orkut'></a><a class='addthis_button_twitter'></a><a class='addthis_button_linkedin'></a></div><script type='text/javascript' src='http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4b4572cc4af1a7bf'></script><!-- AddThis Button END -->");
	document.write("</div>");*/
	/*Sharing box ends here*/
	/*Rhs content box starts here*/
	document.write("<div class='rhsContent'>");
		document.write("<div class='divider'></div>");
		document.write("<div class='title_login'>");
	document.write("<h2><a href='https://trade.fullertonsecurities.co.in' target='_blank' title='Login to Equity Trading'>Login to Equity Trading</a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
		document.write("<div class='title_login'>");
	document.write("<h2><a href='/demo/fullerton-online.html' target='_blank' title='View Online Trading Demo'>View Online Trading Demo</a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	/*Fullerton online box starts*/
/*	document.write("<div class='boxonline'>");
	document.write("<h2>Fullerton Online</h2>");
	document.write("<p>A single click to trade in Equities, Mutual Funds and track your portfolio</p>");
	document.write("<a href='https://investments.fullertonsecurities.co.in' target='_blank'>Click here</a>");
	document.write("</div>");*/
	
	document.write("<div class='boxonline_2'>");
	document.write("<a href='https://investments.fullertonsecurities.co.in' target='_blank'><img src='/common/images/fs_online_banner.gif'/></a>");
	document.write("</div>");
	/*Fullerton online box ends*/

	//document.write("<div class='title_login'>");
//	document.write("<h2><a href='https://funds.fullertonsecurities.co.in/fullertononline/login.asp' target='_blank' title='Login to MF Online'>Login to MF Online</a></h2>");
//	document.write("</div>");
	/*Call and trade starts*/
	document.write("<div class='call_trade_2'>");
	document.write("<div class='trade_cal_22'>");
	document.write("<img src='/common/images/call_trade.gif' alt=''/>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	/*document.write("<div class='title_login_44'>");
	document.write("<a href='http://www.fullertonsecurities.co.in/sub_broker/index.asp' target='_blank'><img src='/common/images/partner-us.gif' alt=''/></a>");
	document.write("</div>");*/
	document.write("<div class='title_login_44'>");
	document.write("<a href='/common/pdf/Safe_Secure_Transaction_A4Flyer.pdf' target='_blank'><img src='/common/images/Do_Dont.jpg' alt=''/></a>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	document.write("</div>");
	/*Call and trade ends*/
		/*Call and trade starts*/
/*	document.write("<div class='health'>");
	document.write("<div id='titRegister'>");
	document.write("<h2 class='health_txt'><a href='#' onclick=\"window.open('../calc/health_calculator.html','','height=620, width=690, scrollbars=yes, resizable=1, top=0, left=0'); return false;\">Check Your Financial Health</a></h2>");
	document.write("<div class='divider'></div>");
	document.write("</div>");
	document.write("</div>");*/
	/*Call and trade ends*/
	/*Register contact details starts*/
	document.write("<div class='contact_2'>");
	/*Register title*/
	/*document.write("<div id='titRegister' class='title_login_4'>");
	document.write("<h2><a href='#' onclick=showrhs('detRegister'); return false;><img src='/common/images/get_in_touch.gif' alt=''/></a></h2>");
	document.write("</div>");*/
	document.write("<div class='title_login_4'>");
	document.write("<a href='http://www.fullertonsecurities.co.in/sub_broker/index.asp' target='_blank'><img src='/common/images/partner-us.jpg' alt=''/></a>");
	document.write("</div>");
	/*Register title ends*/
	/*Register details start*/
	document.write("<div id='detRegister'>");
	document.write("<div class='topcurve'></div>");
	document.write("<div id='showRegister'>");
	document.write("<h2><a href='#' onclick=hiderhs('detRegister'); return false;>Get in touch with us NOW</a></h2>");
	document.write("<div id='frmquerymsgDiv' align='center'></div>");
	document.write("<form name='frmquery' id='frmquery' method='post' action='/processquery.asp' class='frm1'>");
            document.write("<input name='txtfname' onBlur=\"if(this.value=='') this.value='Enter First Name'\" onFocus=\"if(this.value=='Enter First Name')this.value='';\" id='txtfname' maxlength='25' type='text' value='Enter First Name' onkeypress='return charonly(event)' class='text' />");
			document.write("<input name='txtlname' onBlur=\"if(this.value=='') this.value='Enter Last Name'\" onFocus=\"if(this.value=='Enter Last Name')this.value='';\" id='txtlname' maxlength='25' type='text' value='Enter Last Name' onkeypress='return charonly(event)' class='text' />");
			document.write("<select name='selsex' id='selsex'>");
              document.write("<option value=''>Select Gender</option>");
			  document.write("<option value='Male'>Male</option>");
			  document.write("<option value='Female'>Female</option>");
            document.write("</select>");
            document.write("<select name='selcity' id='selcity'>");
              document.write("<option value=''>Select City</option>");
			  document.write("<OPTION value='Ahmedabad'>Ahmedabad</OPTION>");
				document.write("<OPTION value='Ajmer'>Ajmer</OPTION>");
				document.write("<OPTION value='Akola'>Akola</OPTION>");
				document.write("<OPTION value='Ambala'>Ambala</OPTION>");
				document.write("<OPTION value='Amravati'>Amravati</OPTION>");
				document.write("<OPTION value='Amritsar'>Amritsar</OPTION>");
				document.write("<OPTION value='Ankleshwar'>Ankleshwar</OPTION>");
				document.write("<OPTION value='Bangalore'>Bangalore</OPTION>");
				document.write("<OPTION value='Bardoli'>Bardoli</OPTION>");
				document.write("<OPTION value='Baroda'>Baroda</OPTION>");
				document.write("<OPTION value='Bharuch'>Bharuch</OPTION>");
				document.write("<OPTION value='Bhatinda'>Bhatinda</OPTION>");
				document.write("<OPTION value='Bhilwara'>Bhilwara</OPTION>");
				document.write("<OPTION value='Chalakudy'>Chalakudy</OPTION>");
				document.write("<OPTION value='Chandigarh'>Chandigarh</OPTION>");
				document.write("<OPTION value='Chengannur'>Chengannur</OPTION>");
				document.write("<OPTION value='Chennai'>Chennai</OPTION>");
				document.write("<OPTION value='Cochin'>Cochin</OPTION>");
				document.write("<OPTION value='Coimbatore'>Coimbatore</OPTION>");
				document.write("<OPTION value='Curchorem'>Curchorem</OPTION>");
				document.write("<OPTION value='Delhi'>Delhi</OPTION>");
				document.write("<OPTION value='Guntur'>Guntur</OPTION>");
				document.write("<OPTION value='Gurgaon'>Gurgaon</OPTION>");
				document.write("<OPTION value='Himatnagar'>Himatnagar</OPTION>");
				document.write("<OPTION value='Hoshiarpur'>Hoshiarpur</OPTION>");
				document.write("<OPTION value='Hyderabad'>Hyderabad</OPTION>");
				document.write("<OPTION value='Indore'>Indore</OPTION>");
				document.write("<OPTION value='Jaipur'>Jaipur</OPTION>");
				document.write("<OPTION value='Jampshedpur'>Jampshedpur</OPTION>");
				document.write("<OPTION value='Junagadh'>Junagadh</OPTION>");
				document.write("<OPTION value='Kadi'>Kadi</OPTION>");
				document.write("<OPTION value='Kalyan'>Kalyan</OPTION>");
				document.write("<OPTION value='Kakinada'>Kakinada</OPTION>");
				document.write("<OPTION value='Kannur'>Kannur</OPTION>");
				document.write("<OPTION value='Kanpur'>Kanpur</OPTION>");
				document.write("<OPTION value='Karad'>Karad</OPTION>");
				document.write("<OPTION value='Karim Nagar'>Karim Nagar</OPTION>");
				document.write("<OPTION value='Karnal'>Karnal</OPTION>");
				document.write("<OPTION value='Kolkatta'>Kolkatta</OPTION>");
				document.write("<OPTION value='Kollam'>Kollam</OPTION>");
				document.write("<OPTION value='Kottayam'>Kottayam</OPTION>");
				document.write("<OPTION value='Kurukshetra'>Kurukshetra</OPTION>");
				document.write("<OPTION value='Lucknow'>Lucknow</OPTION>");
				document.write("<OPTION value='Ludhiana'>Ludhiana</OPTION>");
				document.write("<OPTION value='Mandi Govindgarh'>Mandi Govindgarh</OPTION>");
				document.write("<OPTION value='Mehsana'>Mehsana</OPTION>");
				document.write("<OPTION value='Moga'>Moga</OPTION>");
				document.write("<OPTION value='Mumbai'>Mumbai</OPTION>");
				document.write("<OPTION value='Nadiad'>Nadiad</OPTION>");
				document.write("<OPTION value='Nagpur'>Nagpur</OPTION>");
				document.write("<OPTION value='Nasik'>Nasik</OPTION>");
				document.write("<OPTION value='Nawanshahar'>Nawanshahar</OPTION>");
				document.write("<OPTION value='Nellore'>Nellore</OPTION>");
				document.write("<OPTION value='Palakkad'>Palakkad</OPTION>");
				document.write("<OPTION value='Panjim'>Panjim</OPTION>");
				document.write("<OPTION value='Patiala'>Patiala</OPTION>");
				document.write("<OPTION value='Pondicherry'>Pondicherry</OPTION>");
				document.write("<OPTION value='Pune'>Pune</OPTION>");
				document.write("<OPTION value='Rajkot'>Rajkot</OPTION>");
				document.write("<OPTION value='Ratnagiri'>Ratnagiri</OPTION>");
				document.write("<OPTION value='Sangli'>Sangli</OPTION>");
				document.write("<OPTION value='Simla'>Simla</OPTION>");
				document.write("<OPTION value='Surat'>Surat</OPTION>");
				document.write("<OPTION value='Thalassery'>Thalassery</OPTION>");
				document.write("<OPTION value='Tiruppur'>Tiruppur</OPTION>");
				document.write("<OPTION value='Trivandrum'>Trivandrum</OPTION>");
				document.write("<OPTION value='Unjha'>Unjha</OPTION>");
				document.write("<OPTION value='Valsad'>Valsad</OPTION>");
				document.write("<OPTION value='Vishakapatnam'>Vishakapatnam</OPTION>");
				document.write("<OPTION value='Warangal'>Warangal</OPTION>");
            document.write("</select>");
//			 document.write("<input name='txtph' onBlur=\"if(this.value=='') this.value='Contact Number'\" onFocus=\"if(this.value=='Contact Number')this.value='';\" onkeypress='return numbersonly(event)' id='txtph' maxlength='13' type='text' value='Contact Number' class='text' />");	//Put in comment on 29-06-2009

//	Below Added on 29-06-2009
//			document.write("<span class='note'>Please provide atleast one contact number.</span>")			
			document.write("<input name='txtstd' onBlur=\"if(this.value=='') this.value='STD'\" onFocus=\"if(this.value=='STD')this.value='';\" onkeypress='return numbersonly(event)' id='txtstd' maxlength='5' type='text' value='STD' class='text text3' />");
			document.write("<input name='txtph' onBlur=\"if(this.value=='') this.value='Landline No.'\" onFocus=\"if(this.value=='Landline No.')this.value='';\" onkeypress='return numbersonly(event)' id='txtph' maxlength='8' type='text' value='Landline No.' class='text textlan' />");
			document.write("<input name='mobile' onBlur=\"if(this.value=='') this.value='Mobile'\" onFocus=\"if(this.value=='Mobile')this.value='';\" onkeypress='return numbersonly(event)' id='mobile' maxlength='11' type='text' value='Mobile' class='text' />");			
//	Above Added on 29-06-2009			

			 document.write("<input name='txtemail' onBlur=\"if(this.value=='') this.value='Email id'\" onFocus=\"if(this.value=='Email id')this.value='';\" id='txtemail' maxlength='60' type='text' value='Email id' class='text' />");
			 /*document.write("<input name='' type='text' value='Income' class='text' />");*/
			 document.write("<select name='selprod' id='selprod'>");
              document.write("<option value=''>Select Product/Service</option>");
			    document.write("<option value='GOI Bonds'>GOI Bonds</option>");
				document.write("<option value='Company Fixed Deposits'>Company Fixed Deposits</option>");
				document.write("<option value='Demat'>Demat</option>");
				document.write("<option value='Equity'>Equity</option>");
				document.write("<option value='F and O'>F&O</option>");
				document.write("<option value='Life Insurance'>Life Insurance</option>");
				document.write("<option value='Mutual Funds'>Mutual Funds</option>");
				document.write("<option value='Health Insurance'>Health Insurance</option>");
				document.write("<option value='Vehicle Insurance'>Vehicle Insurance</option>");
				document.write("<option value='Home Insurance'>Home Insurance</option>");
				document.write("<option value='Travel Insurance'>Travel Insurance</option>");
				document.write("<option value='Fullerton Advantage Account'>Fullerton Advantage Account</option>");				
            document.write("</select>");
            document.write("<input name='' type='button' value='Submit' class='button' onclick=\"chkQryFrm('frmquery')\" />");
          document.write("</form>");
	document.write("</div>");
	document.write("</div>");
	/*Register details end*/
	document.write("</div>");
	/*Register contact details ends*/
	/*Portfolio tracker starts*/
	document.write("<div class='call_trade'>");
	document.write("<p class='call'><a href='http://fullertonwt.acesphere.com/' target='_blank' title='Portfolio Tracker'>Portfolio Tracker</a></p>");
	document.write("<div class='divider'></div>");
	document.write("</div>");
	document.write("<div id='titRegister' class='title_login_5'>");
	document.write("<h2 class='facebook'><a href='../careers/open_positions.aspx'><img src='/common/images/discover-career.gif' alt=''/></a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	/*Portfolio tracker ends*/
	document.write("<div class='reachus'>");
	document.write("<h2>Reach Us</h2>");
	document.write("<p><span>Call us:</span>39 400 800</p>");
	document.write("<p><span>Fax us:</span>+91 - 124- 3092424</p>");
	document.write("<p><span>Email:</span><a href='mailto:customercare@fullertonsecurities.co.in'>customercare@<br>fullertonsecurities.co.in</a></p>");
	document.write("</div>");
	document.write("</div>");
	
	/*Rhs content box ends here*/
<!--	document.write("<div class='clear'></div>");-->

	document.write("</div>");
	/*Column 02 rhs starts*/
}
/****rhs equity home page**/
function rhs_equityhome()
{
	//load validation file
	dhtmlLoadScript("/common/js/validation.js");
	/*Column 02 rhs starts*/
	document.write("<div class='column2'> ");
		/*Fullerton on starts here*/
	 document.write("<div class='title_login_3'>");
 document.write("<h2 class='facebook'>Connect with us on</h2>");
 document.write("<a href='http://www.facebook.com/FullertonSecurities/' target='_blank' title=''><img src='/common/images/facebook.gif'/></a>");
  document.write("<a href='http://www.linkedin.com/groups?mostPopular=&gid=2675025' target='_blank'><img src='/common/images/in-icon.gif'/></a>");
 document.write("<div class='clear'></div>");
	document.write("</div>");
	/*Fullerton on ends here*/
	
	/*Rhs content box starts here*/
	document.write("<div class='rhsContent'>");
		document.write("<div class='divider'></div>");
		document.write("<div class='title_login'>");
	document.write("<h2><a href='https://trade.fullertonsecurities.co.in' target='_blank' title='Login to Equity Trading'>Login to Equity Trading</a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
		document.write("<div class='title_login'>");
	document.write("<h2><a href='/demo/fullerton-online.html' target='_blank' title='View Online Trading Demo'>View Online Trading Demo</a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	/*Fullerton online box starts*/

	
	document.write("<div class='boxonline_2'>");
	document.write("<a href='https://investments.fullertonsecurities.co.in' target='_blank'><img src='/common/images/fs_online_banner.gif'/></a>");
	document.write("</div>");
	/*Fullerton online box ends*/

	
	/*Call and trade starts*/
	document.write("<div class='call_trade_2'>");
	document.write("<div class='trade_cal_22'>");
	document.write("<img src='/common/images/call_trade.gif' alt=''/>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	/*document.write("<div class='title_login_44'>");
	document.write("<a href='http://www.fullertonsecurities.co.in/sub_broker/index.asp' target='_blank'><img src='/common/images/partner-us.gif' alt=''/></a>");
	document.write("</div>");*/
	document.write("<div class='title_login_44'>");
	document.write("<a href='/common/pdf/Safe_Secure_Transaction_A4Flyer.pdf' target='_blank'><img src='/common/images/Do_Dont.jpg' alt=''/></a>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	document.write("</div>");
	
	/*Register contact details starts*/
	document.write("<div class='contact_2'>");
	/*Register title*/
	/*document.write("<div id='titRegister' class='title_login_4'>");
	document.write("<h2><a href='#' onclick=showrhs('detRegister'); return false;><img src='/common/images/get_in_touch.gif' alt=''/></a></h2>");
	document.write("</div>");*/
	document.write("<div class='title_login_4'>");
	document.write("<a href='http://www.fullertonsecurities.co.in/sub_broker/index.asp' target='_blank'><img src='/common/images/partner-us.jpg' alt=''/></a>");
	document.write("</div>");
	/*Register title ends*/
	/*Register details start*/
	document.write("<div id='detRegister'>");
	document.write("<div class='topcurve'></div>");
	document.write("<div id='showRegister'>");
	document.write("<h2><a href='#' onclick=hiderhs('detRegister'); return false;>Get in touch with us NOW</a></h2>");
	document.write("<div id='frmquerymsgDiv' align='center'></div>");
	document.write("<form name='frmquery' id='frmquery' method='post' action='/processquery.asp' class='frm1'>");
            document.write("<input name='txtfname' onBlur=\"if(this.value=='') this.value='Enter First Name'\" onFocus=\"if(this.value=='Enter First Name')this.value='';\" id='txtfname' maxlength='25' type='text' value='Enter First Name' onkeypress='return charonly(event)' class='text' />");
			document.write("<input name='txtlname' onBlur=\"if(this.value=='') this.value='Enter Last Name'\" onFocus=\"if(this.value=='Enter Last Name')this.value='';\" id='txtlname' maxlength='25' type='text' value='Enter Last Name' onkeypress='return charonly(event)' class='text' />");
			document.write("<select name='selsex' id='selsex'>");
              document.write("<option value=''>Select Gender</option>");
			  document.write("<option value='Male'>Male</option>");
			  document.write("<option value='Female'>Female</option>");
            document.write("</select>");
            document.write("<select name='selcity' id='selcity'>");
              document.write("<option value=''>Select City</option>");
			  document.write("<OPTION value='Ahmedabad'>Ahmedabad</OPTION>");
				document.write("<OPTION value='Ajmer'>Ajmer</OPTION>");
				document.write("<OPTION value='Akola'>Akola</OPTION>");
				document.write("<OPTION value='Ambala'>Ambala</OPTION>");
				document.write("<OPTION value='Amravati'>Amravati</OPTION>");
				document.write("<OPTION value='Amritsar'>Amritsar</OPTION>");
				document.write("<OPTION value='Ankleshwar'>Ankleshwar</OPTION>");
				document.write("<OPTION value='Bangalore'>Bangalore</OPTION>");
				document.write("<OPTION value='Bardoli'>Bardoli</OPTION>");
				document.write("<OPTION value='Baroda'>Baroda</OPTION>");
				document.write("<OPTION value='Bharuch'>Bharuch</OPTION>");
				document.write("<OPTION value='Bhatinda'>Bhatinda</OPTION>");
				document.write("<OPTION value='Bhilwara'>Bhilwara</OPTION>");
				document.write("<OPTION value='Chalakudy'>Chalakudy</OPTION>");
				document.write("<OPTION value='Chandigarh'>Chandigarh</OPTION>");
				document.write("<OPTION value='Chengannur'>Chengannur</OPTION>");
				document.write("<OPTION value='Chennai'>Chennai</OPTION>");
				document.write("<OPTION value='Cochin'>Cochin</OPTION>");
				document.write("<OPTION value='Coimbatore'>Coimbatore</OPTION>");
				document.write("<OPTION value='Curchorem'>Curchorem</OPTION>");
				document.write("<OPTION value='Delhi'>Delhi</OPTION>");
				document.write("<OPTION value='Guntur'>Guntur</OPTION>");
				document.write("<OPTION value='Gurgaon'>Gurgaon</OPTION>");
				document.write("<OPTION value='Himatnagar'>Himatnagar</OPTION>");
				document.write("<OPTION value='Hoshiarpur'>Hoshiarpur</OPTION>");
				document.write("<OPTION value='Hyderabad'>Hyderabad</OPTION>");
				document.write("<OPTION value='Indore'>Indore</OPTION>");
				document.write("<OPTION value='Jaipur'>Jaipur</OPTION>");
				document.write("<OPTION value='Jampshedpur'>Jampshedpur</OPTION>");
				document.write("<OPTION value='Junagadh'>Junagadh</OPTION>");
				document.write("<OPTION value='Kadi'>Kadi</OPTION>");
				document.write("<OPTION value='Kalyan'>Kalyan</OPTION>");
				document.write("<OPTION value='Kakinada'>Kakinada</OPTION>");
				document.write("<OPTION value='Kannur'>Kannur</OPTION>");
				document.write("<OPTION value='Kanpur'>Kanpur</OPTION>");
				document.write("<OPTION value='Karad'>Karad</OPTION>");
				document.write("<OPTION value='Karim Nagar'>Karim Nagar</OPTION>");
				document.write("<OPTION value='Karnal'>Karnal</OPTION>");
				document.write("<OPTION value='Kolkatta'>Kolkatta</OPTION>");
				document.write("<OPTION value='Kollam'>Kollam</OPTION>");
				document.write("<OPTION value='Kottayam'>Kottayam</OPTION>");
				document.write("<OPTION value='Kurukshetra'>Kurukshetra</OPTION>");
				document.write("<OPTION value='Lucknow'>Lucknow</OPTION>");
				document.write("<OPTION value='Ludhiana'>Ludhiana</OPTION>");
				document.write("<OPTION value='Mandi Govindgarh'>Mandi Govindgarh</OPTION>");
				document.write("<OPTION value='Mehsana'>Mehsana</OPTION>");
				document.write("<OPTION value='Moga'>Moga</OPTION>");
				document.write("<OPTION value='Mumbai'>Mumbai</OPTION>");
				document.write("<OPTION value='Nadiad'>Nadiad</OPTION>");
				document.write("<OPTION value='Nagpur'>Nagpur</OPTION>");
				document.write("<OPTION value='Nasik'>Nasik</OPTION>");
				document.write("<OPTION value='Nawanshahar'>Nawanshahar</OPTION>");
				document.write("<OPTION value='Nellore'>Nellore</OPTION>");
				document.write("<OPTION value='Palakkad'>Palakkad</OPTION>");
				document.write("<OPTION value='Panjim'>Panjim</OPTION>");
				document.write("<OPTION value='Patiala'>Patiala</OPTION>");
				document.write("<OPTION value='Pondicherry'>Pondicherry</OPTION>");
				document.write("<OPTION value='Pune'>Pune</OPTION>");
				document.write("<OPTION value='Rajkot'>Rajkot</OPTION>");
				document.write("<OPTION value='Ratnagiri'>Ratnagiri</OPTION>");
				document.write("<OPTION value='Sangli'>Sangli</OPTION>");
				document.write("<OPTION value='Simla'>Simla</OPTION>");
				document.write("<OPTION value='Surat'>Surat</OPTION>");
				document.write("<OPTION value='Thalassery'>Thalassery</OPTION>");
				document.write("<OPTION value='Tiruppur'>Tiruppur</OPTION>");
				document.write("<OPTION value='Trivandrum'>Trivandrum</OPTION>");
				document.write("<OPTION value='Unjha'>Unjha</OPTION>");
				document.write("<OPTION value='Valsad'>Valsad</OPTION>");
				document.write("<OPTION value='Vishakapatnam'>Vishakapatnam</OPTION>");
				document.write("<OPTION value='Warangal'>Warangal</OPTION>");
            document.write("</select>");
//			 document.write("<input name='txtph' onBlur=\"if(this.value=='') this.value='Contact Number'\" onFocus=\"if(this.value=='Contact Number')this.value='';\" onkeypress='return numbersonly(event)' id='txtph' maxlength='13' type='text' value='Contact Number' class='text' />");	//Put in comment on 29-06-2009

//	Below Added on 29-06-2009
//			document.write("<span class='note'>Please provide atleast one contact number.</span>")			
			document.write("<input name='txtstd' onBlur=\"if(this.value=='') this.value='STD'\" onFocus=\"if(this.value=='STD')this.value='';\" onkeypress='return numbersonly(event)' id='txtstd' maxlength='5' type='text' value='STD' class='text text3' />");
			document.write("<input name='txtph' onBlur=\"if(this.value=='') this.value='Landline No.'\" onFocus=\"if(this.value=='Landline No.')this.value='';\" onkeypress='return numbersonly(event)' id='txtph' maxlength='8' type='text' value='Landline No.' class='text textlan' />");
			document.write("<input name='mobile' onBlur=\"if(this.value=='') this.value='Mobile'\" onFocus=\"if(this.value=='Mobile')this.value='';\" onkeypress='return numbersonly(event)' id='mobile' maxlength='11' type='text' value='Mobile' class='text' />");			
//	Above Added on 29-06-2009			

			 document.write("<input name='txtemail' onBlur=\"if(this.value=='') this.value='Email id'\" onFocus=\"if(this.value=='Email id')this.value='';\" id='txtemail' maxlength='60' type='text' value='Email id' class='text' />");
			 /*document.write("<input name='' type='text' value='Income' class='text' />");*/
			 document.write("<select name='selprod' id='selprod'>");
              document.write("<option value=''>Select Product/Service</option>");
			    document.write("<option value='GOI Bonds'>GOI Bonds</option>");
				document.write("<option value='Company Fixed Deposits'>Company Fixed Deposits</option>");
				document.write("<option value='Demat'>Demat</option>");
				document.write("<option value='Equity'>Equity</option>");
				document.write("<option value='F and O'>F&O</option>");
				document.write("<option value='Life Insurance'>Life Insurance</option>");
				document.write("<option value='Mutual Funds'>Mutual Funds</option>");
				document.write("<option value='Health Insurance'>Health Insurance</option>");
				document.write("<option value='Vehicle Insurance'>Vehicle Insurance</option>");
				document.write("<option value='Home Insurance'>Home Insurance</option>");
				document.write("<option value='Travel Insurance'>Travel Insurance</option>");
				document.write("<option value='Fullerton Advantage Account'>Fullerton Advantage Account</option>");				
            document.write("</select>");
            document.write("<input name='' type='button' value='Submit' class='button' onclick=\"chkQryFrm('frmquery')\" />");
          document.write("</form>");
	document.write("</div>");
	document.write("</div>");
	/*Register details end*/
	document.write("</div>");
	/*Register contact details ends*/
	/*Portfolio tracker starts*/
	document.write("<div class='call_trade'>");
	document.write("<p class='call'><a href='http://fullertonwt.acesphere.com/' target='_blank' title='Portfolio Tracker'>Portfolio Tracker</a></p>");
	document.write("<div class='divider'></div>");
	document.write("</div>");
	document.write("<div id='titRegister' class='title_login_5'>");
	document.write("<h2 class='facebook'><a href='../careers/open_positions.aspx'><img src='/common/images/discover-career.gif' alt=''/></a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	/*Portfolio tracker ends*/
	document.write("<div class='reachus'>");
	document.write("<h2>Reach Us</h2>");
	document.write("<p><span>Call us:</span>39 400 800</p>");
	document.write("<p><span>Fax us:</span>+91 - 124- 3092424</p>");
	document.write("<p><span>Email:</span><a href='mailto:customercare@fullertonsecurities.co.in'>customercare@<br>fullertonsecurities.co.in</a></p>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	document.write("<div class='newadholder'>");
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='191' height='417'><param name='movie' value='/common/images/Verticle_Banner.swf' /><param name='quality' value='high' /><embed src='/common/images/Verticle_Banner.swf' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='191' height='417'></embed></object>");
	document.write("</div>");
/*	document.write("<div class='newadholder'>");
	document.write("<a href='/LP_Investment%20Restructring/LP_investment1.asp' target='_blank'><img src='/common/images/Fs_portfolio_banner.gif' alt=''/></a>");
	document.write("</div>");*/
	document.write("</div>");
	
	/*Rhs content box ends here*/
<!--	document.write("<div class='clear'></div>");-->

	document.write("</div>");
	/*Column 02 rhs starts*/
}
/****rhs equity home page ends**/
function rhs_career()
{
	//load validation file
	dhtmlLoadScript("/common/js/validation.js");
	
	document.write("<div class='column2'> ");
 document.write("<div class='title_login_3'>");
 document.write("<h2 class='facebook'>Connect with us on</h2>");
 document.write("<a href='http://www.facebook.com/FullertonSecurities/' target='_blank' title=''><img src='/common/images/facebook.gif'/></a>");
  document.write("<a href='http://www.linkedin.com/groups?mostPopular=&gid=2675025' target='_blank'><img src='/common/images/in-icon.gif'/></a>");
 document.write("<div class='clear'></div>");
	document.write("</div>");
	
	/*document.write("<div class='rhsbox sharing'>");
	document.write("<!-- AddThis Button BEGIN --><div class='addthis_toolbox addthis_default_style'><a href='http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4b4572cc4af1a7bf' class='addthis_button_compact'>Share</a><span class='addthis_separator'>|</span><a class='addthis_button_facebook'></a><a class='addthis_button_orkut'></a><a class='addthis_button_twitter'></a><a class='addthis_button_linkedin'></a></div><script type='text/javascript' src='http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4b4572cc4af1a7bf'></script><!-- AddThis Button END -->");
	document.write("</div>");*/
	document.write("<div class='rhsContent'>");
	document.write("<div class='divider'></div>");
	document.write("<div class='title_login'>");
	document.write("<h2><a href='https://trade.fullertonsecurities.co.in' target='_blank' title='Login to Equity Trading'>Login to Equity Trading</a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	document.write("<div class='title_login'>");
	document.write("<h2><a href='../demo/fullerton-online.html' target='_blank' title='View Online Trading Demo'>View Online Trading Demo</a></h2>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	document.write("<div class='boxonline_2'>");
	document.write("<a href='https://investments.fullertonsecurities.co.in' target='_blank'><img src='/common/images/fs_online_banner.gif'/></a>");
	document.write("</div>");
	 document.write("<div class='divider'></div>");
	document.write("<div class='contact'>");
/*	document.write("<div class='contact1 rhsbox'>");*/
	document.write("<div id='titRegister'>");
	document.write("<h2><a href='#' onclick=showrhs('detRegister'); return false;>Apply Now</a></h2>");
	document.write("</div>");
	document.write("<div id='detRegister'>");
	document.write("<div class='topcurve'></div>");
	document.write("<div id='showRegister'>");
	document.write("<h2><a href='#' onclick=hiderhs('detRegister'); return false;>Apply Now</a></h2>");
	document.write("<div id='frmquery1msgDiv' align='center'></div>");
	document.write("<form name='frmquery1' id='frmquery1' method='post' action='/careers/processquery_career.asp' class='frm1'>");
	document.write("<span class='note'>Fields marked with <font color='#ff6600'>*</font> are mandatory.</span>")
	document.write("<select name='title' id='title' class='select2' onChange='ShowOther(this.value)'>")
	document.write("<option value=''>Title</option>")
	document.write("<option value='Mr.'>Mr.</option>")
	document.write("<option value='Mrs.'>Mrs.</option>")
	document.write("<option value='Miss.'>Miss.</option>")
	document.write("<option value='Others'>Others</option>")	
	document.write("</select>")
	document.write("<span class='mandatory'>*</span>")
	document.write("<input name='other' id='other' type='text' value='Please specify' class='text textoth' style='display:none;' onBlur=\"if(this.value=='') this.value='Please specify'\" onFocus=\"if(this.value=='Please specify') this.value=''\" onkeypress='return chkTitle(event)'/>");
	document.write("<div class='clear'></div>")	
    document.write("<input name='txtfname' onBlur=\"if(this.value=='') this.value='First Name'\" onFocus=\"if(this.value=='First Name')this.value='';\" id='txtfname' maxlength='25' type='text' value='First Name' onkeypress='return charonly(event)' class='text text2' />");
    document.write("<input name='txtlname' onBlur=\"if(this.value=='') this.value='Last Name'\" onFocus=\"if(this.value=='Last Name')this.value='';\" id='txtlname' maxlength='25' type='text' value='Last Name' onkeypress='return charonly(event)' class='text text2' />");
	document.write("<span class='mandatory'>*</span>")
	document.write("<div class='clear'></div>")		
 document.write("<select name='selfunc' id='selfunc' onchange='RoleOnFunction(this.value)'>");
 document.write("<option value=''>Function</option>");
 document.write("<option value='HR'>HR</option>");
 document.write("<option value='IT'>IT</option>");
 document.write("<option value='Sales'>Sales</option>");
 document.write("<option value='Product'>Product</option>"); 
 document.write("<option value='Marketing'>Marketing</option>");  
 document.write("<option value='Risk Management'>Risk Management</option>");   
 document.write("<option value='Finance'>Finance</option>");  
 document.write("<option value='Operations'>Operations</option>");  
 document.write("<option value='Internal Audit'>Internal Audit</option>");  
 document.write("<option value='Call Centre'>Call Centre</option>");  
 document.write("<option value='Legal'>Legal</option>");  
 document.write("<option value='Compliance'>Compliance</option>");  
 document.write("</select>");
 document.write("<span class='mandatory'>*</span>")	
 document.write("<div class='clear'></div>")	
 document.write("<div id='divRole'>"); 		 
 document.write("<select name='selroles' id='selroles'>");
 document.write("<option value=''>Roles</option>");
 document.write("</select>");
 document.write("<span class='mandatory'>*</span>")
 document.write("</div>");  
  document.write("<div class='clear'></div>")
			document.write("<input type='text' name='exp' value='Total Years of Experience' class='text' maxlength=5  onkeypress='return numbersonly1(event)' onBlur=\"if(this.value=='') this.value='Total Years of Experience'\" onFocus=\"if(this.value=='Total Years of Experience')this.value='';\"/>");
			document.write("<span class='note'>Press cntrl to select multiple cities.</span>")						
//			document.write("<input type='text' name='prefloc' value='Preferred Location ' class='text' />");
            document.write("<select name='selprefloc' id='selprefloc' multiple size='5' class='select3'>");
              document.write("<option value=''>Select Preferred Location</option>");
			  document.write("<OPTION value='Gurgaon'>Gurgaon</OPTION>");
				document.write("<OPTION value='Jaipur'>Jaipur</OPTION>");
				document.write("<OPTION value='Chandigarh'>Chandigarh</OPTION>");
				document.write("<OPTION value='Ludhiana'>Ludhiana</OPTION>");
				document.write("<OPTION value='Kolkatta'>Kolkatta</OPTION>");
				document.write("<OPTION value='Mumbai'>Mumbai</OPTION>");
				document.write("<OPTION value='Ahmedabad'>Ahmedabad</OPTION>");
				document.write("<OPTION value='Bengaluru'>Bengaluru</OPTION>");
				document.write("<OPTION value='Hyderabad'>Hyderabad</OPTION>");
				document.write("<OPTION value='Chennai'>Chennai</OPTION>");
            document.write("</select>");			
			document.write("<input type='hidden' name='hdnselprefloc'/>");			
			document.write("<input type='text' name='quali' value='Highest Qualification' class='text' onkeypress='return charonly1(event)' onBlur=\"if(this.value=='') this.value='Highest Qualification'\" onFocus=\"if(this.value=='Highest Qualification')this.value='';\" maxlength=50/>");
			document.write("<div class='clear'></div>");
/*			document.write("<span>Year of Passing<br></span><select name='selmm' id='selmm' class='select1'><option value=''>MM</option>")
			var i
			for(i=1;i<=12;i++)
			{
				document.write("<option value="+i+">"+i+"</option>")
			}
			document.write("</select><select name='selyy' id='selyy' class='select1'><option value=''>YY</option>")
			var CurrentDate=new Date()
			var Year=CurrentDate.getFullYear()
			for(i=1950;i<=Year;i++)
			{
				document.write("<option value="+i+">"+i+"</option>")				
			}
			document.write("</select>");*/
			document.write("<input type='text' name='univ' value='University' class='text' onkeypress='return charonly1(event)' onBlur=\"if(this.value=='') this.value='University'\" onFocus=\"if(this.value=='University')this.value='';\" maxlength=50/>");
			document.write("<input type='text' name='org' value='Current organization' class='text' onkeypress='return charonly1(event)' onBlur=\"if(this.value=='') this.value='Current organization'\" onFocus=\"if(this.value=='Current organization')this.value='';\" maxlength=50/>");
			 			
            document.write("<input name='txtemail' onBlur=\"if(this.value=='') this.value='Email id'\" onFocus=\"if(this.value=='Email id')this.value='';\" id='txtemail' maxlength='60' type='text' value='Email id' class='text' />");
			document.write("<span class='mandatory'>*</span>")
			document.write("<div class='clear'></div>")	
			document.write("<span class='note'>Please provide atleast one contact number.</span>")			
			document.write("<input name='txtstd' onBlur=\"if(this.value=='') this.value='STD'\" onFocus=\"if(this.value=='STD')this.value='';\" onkeypress='return numbersonly(event)' id='txtstd' maxlength='5' type='text' value='STD' class='text text3' />");
			document.write("<input name='txtph' onBlur=\"if(this.value=='') this.value='Landline No.'\" onFocus=\"if(this.value=='Landline No.')this.value='';\" onkeypress='return numbersonly(event)' id='txtph' maxlength='10' type='text' value='Landline No.' class='text textlan' />");
			document.write("<input name='mobile' onBlur=\"if(this.value=='') this.value='Mobile'\" onFocus=\"if(this.value=='Mobile')this.value='';\" onkeypress='return numbersonly(event)' id='mobile' maxlength='10' type='text' value='Mobile' class='text' />");			
			 						
			document.write("<input type='text' name='address' value='Address' class='text' onBlur=\"if(this.value=='') this.value='Address'\" onFocus=\"if(this.value=='Address')this.value='';\" maxlength=150/>");
			document.write("<span class='mandatory'>*</span>")
			document.write("<div class='clear'></div>")	
			document.write("<input name='btnSubmit' type='button' value='Submit' class='button' onclick=\"chkQryFrm1('frmquery1')\" />");
          document.write("</form>");
	document.write("</div>");
		document.write("</div>");
		document.write("</div>");
	document.write("<div class='call_trade_2'>");
	document.write("<div class='trade_cal_22'>");
	document.write("<img src='/common/images/call_trade.gif' alt=''/>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	document.write("<div class='title_login_44'>");
	document.write("<a href='http://www.fullertonsecurities.co.in/sub_broker/index.asp' target='_blank'><img src='/common/images/partner-us.jpg' alt=''/></a>");
	document.write("</div>");
	document.write("</div>");
	document.write("<div class='call_trade'>");
	document.write("<p class='call'><a href='http://fullertonwt.acesphere.com/' target='_blank' title='Portfolio Tracker'>Portfolio Tracker</a></p>");
	document.write("<div class='divider'></div>");
	document.write("</div>");
	document.write("<div class='reachus'>");
	document.write("<h2>Reach Us</h2>");
	document.write("<p class='last'><span>Email:</span><a href='mailto:careers@fullertonsecurities.co.in'>careers@fullerton<br>securities.co.in</a></p>");
	document.write("</div>");
	document.write("</div>");
	document.write("</div>");
}


function rhs_nri()
{
	//load validation file
	dhtmlLoadScript("/common/js/validation.js");
	
	document.write("<div class='column2'> ");
 document.write("<div class='title_login_3'>");
 document.write("<h2 class='facebook'>Connect with us on</h2>");
 document.write("<a href='http://www.facebook.com/FullertonSecurities/' target='_blank' title=''><img src='/common/images/facebook.gif'/></a>");
  document.write("<a href='http://www.linkedin.com/groups?mostPopular=&gid=2675025' target='_blank'><img src='/common/images/in-icon.gif'/></a>");
 document.write("<div class='clear'></div>");
	document.write("</div>");
	/*document.write("<div class='rhsbox sharing'>");
	document.write("<!-- AddThis Button BEGIN --><div class='addthis_toolbox addthis_default_style'><a href='http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4b4572cc4af1a7bf' class='addthis_button_compact'>Share</a><span class='addthis_separator'>|</span><a class='addthis_button_facebook'></a><a class='addthis_button_orkut'></a><a class='addthis_button_twitter'></a><a class='addthis_button_linkedin'></a></div><script type='text/javascript' src='http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4b4572cc4af1a7bf'></script><!-- AddThis Button END -->");
	document.write("</div>");*/
	document.write("<div class='rhsContent'>");
/*	document.write("<div class='divider'></div>");
	document.write("<div class='boxonline_2'>");
	document.write("<a href='https://investments.fullertonsecurities.co.in' target='_blank'><img src='/common/images/fs_online_banner.gif'/></a>");
	document.write("</div>");*/
	document.write("<div class='call_trade_2'>");
	document.write("<div class='trade_cal_22'>");
	document.write("<img src='/common/images/call_trade.gif' alt=''/>");
	document.write("</div>");
	document.write("<div class='divider'></div>");
	document.write("</div>");
	document.write("<div class='contact_2'>");
	/*document.write("<div id='titRegister' class='title_login_4'>");
	document.write("<h2><a href='#' onclick=showrhs('detRegister'); return false;><img src='/common/images/get_in_touch.gif' alt=''/></a></h2>");
	document.write("</div>");*/
	document.write("<div class='title_login_4'>");
	document.write("<a href='http://www.fullertonsecurities.co.in/sub_broker/index.asp' target='_blank'><img src='/common/images/partner-us.jpg' alt=''/></a>");
	document.write("</div>");
	document.write("<div id='detRegister'>");
	document.write("<div class='topcurve'></div>");
	document.write("<div id='showRegister'>");
	document.write("<h2><a href='#' onclick=hiderhs('detRegister'); return false;>Get in touch with us NOW</a></h2>");
	document.write("<div id='frmnrimsgDiv' align='center'></div>");
	document.write("<form name='frmnri' id='frmnri' method='post' action='/nri/processquery_nri.asp' class='frm1'>");
            document.write("<input name='txtfname' onBlur=\"if(this.value=='') this.value='Enter First Name'\" onFocus=\"if(this.value=='Enter First Name')this.value='';\" id='txtfname' maxlength='25' type='text' value='Enter First Name' onkeypress='return charonly(event)' class='text' />");
			document.write("<input name='txtlname' onBlur=\"if(this.value=='') this.value='Enter Last Name'\" onFocus=\"if(this.value=='Enter Last Name')this.value='';\" id='txtlname' maxlength='25' type='text' value='Enter Last Name' onkeypress='return charonly(event)' class='text' />");
			document.write("<select name='selsex' id='selsex'>");
              document.write("<option value=''>Select Gender</option>");
			  document.write("<option value='Male'>Male</option>");
			  document.write("<option value='Female'>Female</option>");
            document.write("</select>");
            document.write("<input name='txtcountry' onBlur=\"if(this.value=='') this.value='Enter Country'\" onFocus=\"if(this.value=='Enter Country')this.value='';\" id='txtcountry' maxlength='25' type='text' value='Enter Country' onkeypress='return charonly(event)' class='text' />");			
			document.write("<div class='clear'></div>");
			document.write("<input name='txtisd' onBlur=\"if(this.value=='') this.value='ISD'\" onFocus=\"if(this.value=='ISD')this.value='';\" onkeypress='return numbersonly(event)' id='txtisd' maxlength='5' type='text' value='ISD' class='text text3' />");
			document.write("<input name='txtph' onBlur=\"if(this.value=='') this.value='Landline No.'\" onFocus=\"if(this.value=='Landline No.')this.value='';\" onkeypress='return numbersonly(event)' id='txtph' maxlength='9' type='text' value='Landline No.' class='text textlan' />");
			document.write("<input name='mobile' onBlur=\"if(this.value=='') this.value='Mobile'\" onFocus=\"if(this.value=='Mobile')this.value='';\" onkeypress='return numbersonly(event)' id='mobile' maxlength='14' type='text' value='Mobile' class='text' />");				
			 document.write("<input name='txtemail' onBlur=\"if(this.value=='') this.value='Email id'\" onFocus=\"if(this.value=='Email id')this.value='';\" id='txtemail' maxlength='50' type='text' value='Email id' class='text' />");
			 document.write("<select name='selprod' id='selprod'>");
              document.write("<option value=''>Select Product/Service</option>");
			    document.write("<option value='Financial Planning'>Financial Planning</option>");
				document.write("<option value='Equity'>Equity</option>");
				document.write("<option value='Demat'>Demat</option>");
				document.write("<option value='Mutual Funds'>Mutual Funds</option>");
				document.write("<option value='Life Insurance'>Life Insurance</option>");
				document.write("<option value='Health Insurance'>Health Insurance</option>");
				document.write("<option value='Alternate Investments'>Alternate Investments</option>");
            document.write("</select>");
            document.write("<input name='' type='button' value='Submit' class='button' onclick=\"chkQryfrmnri('frmnri')\" />");
          document.write("</form>");
	document.write("</div>");
		document.write("</div>");
		document.write("</div>");
	document.write("<div class='call_trade'>");
	document.write("<p class='call'><a href='http://fullertonwt.acesphere.com/' target='_blank' title='Portfolio Tracker'>Portfolio Tracker</a></p>");
	document.write("<div class='divider'></div>");
	document.write("</div>");
	document.write("<div class='reachus'>");
	document.write("<h2>Reach Us</h2>");
	document.write("<p><span>Call us:</span>39 400 800</span></p>");
	document.write("<p><span>Fax us:</span>+91 - 124- 3092424</p>");
	document.write("<p><span>Email:</span><a href='mailto:customercare@fullertonsecurities.co.in'>customercare@<br>fullertonsecurities.co.in</a></p>");
	document.write("</div>");
	document.write("</div>");
	document.write("<div class='clear'></div>");
	document.write("</div>");
}
/**for real estate added ****/
function rhs_restate()
{
//load validation file
				dhtmlLoadScript("/common/js/validation.js");
	/*Column 02 rhs starts*/
					document.write("<div class='column2'> ");
		/*Fullerton on starts here*/
				 document.write("<div class='title_login_3'>");
				 document.write("<h2 class='facebook'>Connect with us on</h2>");
				 document.write("<a href='http://www.facebook.com/FullertonSecurities/' target='_blank' title=''><img src='/common/images/facebook.gif'/></a>");
				  document.write("<a href='http://www.linkedin.com/groups?mostPopular=&gid=2675025' target='_blank'><img src='/common/images/in-icon.gif'/></a>");
				 document.write("<div class='clear'></div>");
				document.write("</div>");
				document.write("<div class='rhsContent'>");
				document.write("<div class='divider'></div>");
				/*Fullerton online box starts*/
				document.write("<div class='boxonline_2'>");
				document.write("<a href='JavaScript:void(0);' onclick='showfrm(\"Real Estate\")'><img src='/common/images/adv_your_prop.gif'/></a>");
				document.write("</div>");
				/*Fullerton online box ends*/
				document.write("<div class='divider'></div>");
				document.write("<div class='bgrt_rees'>");
				document.write("<h2>Get in touch with us for your property queries</h2>");
				document.write("<div id='frmquerymsgDiv' align='center'></div>");
				document.write("<form name='frmquery' id='frmquery' method='post' action='/processquery.asp' class='frm1'>");
           		 document.write("<input name='txtfname' onBlur=\"if(this.value=='') this.value='Enter First Name'\" onFocus=\"if(this.value=='Enter First Name')this.value='';\" id='txtfname' maxlength='25' type='text' value='Enter First Name' onkeypress='return charonly(event)' class='text' />");
				document.write("<input name='txtlname' onBlur=\"if(this.value=='') this.value='Enter Last Name'\" onFocus=\"if(this.value=='Enter Last Name')this.value='';\" id='txtlname' maxlength='25' type='text' value='Enter Last Name' onkeypress='return charonly(event)' class='text' />");
				document.write("<select name='selsex' id='selsex'>");
              	document.write("<option value=''>Select Gender</option>");
				document.write("<option value='Male'>Male</option>");
				document.write("<option value='Female'>Female</option>");
	            document.write("</select>");
	            document.write("<select name='selcity' id='selcity'>");
	            document.write("<option value=''>Select City</option>");
				document.write("<OPTION value='Ahmedabad'>Ahmedabad</OPTION>");
				document.write("<OPTION value='Ajmer'>Ajmer</OPTION>");
				document.write("<OPTION value='Akola'>Akola</OPTION>");
				document.write("<OPTION value='Ambala'>Ambala</OPTION>");
				document.write("<OPTION value='Amravati'>Amravati</OPTION>");
				document.write("<OPTION value='Amritsar'>Amritsar</OPTION>");
				document.write("<OPTION value='Ankleshwar'>Ankleshwar</OPTION>");
				document.write("<OPTION value='Bangalore'>Bangalore</OPTION>");
				document.write("<OPTION value='Bardoli'>Bardoli</OPTION>");
				document.write("<OPTION value='Baroda'>Baroda</OPTION>");
				document.write("<OPTION value='Bharuch'>Bharuch</OPTION>");
				document.write("<OPTION value='Bhatinda'>Bhatinda</OPTION>");
				document.write("<OPTION value='Bhilwara'>Bhilwara</OPTION>");
				document.write("<OPTION value='Chalakudy'>Chalakudy</OPTION>");
				document.write("<OPTION value='Chandigarh'>Chandigarh</OPTION>");
				document.write("<OPTION value='Chengannur'>Chengannur</OPTION>");
				document.write("<OPTION value='Chennai'>Chennai</OPTION>");
				document.write("<OPTION value='Cochin'>Cochin</OPTION>");
				document.write("<OPTION value='Coimbatore'>Coimbatore</OPTION>");
				document.write("<OPTION value='Curchorem'>Curchorem</OPTION>");
				document.write("<OPTION value='Delhi'>Delhi</OPTION>");
				document.write("<OPTION value='Guntur'>Guntur</OPTION>");
				document.write("<OPTION value='Gurgaon'>Gurgaon</OPTION>");
				document.write("<OPTION value='Himatnagar'>Himatnagar</OPTION>");
				document.write("<OPTION value='Hoshiarpur'>Hoshiarpur</OPTION>");
				document.write("<OPTION value='Hyderabad'>Hyderabad</OPTION>");
				document.write("<OPTION value='Indore'>Indore</OPTION>");
				document.write("<OPTION value='Jaipur'>Jaipur</OPTION>");
				document.write("<OPTION value='Jampshedpur'>Jampshedpur</OPTION>");
				document.write("<OPTION value='Junagadh'>Junagadh</OPTION>");
				document.write("<OPTION value='Kadi'>Kadi</OPTION>");
				document.write("<OPTION value='Kalyan'>Kalyan</OPTION>");
				document.write("<OPTION value='Kakinada'>Kakinada</OPTION>");
				document.write("<OPTION value='Kannur'>Kannur</OPTION>");
				document.write("<OPTION value='Kanpur'>Kanpur</OPTION>");
				document.write("<OPTION value='Karad'>Karad</OPTION>");
				document.write("<OPTION value='Karim Nagar'>Karim Nagar</OPTION>");
				document.write("<OPTION value='Karnal'>Karnal</OPTION>");
				document.write("<OPTION value='Kolkatta'>Kolkatta</OPTION>");
				document.write("<OPTION value='Kollam'>Kollam</OPTION>");
				document.write("<OPTION value='Kottayam'>Kottayam</OPTION>");
				document.write("<OPTION value='Kurukshetra'>Kurukshetra</OPTION>");
				document.write("<OPTION value='Lucknow'>Lucknow</OPTION>");
				document.write("<OPTION value='Ludhiana'>Ludhiana</OPTION>");
				document.write("<OPTION value='Mandi Govindgarh'>Mandi Govindgarh</OPTION>");
				document.write("<OPTION value='Mehsana'>Mehsana</OPTION>");
				document.write("<OPTION value='Moga'>Moga</OPTION>");
				document.write("<OPTION value='Mumbai'>Mumbai</OPTION>");
				document.write("<OPTION value='Nadiad'>Nadiad</OPTION>");
				document.write("<OPTION value='Nagpur'>Nagpur</OPTION>");
				document.write("<OPTION value='Nasik'>Nasik</OPTION>");
				document.write("<OPTION value='Nawanshahar'>Nawanshahar</OPTION>");
				document.write("<OPTION value='Nellore'>Nellore</OPTION>");
				document.write("<OPTION value='Palakkad'>Palakkad</OPTION>");
				document.write("<OPTION value='Panjim'>Panjim</OPTION>");
				document.write("<OPTION value='Patiala'>Patiala</OPTION>");
				document.write("<OPTION value='Pondicherry'>Pondicherry</OPTION>");
				document.write("<OPTION value='Pune'>Pune</OPTION>");
				document.write("<OPTION value='Rajkot'>Rajkot</OPTION>");
				document.write("<OPTION value='Ratnagiri'>Ratnagiri</OPTION>");
				document.write("<OPTION value='Sangli'>Sangli</OPTION>");
				document.write("<OPTION value='Simla'>Simla</OPTION>");
				document.write("<OPTION value='Surat'>Surat</OPTION>");
				document.write("<OPTION value='Thalassery'>Thalassery</OPTION>");
				document.write("<OPTION value='Tiruppur'>Tiruppur</OPTION>");
				document.write("<OPTION value='Trivandrum'>Trivandrum</OPTION>");
				document.write("<OPTION value='Unjha'>Unjha</OPTION>");
				document.write("<OPTION value='Valsad'>Valsad</OPTION>");
				document.write("<OPTION value='Vishakapatnam'>Vishakapatnam</OPTION>");
				document.write("<OPTION value='Warangal'>Warangal</OPTION>");
            document.write("</select>");
		
			document.write("<input name='txtstd' onBlur=\"if(this.value=='') this.value='STD'\" onFocus=\"if(this.value=='STD')this.value='';\" onkeypress='return numbersonly(event)' id='txtstd' maxlength='5' type='text' value='STD' class='text text3' />");
			document.write("<input name='txtph' onBlur=\"if(this.value=='') this.value='Landline No.'\" onFocus=\"if(this.value=='Landline No.')this.value='';\" onkeypress='return numbersonly(event)' id='txtph' maxlength='8' type='text' value='Landline No.' class='text textlan' />");
			document.write("<input name='mobile' onBlur=\"if(this.value=='') this.value='Mobile'\" onFocus=\"if(this.value=='Mobile')this.value='';\" onkeypress='return numbersonly(event)' id='mobile' maxlength='11' type='text' value='Mobile' class='text' />");			
//	Above Added on 29-06-2009			

			 document.write("<input name='txtemail' onBlur=\"if(this.value=='') this.value='Email id'\" onFocus=\"if(this.value=='Email id')this.value='';\" id='txtemail' maxlength='60' type='text' value='Email id' class='text' />");
			 document.write("<input type='hidden' name='selprod' id='selprod' value='Real Estate' />");
	            document.write("<input name='' type='button' value='Submit' class='button' onclick=\"chkQryFrm('frmquery')\" />");
		        document.write("</form>");
				document.write("</div>");
				document.write("<div class='clear'></div>");
				document.write("<div class='divider'></div>");
				document.write("<div class='reachus'>");
				document.write("<h2>Reach Us</h2>");
				document.write("<p><span>Call us:</span>39 400 800</p>");
				document.write("<p><span>Fax us:</span>+91 - 124- 3092424</p>");
				document.write("<p><span>Email:</span><a href='mailto:customercare@fullertonsecurities.co.in'>customercare@<br>fullertonsecurities.co.in</a></p>");
				document.write("</div>");
				document.write("<div class='clear'></div>");
				document.write("</div>");
				document.write("</div>");
}

/**for real estate END *****/

function RoleOnFunction(func)
{
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url="/careers/getRoleOnFunction.asp";
	url=url+"?func="+func;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=function() {stateChanged1()};
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged1() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("divRole").innerHTML=xmlHttp.responseText;
	}
	else
	{
		document.getElementById("divRole").innerHTML="<b>Please wait.....</b>";
	}
}

function chkQryFrm1(frmnm)
{
	var f = eval("document."+frmnm);
	
	if(f.title.value=="")
	{
		alert("Please select title.")
		f.title.focus()
		return false
	}
	if(f.title.value=="Others")
	{
		if(f.other.value=="Please specify" || f.other.value=='')
		{
			alert("Please specify other.")
			f.other.focus()
			f.other.select()
			return false
		}
	}
	if(f.title.value!="Others" && f.title.value!="")
	{
		if(f.other.value!="" && f.other.value!="Please specify")
		{
			alert("Either select title or specify other.")
			f.title.focus()
			return false
		}
	}

	if(trim(f.txtfname.value)=='' || trim(f.txtfname.value)=='First Name')
		{
			alert("Please provide your first name.");
			f.txtfname.focus();
			f.txtfname.select();
			return false;
		}
	if(f.txtfname.value.charAt(0)==' ')
		{
			alert("First Name cannot start with spaces.");
			f.txtfname.focus();
			f.txtfname.select();
			return false;			
		}
	if(chkinput((f.txtfname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in first name. (Only alphabets allowed)");
			f.txtfname.focus();
			f.txtfname.select();
			return false;
		}
	
	if(trim(f.txtlname.value)=='' || trim(f.txtlname.value)=='Last Name')
		{
			alert("Please provide your last name.");
			f.txtlname.focus();
			f.txtlname.select();
			return false;
		}
	if(f.txtlname.value.charAt(0)==' ')
		{
			alert("Last Name cannot start with spaces.");
			f.txtlname.focus();
			f.txtlname.select();
			return false;			
		}
	if(chkinput((f.txtlname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in last name. (Only alphabets allowed)");
			f.txtlname.focus();
			f.txtlname.select();
			return false;
		}
	
	if(f.selfunc.value=="")
	{
		alert("Please select function.")
		f.selfunc.focus()
		return false
	}
	
	if(f.selroles.value=="")
	{
		alert("Please select roles.")
		f.selroles.focus()
		return false
	}

/*	if(trim(f.exp.value)=='' || trim(f.exp.value)=='Total Years of Experience')
		{
			alert("Please provide your total years of experience.");
			f.exp.focus();
			f.exp.select();
			return false;
		} */
	if(f.exp.value.charAt(0)==' ')
		{
			alert("Total years of experience cannot start with spaces.");
			f.exp.focus();
			f.exp.select();
			return false;			
		}
	if(chkinput((f.exp.value).toLowerCase(), VALIDATE_NUM+".")==false && f.exp.value!="Total Years of Experience")
		{
			alert("Please provide valid details in total years of experience. (Only Numbers allowed)");
			f.exp.focus();
			f.exp.select();
			return false;
		}

	var cnt
	cnt=0
	f.hdnselprefloc.value=""
	for(var i=1;i<f.selprefloc.options.length;i++)
	{
		if(f.selprefloc.options[i].selected==true)
		{
			if(f.hdnselprefloc.value=="")
			{
				f.hdnselprefloc.value = f.selprefloc.options[i].value;
			}
			else
			{
				f.hdnselprefloc.value = f.hdnselprefloc.value + "," + f.selprefloc.options[i].value;
			}
			cnt=cnt+1
		}
	}
//	alert(f.hdnselprefloc.value)
	
	if(cnt>3)
	{
		alert("Please select maximum three prefered locations.")
		return false;
	}

/*	if(cnt==0)
	{
		alert("Please select prefered location.")
		return false;
	}*/

/*	if(trim(f.quali.value)=='' || trim(f.quali.value)=='Highest Qualification')
		{
			alert("Please provide your highest qualification.");
			f.quali.focus();
			f.quali.select();
			return false;
		}*/
	if(f.quali.value.charAt(0)==' ')
		{
			alert("Highest qualification cannot start with spaces.");
			f.quali.focus();
			f.quali.select();
			return false;			
		}
	if(chkinput((f.quali.value).toLowerCase(), VALIDATE_ALPHA+".() ")==false)
		{
			alert("Please provide valid details in highest qualification.");
			f.quali.focus();
			f.quali.select();
			return false;
		}

/*	if(f.selmm.value=="")
	{
		alert("Please select month of passong.")
		f.selmm.focus()
		return false
	}

	if(f.selyy.value=="")
	{
		alert("Please select year of passing.")
		f.selyy.focus()
		return false
	}*/

/*	if(trim(f.univ.value)=='' || trim(f.univ.value)=='University')
		{
			alert("Please provide your University.");
			f.univ.focus();
			f.univ.select();
			return false;
		}*/
	if(f.univ.value.charAt(0)==' ')
		{
			alert("University name cannot start with spaces.");
			f.univ.focus();
			f.univ.select();
			return false;			
		}
	if(chkinput((f.univ.value).toLowerCase(), VALIDATE_ALPHA+".() ")==false)
		{
			alert("Please provide valid details in University name.");
			f.univ.focus();
			f.univ.select();
			return false;
		}

/*	if(trim(f.org.value)=='' || trim(f.org.value)=='Current organization')
		{
			alert("Please provide your current organization.");
			f.org.focus();
			f.org.select();
			return false;
		}*/
	if(f.org.value.charAt(0)==' ')
		{
			alert("Current organization's name cannot start with spaces.");
			f.org.focus();
			f.org.select();
			return false;			
		}
	if(chkinput((f.org.value).toLowerCase(), VALIDATE_ALPHA+".() ")==false)
		{
			alert("Please provide valid details in current organization's name.");
			f.org.focus();
			f.org.select();
			return false;
		}

	if(trim(f.txtemail.value)=='' || trim(f.txtemail.value)=='Email id')
		{
			alert("Please provide your email id.");
			f.txtemail.focus();
			f.txtemail.select();
			return false;
		}
	if(!emailValidate(f.txtemail.value,''))
		{
			alert("Please enter a valid email id.")
			f.txtemail.focus();
			f.txtemail.select();
			return false;
		}


	if(((trim(f.txtph.value)=='' || trim(f.txtph.value)=='Landline No.') && (trim(f.txtstd.value)=="" || trim(f.txtstd.value)=="STD")) && (trim(f.mobile.value)=="" || trim(f.mobile.value)=="Mobile"))
	{
		alert("Please provide any one contact number.")
		f.txtstd.focus()
		f.txtstd.select()
		return false
	}
	
	if((trim(f.txtph.value)=='' || trim(f.txtph.value)=='Landline No.') && (trim(f.txtstd.value)!="" && trim(f.txtstd.value)!="STD"))
	{
		alert("Please provide your landline number.")
		f.txtph.focus()
		f.txtph.select()
		return false
	}
	
	if((trim(f.txtstd.value)=='' || trim(f.txtstd.value)=='STD') && (trim(f.txtph.value)!="" && trim(f.txtph.value)!="Landline No."))
	{
		alert("Please provide your STD code.")
		f.txtstd.focus()
		f.txtstd.select()
		return false
	}
	
	if((trim(f.txtstd.value)!='' && trim(f.txtstd.value)!='STD'))
	{
		if(isNaN(f.txtstd.value) || parseInt(f.txtstd.value,10) == 0 || f.txtstd.value.length<2 || f.txtstd.value.length>5)
		{
			alert("Please provide a valid STD code.");
			f.txtstd.focus();
			f.txtstd.select();
			return false;
		}
	}

	if((trim(f.txtph.value)!='' && trim(f.txtph.value)!='Landline No.'))
	{
		if(isNaN(f.txtph.value) || parseInt(f.txtph.value,10) == 0 || f.txtph.value.length<7 || f.txtph.value.length>10)
		{
			alert("Please provide a valid landline number.");
			f.txtph.focus();
			f.txtph.select();
			return false;
		}	
	}

	if((trim(f.mobile.value)!='' && trim(f.mobile.value)!='Mobile'))
	{
		if(isNaN(f.mobile.value) || parseInt(f.mobile.value,10) == 0 || f.mobile.value.length!=10)
		{
			alert("Please provide a valid mobile number.");
			f.mobile.focus();
			f.mobile.select();
			return false;
		}
	}

	if(trim(f.address.value)=='' || trim(f.address.value)=='Address')
		{
			alert("Please provide your Address.");
			f.address.focus();
			f.address.select();
			return false;
		}
	if(f.address.value.charAt(0)==' ')
		{
			alert("Address cannot start with spaces.");
			f.address.focus();
			f.address.select();
			return false;			
		}
	if(chkinput((f.address.value).toLowerCase(), VALIDATE_ADDR)==false)
		{
			alert("Please provide valid details in address.");
			f.address.focus();
			f.address.select();
			return false;
		}
	
	var querystr="title="+f.title.value+"&other="+f.other.value+"&txtfname="+f.txtfname.value+"&txtlname="+f.txtlname.value+"&selfunc="+f.selfunc.value+"&selroles="+f.selroles.value+"&exp="+f.exp.value+"&hdnselprefloc="+f.hdnselprefloc.value+"&quali="+f.quali.value+"&univ="+f.univ.value+"&org="+f.org.value+"&txtemail="+f.txtemail.value+"&txtstd="+f.txtstd.value+"&txtph="+f.txtph.value+"&mobile="+f.mobile.value+"&address="+f.address.value+"";
	
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url="/careers/processquery_career.asp";
	url=url+"?"+querystr;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=function() {stateChanged2(frmnm)};
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	//document.frmquery.submit();	
		
}

function stateChanged2(frmnm) 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById(frmnm+"msgDiv").innerHTML=xmlHttp.responseText;
		document.getElementById(frmnm).style.display='none';
	}
	else
	{document.getElementById(frmnm+"msgDiv").innerHTML="<b>Please wait.....</b>";}
}

function ShowOther(title)
{
	if(title=='Others')
	{
		document.frmquery1.other.style.display='block';
	}
	else
	{
		document.frmquery1.other.style.display='none';	
		document.frmquery1.other.value="Please specify";	
	}
}

function chkTitle(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	//alert(unicode)
	if (unicode!=8)
		{
			if ((unicode!=32 && (unicode<65 || (unicode>90 && (unicode<97 || unicode>122)))) && unicode!=15 && unicode!=14 && unicode!=9 && unicode!=46 )
			return false
		}
}

function charonly1(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	//alert(unicode)
	if (unicode!=8)
		{
			if ((unicode!=32 && (unicode<65 || (unicode>90 && (unicode<97 || unicode>122)))) && unicode!=39 && unicode!=45 && unicode!=13 && unicode!=15 &&   unicode!=39 && unicode!=14 && unicode!=9  && unicode!=46  && unicode!=40 && unicode!=41 )
			return false
		}
}

function numbersonly1(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	if (unicode!=8)
		{
			if ((unicode<48||unicode>57)&& unicode!=9 && unicode!=13 && unicode!=15 && unicode!=14  && unicode!=46)
			return false
		}
}

function chkQryfrmnri(frmnm)
{
	var f = eval("document."+frmnm);
	
	if(trim(f.txtfname.value)=='' || trim(f.txtfname.value)=='Enter First Name')
		{
			alert("Please provide your first name.");
			f.txtfname.focus();
			f.txtfname.select();
			return false;
		}
	if(f.txtfname.value.charAt(0)==' ')
		{
			alert("First name cannot start with spaces.");
			f.txtfname.focus();
			f.txtfname.select();
			return false;			
		}
	if(chkinput((f.txtfname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in first name. (Only alphabets allowed)");
			f.txtfname.focus();
			f.txtfname.select();
			return false;
		}
	
	if(trim(f.txtlname.value)=='' || trim(f.txtlname.value)=='Enter Last Name')
		{
			alert("Please provide your last name.");
			f.txtlname.focus();
			f.txtlname.select();
			return false;
		} 
	if(f.txtlname.value.charAt(0)==' ')
		{
			alert("Last name cannot start with spaces.");
			f.txtlname.focus();
			f.txtlname.select();
			return false;			
		}
	if(chkinput((f.txtlname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in last name. (Only alphabets allowed)");
			f.txtlname.focus();
			f.txtlname.select();
			return false;
		}

	if(trim(f.selsex.value)=='')
		{
			alert("Please select your gender.");
			f.selsex.focus();
			return false;
		}

	if(trim(f.txtcountry.value)=='' || trim(f.txtcountry.value)=='Enter Country')
		{
			alert("Please provide your country name.");
			f.txtcountry.focus();
			f.txtcountry.select();
			return false;
		}
	if(f.txtcountry.value.charAt(0)==' ')
		{
			alert("Country name cannot start with spaces.");
			f.txtcountry.focus();
			f.txtcountry.select();
			return false;			
		}
	if(chkinput((f.txtcountry.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in country name. (Only alphabets allowed)");
			f.txtcountry.focus();
			f.txtcountry.select();
			return false;
		}
	
	if(((trim(f.txtph.value)=='' || trim(f.txtph.value)=='Landline No.') && (trim(f.txtisd.value)=="" || trim(f.txtisd.value)=="ISD")) && (trim(f.mobile.value)=="" || trim(f.mobile.value)=="Mobile"))
	{
		alert("Please provide any one contact number.")
		f.txtisd.focus()
		f.txtisd.select()
		return false
	}
	
	if((trim(f.txtph.value)=='' || trim(f.txtph.value)=='Landline No.') && (trim(f.txtisd.value)!="" && trim(f.txtisd.value)!="ISD"))
	{
		alert("Please provide your landline number.")
		f.txtph.focus()
		f.txtph.select()
		return false
	}
	
	if((trim(f.txtisd.value)=='' || trim(f.txtisd.value)=='ISD') && (trim(f.txtph.value)!="" && trim(f.txtph.value)!="Landline No."))
	{
		alert("Please provide your ISD code.")
		f.txtisd.focus()
		f.txtisd.select()
		return false
	}
	
	if((trim(f.txtisd.value)!='' && trim(f.txtisd.value)!='ISD'))
	{
		if(isNaN(f.txtisd.value) || parseInt(f.txtisd.value,10) == 0 || f.txtisd.value.length<2 || f.txtisd.value.length>5)
		{
			alert("Please provide a valid ISD code.");
			f.txtisd.focus();
			f.txtisd.select();
			return false;
		}
	}

	if((trim(f.txtph.value)!='' && trim(f.txtph.value)!='Landline No.'))
	{
		if(isNaN(f.txtph.value) || parseInt(f.txtph.value,10) == 0 || f.txtph.value.length<5 || f.txtph.value.length>9)
		{
			alert("Please provide a valid landline number.");
			f.txtph.focus();
			f.txtph.select();
			return false;
		}	
	}

	if((trim(f.mobile.value)!='' && trim(f.mobile.value)!='Mobile'))
	{
		if(isNaN(f.mobile.value) || parseInt(f.mobile.value,10) == 0 || f.mobile.value.length<10)
		{
			alert("Please provide a valid mobile number.");
			f.mobile.focus();
			f.mobile.select();
			return false;
		}
	}

	if(trim(f.txtemail.value)=='' || trim(f.txtemail.value)=='Email id')
		{
			alert("Please provide your email id.");
			f.txtemail.focus();
			f.txtemail.select();
			return false;
		}
	if(!emailValidate(f.txtemail.value,''))
		{
			alert("Please enter a valid email id.")
			f.txtemail.focus();
			f.txtemail.select();
			return false;
		}

	if(trim(f.selprod.value)=='')
		{
			alert("Please select product/service.");
			f.selprod.focus();
			return false;
		}
		
	
	var querystr="txtfname="+f.txtfname.value+"&txtlname="+f.txtlname.value+"&selsex="+f.selsex.value+"&txtcountry="+f.txtcountry.value+"&txtisd="+f.txtisd.value+"&txtph="+f.txtph.value+"&mobile="+f.mobile.value+"&txtemail="+f.txtemail.value+"&selprod="+f.selprod.value;
	
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url="/nri/processquery_nri.asp";
	url=url+"?"+querystr;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=function() {stateChanged_nri(frmnm,f.selprod.value)};
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
		
}

function stateChanged_nri(frmnm,selprod) 
{ 
//	alert(frmnm)
//	alert(selprod)
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById(frmnm+"msgDiv").innerHTML=xmlHttp.responseText;
		document.getElementById(frmnm).style.display='none';
		
		//alert(frmnm);
		//alert(selprod);
		if((frmnm=='ipofrmquery')&&(selprod=='SCB IPO'))
		{
			var t=setTimeout("window.open ('http://www.fullertonsecurities.co.in/equity/markets/rsch_reports/1_0_25052010Standard%20Chartered%20IDR%20issue%20Note%20-%2025%20May%202010.pdf','Fullerton_Securities_SCB','location=1,status=1,scrollbars=1,width=700,height=500')",5000);				//Updated on 25th May 2010
		}
		else if((frmnm=='ipofrmquery')&&(selprod=='Coal India IPO'))
		{
			var t=setTimeout("window.open ('http://www.fullertonsecurities.co.in/equity/markets/rsch_reports/1_0_14102010Coal%20India_IPO%20Note.pdf','Coal_India_IPO','location=1,status=1,scrollbars=1,width=700,height=500')",5000);		//Updated on 15th October 2010
		}
		else if((frmnm=='ipofrmquery')&&(selprod=='Power Grid Corp'))
		{
			var t=setTimeout("window.open ('http://www.fullertonsecurities.co.in/equity/markets/market_currentissue.aspx','Power_Grid_Corp','location=1,status=1,scrollbars=1,width=700,height=500')",5000);		//Updated on 09th Nov 2010
		}
		else if((frmnm=='ipofrmquery')&&(selprod=='Manganese Ore IPO'))
		{
			var t=setTimeout("window.open ('http://www.fullertonsecurities.co.in/equity/markets/rsch_reports/5_0_25112010IPO%20Note_Manganese%20Ore%20India%20Ltd.pdf','Manganese_Ore_IPO','location=1,status=1,scrollbars=1,width=700,height=500')",5000);		//Updated on 25th Nov 2010
		}
		else if((frmnm=='ipofrmquery')&&(selprod=='Shipping Corp IPO'))
		{
			var t=setTimeout("window.open ('http://www.fullertonsecurities.co.in/equity/markets/rsch_reports/1_0_30112010Shipping%20Corporation%20of%20India_FPO%20Note.pdf','Shipping_Corporation_of_India_IPO','location=1,status=1,scrollbars=1,width=700,height=500')",5000);		//Updated on 30th Nov 2010
		}
		else if((frmnm=='ipofrmquery')&&(selprod=='Punjab Sind Bank'))
		{
//			alert('Hi')
//			alert(frmnm)
//			alert(selprod)
			var t=setTimeout("window.open ('http://www.fullertonsecurities.co.in/equity/markets/rsch_reports/5_0_13122010PSB%20_IPO%20Note%20%283%29.pdf','Punjab_Sind_Bank','location=1,status=1,scrollbars=1,width=700,height=500')",5000);		//Updated on 30th Nov 2010
			//window.open('http://www.fullertonsecurities.co.in/equity/markets/rsch_reports/5_0_13122010PSB%20_IPO%20Note%20%283%29.pdf','Punjab_Sind_Bank','location=1,status=1,scrollbars=1,width=700,height=500');		//Updated on 30th Nov 2010
		}
	}
	else
	{document.getElementById(frmnm+"msgDiv").innerHTML="<b>Please wait.....</b>";}
}
/////////////////////////////
function chkfrmipo(frmnm)
{
	var f = eval("document."+frmnm);

	if(trim(f.txtfname.value)=='' || trim(f.txtfname.value)=='Enter First Name')
		{
			alert("Please provide your first name.");
			f.txtfname.focus();
			
			return false;
		}
	if(f.txtfname.value.charAt(0)==' ')
		{
			alert("First name cannot start with spaces.");
			f.txtfname.focus();
			
			return false;			
		}
	if(chkinput((f.txtfname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in first name. (Only alphabets allowed)");
			f.txtfname.focus();
			
			return false;
		}
	
	
	if(trim(f.txtlname.value)=='' || trim(f.txtlname.value)=='Enter Last Name')
		{
			alert("Please provide your last name.");
			f.txtlname.focus();

			return false;
		} 
	if(f.txtlname.value.charAt(0)==' ')
		{
			alert("Last name cannot start with spaces.");
			f.txtlname.focus();

			return false;			
		}
	if(chkinput((f.txtlname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in last name. (Only alphabets allowed)");
			f.txtlname.focus();

			return false;
		}
	if(trim(f.selsex.value)=='')
		{
			alert("Please select your gender.");
			f.selsex.focus();
			return false;
		}
	if(trim(f.selcity.value)=='')
		{
			alert("Please select your city.");
			f.selcity.focus();
			return false;
		}

//	Below put in comment on 29-06-2009		
/*	if(trim(f.txtph.value)=='' || trim(f.txtph.value)=='Contact Number')
		{
			alert("Please provide your contact number.");
			f.txtph.focus();
			f.txtph.select();
			return false;
		}
	if(isNaN(f.txtph.value) || parseInt(f.txtph.value,10) == 0 || f.txtph.value.length<5)
		{
			alert("Please provide a valid contact number.");
			f.txtph.focus();
			f.txtph.select();
			return false;
		}*/

//	Below Added on 29-06-2009
	if(((trim(f.txtph.value)=='' || trim(f.txtph.value)=='Landline No.') && (trim(f.txtstd.value)=="" || trim(f.txtstd.value)=="STD")) && (trim(f.mobile.value)=="" || trim(f.mobile.value)=="Mobile"))
	{
		alert("Please provide any one contact number.")
		f.txtstd.focus()

		return false
	}
	
	if((trim(f.txtph.value)=='' || trim(f.txtph.value)=='Landline No.') && (trim(f.txtstd.value)!="" && trim(f.txtstd.value)!="STD"))
	{
		alert("Please provide your landline number.")
		f.txtph.focus()
		
		return false
	}
	
	if((trim(f.txtstd.value)=='' || trim(f.txtstd.value)=='STD') && (trim(f.txtph.value)!="" && trim(f.txtph.value)!="Landline No."))
	{
		alert("Please provide your STD code.")
		f.txtstd.focus()
		
		return false
	}
	
	if((trim(f.txtstd.value)!='' && trim(f.txtstd.value)!='STD'))
	{
		if(isNaN(f.txtstd.value) || parseInt(f.txtstd.value,10) == 0 || f.txtstd.value.length<2 || f.txtstd.value.length>5)
		{
			alert("Please provide a valid STD code.");
			f.txtstd.focus();
			
			return false;
		}
	}

	if((trim(f.txtph.value)!='' && trim(f.txtph.value)!='Landline No.'))
	{
		if(isNaN(f.txtph.value) || parseInt(f.txtph.value,10) == 0 || f.txtph.value.length<6 || f.txtph.value.length>8)
		{
			alert("Please provide a valid landline number.");
			f.txtph.focus();
			return false;
		}	
	}
	if(((trim(f.txtstd.value)!='' && trim(f.txtstd.value)!='STD')) && ((trim(f.txtph.value)!='' && trim(f.txtph.value)!='Landline No.')))
	{
		var LandlineNo_tmp=f.txtstd.value+f.txtph.value
		if(LandlineNo_tmp.charAt(0)==0 && LandlineNo_tmp.length!=11)
		{
//			alert("Please provide a valid landline number.");
			alert("Please enter a valid 10 digit number (excluding zero) or 11 digit number (including zero).");
			f.txtstd.focus();
			
			return false;
		}
		if(LandlineNo_tmp.charAt(0)!=0 && LandlineNo_tmp.length!=10)
		{
//			alert("Please provide a valid landline number.");
			alert("Please enter a valid 10 digit number (excluding zero) or 11 digit number (including zero).");			
			f.txtstd.focus();
			
			return false;
		}
	}

	if((trim(f.mobile.value)!='' && trim(f.mobile.value)!='Mobile'))
	{
//		if(isNaN(f.mobile.value) || parseInt(f.mobile.value,10) == 0 || f.mobile.value.length!=10 || f.mobile.value.charAt(0)!=9)
		if(isNaN(f.mobile.value) || parseInt(f.mobile.value,10) == 0 || (f.mobile.value.charAt(0)!=9 && f.mobile.value.charAt(0)!=0))
		{
			alert("Please provide a valid mobile number.");
			f.mobile.focus();
			
			return false;
		}
		if(f.mobile.value.charAt(0)==9 && f.mobile.value.length!=10)
		{
//			alert("Please provide a valid mobile number.");
			alert("Please enter a valid 10 digit number (excluding zero) or 11 digit number (including zero).");
			f.mobile.focus();
			
			return false;
		}
		if(f.mobile.value.charAt(0)==0 && f.mobile.value.length!=11)
		{
//			alert("Please provide a valid mobile number.");
			alert("Please enter a valid 10 digit number (excluding zero) or 11 digit number (including zero).");
			f.mobile.focus();
			
			return false;
		}
	}
//	Above Added on 29-06-2009	

	if(trim(f.txtemail.value)=='' || trim(f.txtemail.value)=='Email id')
		{
			alert("Please provide your email id.");
			f.txtemail.focus();
			
			return false;
		}
	if(!emailValidate(f.txtemail.value,''))
		{
			alert("Please enter a valid email id.")
			f.txtemail.focus();
			
			return false;
		}
	if(trim(f.selprod.value)=='')
		{
			alert("Please select product/service.");
			f.selprod.focus();
			return false;
		}
		
	var querystr="txtfname="+f.txtfname.value+"&txtlname="+f.txtlname.value+"&selsex="+f.selsex.value+"&selcity="+f.selcity.value+"&txtstd="+f.txtstd.value+"&txtph="+f.txtph.value+"&mobile="+f.mobile.value+"&txtemail="+f.txtemail.value+"&selprod="+f.selprod.value;
	
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url="/processquery.asp";
	url=url+"?"+querystr;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=function() {stateChanged_nri(frmnm,f.selprod.value)};
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	//document.frmquery.submit();	
		
}
function chkAdvCardFrm(frmnm)
{
	var f = eval("document."+frmnm);
	
	if(f.salutation.value=="")
	{
		alert("Please select title.")
		f.salutation.focus()
		return false
	}

	if(f.salutation.value=="")
	{
		alert("Please select title.")
		f.salutation.focus()
		return false
	}
	
	if(trim(f.fname.value)=='')
		{
			alert("Please provide your first name.");
			f.fname.focus();
			f.fname.select();
			return false;
		}
	if(f.fname.value.charAt(0)==' ')
		{
			alert("First Name cannot start with spaces.");
			f.fname.focus();
			f.fname.select();
			return false;			
		}
	if(chkinput((f.fname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in first name. (Only alphabets allowed)");
			f.fname.focus();
			f.fname.select();
			return false;
		}
	
	if(trim(f.lname.value)=='')
		{
			alert("Please provide your last name.");
			f.lname.focus();
			f.lname.select();
			return false;
		}
	if(f.lname.value.charAt(0)==' ')
		{
			alert("Last Name cannot start with spaces.");
			f.lname.focus();
			f.lname.select();
			return false;			
		}
	if(chkinput((f.lname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in last name. (Only alphabets allowed)");
			f.lname.focus();
			f.lname.select();
			return false;
		}
	
	if(f.gender[0].checked==false && f.gender[1].checked==false)
	{
		alert("Please select gender.")
		f.gender[0].focus()
		return false		
	}
	var gender
	if(f.gender[0].checked)
	{
		gender="Male";
	}
	else if(f.gender[1].checked)
	{
		gender="Female";
	}
	else
	{
		gender="";
	}
	
	if(trim(f.selcity.value)=='')
		{
			alert("Please select your city.");
			f.selcity.focus();
			return false;
		}

	if(((trim(f.landno.value)=='' || trim(f.landno.value)=='Landline No') && (trim(f.landstdcode.value)=="" || trim(f.landstdcode.value)=="STD") && (trim(f.landisdcode.value)=="" || trim(f.landisdcode.value)=="ISD")) && ((trim(f.mobno.value)=="" || trim(f.mobno.value)=="Mobile") && (trim(f.isdmobno.value)=="" || trim(f.isdmobno.value)=="ISD")))
	{
		alert("Please provide any one contact number.")
		f.isdmobno.focus()
		f.isdmobno.select()
		return false
	}
	
	if((trim(f.isdmobno.value)=='' || trim(f.isdmobno.value)=='ISD') && (trim(f.mobno.value)!="" && trim(f.mobno.value)!="Mobile"))
	{
		alert("Please provide your ISD code for Mobile.")
		f.isdmobno.focus()
		f.isdmobno.select()
		return false
	}
	
	if((trim(f.mobno.value)=='' || trim(f.mobno.value)=='Mobile') && (trim(f.isdmobno.value)!="" && trim(f.isdmobno.value)!="ISD"))
	{
		alert("Please provide your Mobile number.")
		f.mobno.focus()
		f.mobno.select()
		return false
	}
	
	if((trim(f.isdmobno.value)!='' && trim(f.isdmobno.value)!='ISD'))
	{
		if(isNaN(f.isdmobno.value) || parseInt(f.isdmobno.value,10) == 0 || f.isdmobno.value.length<1 || f.isdmobno.value.length>4)
		{
			alert("Please provide a valid ISD code for Mobile No.");
			f.isdmobno.focus();
			f.isdmobno.select();
			return false;
		}
	}

	if((trim(f.mobno.value)!='' && trim(f.mobno.value)!='Mobile'))
	{
		if(isNaN(f.mobno.value) || parseInt(f.mobno.value,10) == 0 || (f.mobno.value.charAt(0)!=9 && f.mobno.value.charAt(0)!=0) || (f.mobno.value.length<10 || f.mobno.value.length>11))
		{
			alert("Please provide a valid mobile number.");
			f.mobno.focus();
			f.mobno.select();
			return false;
		}
		if(f.mobno.value.charAt(0)==9 && f.mobno.value.length!=10)
		{
			alert("Please enter a valid 10 digit number mobile no (excluding zero).");
			f.mobno.focus();
			f.mobno.select();
			return false;
		}
		if(f.mobno.value.charAt(0)==0 && f.mobno.value.length!=11)
		{
			alert("Please enter a valid 11 digit number mobile no (including zero).");
			f.mobno.focus();
			f.mobno.select();
			return false;
		}
	}

	if((trim(f.landisdcode.value)=='' || trim(f.landisdcode.value)=='ISD') && ((trim(f.landstdcode.value)!="" && trim(f.landstdcode.value)!="STD") || (trim(f.landno.value)!="" && trim(f.landno.value)!="Landline No")))
	{
		alert("Please provide your ISD code for Landline No.")
		f.landisdcode.focus()
		f.landisdcode.select()
		return false
	}
	
	if((trim(f.landstdcode.value)=='' || trim(f.landstdcode.value)=='STD') && ((trim(f.landisdcode.value)!="" && trim(f.landisdcode.value)!="ISD") || (trim(f.landno.value)!="" && trim(f.landno.value)!="Landline No")))
	{
		alert("Please provide your STD code for Landline No.")
		f.landstdcode.focus()
		f.landstdcode.select()
		return false
	}
	
	if((trim(f.landno.value)=='' || trim(f.landno.value)=='Landline No') && ((trim(f.landstdcode.value)!="" && trim(f.landstdcode.value)!="STD") || (trim(f.landisdcode.value)!="" && trim(f.landisdcode.value)!="ISD")))
	{
		alert("Please provide your Landline No.")
		f.landno.focus()
		f.landno.select()
		return false
	}
	
	if((trim(f.landisdcode.value)!='' && trim(f.landisdcode.value)!='ISD'))
	{
		if(isNaN(f.landisdcode.value) || parseInt(f.landisdcode.value,10) == 0 || f.landisdcode.value.length<1 || f.landisdcode.value.length>4)
		{
			alert("Please provide a valid ISD code for Landline No.");
			f.landisdcode.focus();
			f.landisdcode.select();
			return false;
		}
	}

	if((trim(f.landstdcode.value)!='' && trim(f.landstdcode.value)!='STD'))
	{
		if(isNaN(f.landstdcode.value) || parseInt(f.landstdcode.value,10) == 0 || f.landstdcode.value.length<2 || f.landstdcode.value.length>5)
		{
			alert("Please provide a valid STD code for Landline No.");
			f.landstdcode.focus();
			f.landstdcode.select();
			return false;
		}
	}

	if((trim(f.landno.value)!='' && trim(f.landno.value)!='Landline No'))
	{
		if(isNaN(f.landno.value) || parseInt(f.landno.value,10) == 0 || f.landno.value.length<6 || f.landno.value.length>8)
		{
			alert("Please provide a valid landline number.");
			f.landno.focus();
			f.landno.select();
			return false;
		}	
	}

	if(trim(f.emid.value)=='')
		{
			alert("Please provide your email id.");
			f.emid.focus();
			f.emid.select();
			return false;
		}
	if(!emailValidate(f.emid.value,''))
		{
			alert("Please enter a valid email id.")
			f.emid.focus();
			f.emid.select();
			return false;
		}

	if(f.selcard.value=="")
	{
		alert("Please select card.")
		f.selcard.focus()
		return false
	}
	
	var querystr="salutation="+f.salutation.value+"&fname="+f.fname.value+"&lname="+f.lname.value+"&gender="+gender+"&selcity="+f.selcity.value+"&isdmobno="+f.isdmobno.value+"&mobno="+f.mobno.value+"&landisdcode="+f.landisdcode.value+"&landstdcode="+f.landstdcode.value+"&landno="+f.landno.value+"&emid="+f.emid.value+"&selcard="+f.selcard.value+"";
	
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url="/advantage/process_advantage_card.asp";
	url=url+"?"+querystr;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=function() {stateChanged_frmAdvCard(frmnm)};
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged_frmAdvCard(frmnm) 
{ 
	if (xmlHttp.readyState==4)
	{ 
		var responseText=xmlHttp.responseText
		if(responseText.substring(0,5)=="ERROR")
		{
			document.getElementById("showError").innerHTML=responseText.substring(6);
			document.getElementById("appformdet").style.display='block';						
		}
		else
		{
			document.getElementById("showError").style.display='none';									
			document.getElementById("appformdet").innerHTML=xmlHttp.responseText;			
		}
	}
	else
	{
		document.getElementById("showError").innerHTML="<b>Please wait.....</b>";
	}
}

function chkModelPortFolio(frmnm)
{
	var f = eval("document."+frmnm);
	
	if(f.salutation.value=="")
	{
		alert("Please select title.")
		f.salutation.focus()
		return false
	}

	if(trim(f.fname.value)=='')
		{
			alert("Please provide your first name.");
			f.fname.focus();
			f.fname.select();
			return false;
		}
	if(f.fname.value.charAt(0)==' ')
		{
			alert("First Name cannot start with spaces.");
			f.fname.focus();
			f.fname.select();
			return false;			
		}
	if(chkinput((f.fname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in first name. (Only alphabets allowed)");
			f.fname.focus();
			f.fname.select();
			return false;
		}
	
	if(trim(f.lname.value)=='')
		{
			alert("Please provide your last name.");
			f.lname.focus();
			f.lname.select();
			return false;
		}
	if(f.lname.value.charAt(0)==' ')
		{
			alert("Last Name cannot start with spaces.");
			f.lname.focus();
			f.lname.select();
			return false;			
		}
	if(chkinput((f.lname.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in last name. (Only alphabets allowed)");
			f.lname.focus();
			f.lname.select();
			return false;
		}
	
	if(f.gender[0].checked==false && f.gender[1].checked==false)
	{
		alert("Please select gender.")
		f.gender[0].focus()
		return false		
	}
	var gender
	if(f.gender[0].checked)
	{
		gender="Male";
	}
	else if(f.gender[1].checked)
	{
		gender="Female";
	}
	else
	{
		gender="";
	}
	
	if(trim(f.selcity.value)=='')
		{
			alert("Please select your city.");
			f.selcity.focus();
			return false;
		}

	if(((trim(f.landno.value)=='' || trim(f.landno.value)=='Landline No') && (trim(f.landstdcode.value)=="" || trim(f.landstdcode.value)=="STD") && (trim(f.landisdcode.value)=="" || trim(f.landisdcode.value)=="ISD")) && ((trim(f.mobno.value)=="" || trim(f.mobno.value)=="Mobile") && (trim(f.isdmobno.value)=="" || trim(f.isdmobno.value)=="ISD")))
	{
		alert("Please provide any one contact number.")
		f.isdmobno.focus()
		f.isdmobno.select()
		return false
	}
	
	if((trim(f.isdmobno.value)=='' || trim(f.isdmobno.value)=='ISD') && (trim(f.mobno.value)!="" && trim(f.mobno.value)!="Mobile"))
	{
		alert("Please provide your ISD code for Mobile.")
		f.isdmobno.focus()
		f.isdmobno.select()
		return false
	}
	
	if((trim(f.mobno.value)=='' || trim(f.mobno.value)=='Mobile') && (trim(f.isdmobno.value)!="" && trim(f.isdmobno.value)!="ISD"))
	{
		alert("Please provide your Mobile number.")
		f.mobno.focus()
		f.mobno.select()
		return false
	}
	
	if((trim(f.isdmobno.value)!='' && trim(f.isdmobno.value)!='ISD'))
	{
		if(isNaN(f.isdmobno.value) || parseInt(f.isdmobno.value,10) == 0 || f.isdmobno.value.length<1 || f.isdmobno.value.length>4)
		{
			alert("Please provide a valid ISD code for Mobile No.");
			f.isdmobno.focus();
			f.isdmobno.select();
			return false;
		}
	}

	if((trim(f.mobno.value)!='' && trim(f.mobno.value)!='Mobile'))
	{
		if(isNaN(f.mobno.value) || parseInt(f.mobno.value,10) == 0 || (f.mobno.value.charAt(0)!=9 && f.mobno.value.charAt(0)!=8 && f.mobno.value.charAt(0)!=0) || (f.mobno.value.length<10 || f.mobno.value.length>11))
		{
			alert("Please provide a valid mobile number.");
			f.mobno.focus();
			f.mobno.select();
			return false;
		}
		if((f.mobno.value.charAt(0)==9 || f.mobno.value.charAt(0)==8) && f.mobno.value.length!=10)
		{
			alert("Please enter a valid 10 digit number mobile no (excluding zero).");
			f.mobno.focus();
			f.mobno.select();
			return false;
		}
		if(f.mobno.value.charAt(0)==0 && f.mobno.value.length!=11)
		{
			alert("Please enter a valid 11 digit number mobile no (including zero).");
			f.mobno.focus();
			f.mobno.select();
			return false;
		}
	}

	if((trim(f.landisdcode.value)=='' || trim(f.landisdcode.value)=='ISD') && ((trim(f.landstdcode.value)!="" && trim(f.landstdcode.value)!="STD") || (trim(f.landno.value)!="" && trim(f.landno.value)!="Landline No")))
	{
		alert("Please provide your ISD code for Landline No.")
		f.landisdcode.focus()
		f.landisdcode.select()
		return false
	}
	
	if((trim(f.landstdcode.value)=='' || trim(f.landstdcode.value)=='STD') && ((trim(f.landisdcode.value)!="" && trim(f.landisdcode.value)!="ISD") || (trim(f.landno.value)!="" && trim(f.landno.value)!="Landline No")))
	{
		alert("Please provide your STD code for Landline No.")
		f.landstdcode.focus()
		f.landstdcode.select()
		return false
	}
	
	if((trim(f.landno.value)=='' || trim(f.landno.value)=='Landline No') && ((trim(f.landstdcode.value)!="" && trim(f.landstdcode.value)!="STD") || (trim(f.landisdcode.value)!="" && trim(f.landisdcode.value)!="ISD")))
	{
		alert("Please provide your Landline No.")
		f.landno.focus()
		f.landno.select()
		return false
	}
	
	if((trim(f.landisdcode.value)!='' && trim(f.landisdcode.value)!='ISD'))
	{
		if(isNaN(f.landisdcode.value) || parseInt(f.landisdcode.value,10) == 0 || f.landisdcode.value.length<1 || f.landisdcode.value.length>4)
		{
			alert("Please provide a valid ISD code for Landline No.");
			f.landisdcode.focus();
			f.landisdcode.select();
			return false;
		}
	}

	if((trim(f.landstdcode.value)!='' && trim(f.landstdcode.value)!='STD'))
	{
		if(isNaN(f.landstdcode.value) || parseInt(f.landstdcode.value,10) == 0 || f.landstdcode.value.length<2 || f.landstdcode.value.length>5)
		{
			alert("Please provide a valid STD code for Landline No.");
			f.landstdcode.focus();
			f.landstdcode.select();
			return false;
		}
	}

	if((trim(f.landno.value)!='' && trim(f.landno.value)!='Landline No'))
	{
		if(isNaN(f.landno.value) || parseInt(f.landno.value,10) == 0 || f.landno.value.length<6 || f.landno.value.length>8)
		{
			alert("Please provide a valid landline number.");
			f.landno.focus();
			f.landno.select();
			return false;
		}	
	}

	if(trim(f.emid.value)=='')
		{
			alert("Please provide your email id.");
			f.emid.focus();
			f.emid.select();
			return false;
		}
	if(!emailValidate(f.emid.value,''))
		{
			alert("Please enter a valid email id.")
			f.emid.focus();
			f.emid.select();
			return false;
		}

	if(f.selcard.value=="")
	{
		alert("Please select card.")
		f.selcard.focus()
		return false
	}
	
	var querystr="salutation="+f.salutation.value+"&fname="+f.fname.value+"&lname="+f.lname.value+"&gender="+gender+"&selcity="+f.selcity.value+"&isdmobno="+f.isdmobno.value+"&mobno="+f.mobno.value+"&landisdcode="+f.landisdcode.value+"&landstdcode="+f.landstdcode.value+"&landno="+f.landno.value+"&emid="+f.emid.value+"&selcard="+f.selcard.value+"";
	
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url="/equity/process_model_portfolio.asp";
	url=url+"?"+querystr;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=function() {stateChanged_frmModelPortFolio(frmnm)};
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged_frmModelPortFolio(frmnm) 
{ 
	if (xmlHttp.readyState==4)
	{ 
		var responseText=xmlHttp.responseText
		if(responseText.substring(0,5)=="ERROR")
		{
			document.getElementById("showError").innerHTML=responseText.substring(6);
			document.getElementById("appformdetpot").style.display='block';						
		}
		else
		{
			document.getElementById("showError").style.display='none';									
			document.getElementById("appformdetpot").innerHTML=xmlHttp.responseText;			
		}
	}
	else
	{
		document.getElementById("showError").innerHTML="<b>Please wait.....</b>";
	}
}

function showrhs(x)
{
		document.getElementById(x).style.display='block';
		document.getElementById('titRegister').style.display='none';
}

function hiderhs(x)
{
		document.getElementById(x).style.display='none';
		document.getElementById('titRegister').style.display='block';
}

//List Propery Starts//
function chkfrmListProperty(frmnm)
{
	var f = eval("document."+frmnm);
	var address = (f.Address.value).replace(/&/gi, "and");
	address = (address).replace(/#/gi, "");
	address = (address).replace(/"/gi, "");
	address = (address).replace(/\\/gi, "");
	var description = (f.Description.value).replace(/&/gi, "and");
	description = (description).replace(/#/gi, "");
	description = (description).replace(/"/gi, "");
	description = (description).replace(/\\/gi, "");
	
	/&/gi

	if(f.Property_Type[0].checked==false && f.Property_Type[1].checked==false && f.Property_Type[2].checked==false && f.Property_Type[3].checked==false && f.Property_Type[4].checked==false)
	{
		alert("Please select Property Type.");
		f.Property_Type[0].focus();
		return false;		
	}
	
		if(trim(f.City.value)=='')
		{
			alert("Please select your City.");
			f.City.focus();
			return false;
		}


	if(trim(f.Address.value)=='')
	{
			alert("Please enter your Address")
			f.Address.focus();
			return false;

    }
	if(trim(f.Address.value)!='')
	{
		if(f.Address.value.charAt(0)==' ')
		{
			alert("Address cannot begin with a space")
			f.Address.focus();
			f.Address.select();
			return false;
		}
		else if(chkinput((address).toLowerCase(), VALIDATE_ADDR)==false)
		{
			alert("Please enter a valid address")
			f.Address.focus();
			return false;
		}
		else if(f.Address.value.length>500)
		{
			alert("A maximum of 500 characters are allowed in the Address")
			f.Address.focus();
			return false;
		}
	}
	
		if(trim(f.Price.value)=='')
		{
			alert("Please select your Price.");
			f.Price.focus();
			return false;
		}	


	if(trim(f.Description.value)=='')
	{
			alert("Please enter Property Description")
			f.Description.focus();
			return false;

    }
	if(trim(f.Description.value)!='')
	{
		if(f.Description.value.charAt(0)==' ')
		{
			alert("Property Description cannot begin with a space")
			f.Description.focus();
			f.Description.select();
			return false;
		}
		else if(chkinput((description).toLowerCase(), VALIDATE_ADDR)==false)
		{
			alert("Please enter a valid Property Description")
			f.Description.focus();
			return false;
		}
		else if(f.Description.value.length<400)
		{
			alert("Minimum of 100 words are required in the Property Description")
			f.Description.focus();
			return false;
		}
		else if(f.Description.value.length>700)
		{
			alert("Maximum of 700 characters are allowed in the Property Description")
			f.Description.focus();
			return false;
		}
	}
	
	
		if(trim(f.Ownership_Type.value)=='')
		{
			alert("Please select your Ownership Type.");
			f.Ownership_Type.focus();
			return false;
		}	
	
	if(trim(f.Name.value)=='')
		{
			alert("Please provide your Name.");
			f.Name.focus();
			f.Name.select();
			return false;
		}
	if(f.Name.value.charAt(0)==' ')
		{
			alert("Name cannot start with spaces.");
			f.Name.focus();
			f.Name.select();
			return false;			
		}
	if(chkinput((f.Name.value).toLowerCase(), VALIDATE_NAME)==false)
		{
			alert("Please provide valid details in Name. (Only alphabets allowed)");
			f.Name.focus();
			f.Name.select();
			return false;
		}		

	if(trim(f.Mobile.value)=='')
	{
		alert("Please provide your Mobile number.")
		f.Mobile.focus();
		f.Mobile.select();
		return false;
	}

	if((trim(f.Mobile.value)!=''))
	{
		if(isNaN(f.Mobile.value) || parseInt(f.Mobile.value,10) == 0 || (f.Mobile.value.length<10 || f.Mobile.value.length>11))
		{
			alert("Please provide a valid Mobile number.");
			f.Mobile.focus();
			f.Mobile.select();
			return false;
		}
		if(f.Mobile.value.charAt(0)!=0 && f.Mobile.value.length!=10)
		{
			alert("Please enter a valid 10 digit number Mobile no (excluding zero).");
			f.Mobile.focus();
			f.Mobile.select();
			return false;
		}
		if(f.Mobile.value.charAt(0)==0 && f.Mobile.value.length!=11)
		{
			alert("Please enter a valid 11 digit number Mobile no (including zero).");
			f.Mobile.focus();
			f.Mobile.select();
			return false;
		}
	}

	if(trim(f.EmailID.value)=='')
		{
			alert("Please provide your EmailID.");
			f.EmailID.focus();
			f.EmailID.select();
			return false;
		}
	if(!emailValidate(f.EmailID.value,''))
		{
			alert("Please enter a valid EmailID.")
			f.EmailID.focus();
			f.EmailID.select();
			return false;
		}

	for (index=0; index < f.Property_Type.length; index++) 
	{
	    if (f.Property_Type[index].checked) 
	    {
		    var Property_Type = f.Property_Type[index].value;
		    break;
		}
	}
	
	var querystr="Property_Type="+Property_Type+"&City="+f.City.value+"&Address="+address+"&Price="+f.Price.value+"&Description="+description+"&Ownership_Type="+f.Ownership_Type.value+"&Name="+f.Name.value+"&Mobile="+f.Mobile.value+"&EmailID="+f.EmailID.value+"";
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url="/realestate/process_listproperty.asp";
	url=url+"?"+querystr;
	url=url+"&sid="+Math.random();
//	alert("Hi1")
//	alert(url)
//	alert("Hi2")
	xmlHttp.onreadystatechange=function() {stateChanged_frmListProperty(frmnm)};
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged_frmListProperty(frmnm) 
{ 
//	alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4)
	{ 
//		alert("If")
		var responseText=xmlHttp.responseText
//		alert(responseText)
		
		if(responseText.substring(0,5)=="ERROR")
		{
			document.getElementById("divshowError").innerHTML=responseText.substring(6);
			$('html,body').animate({
            scrollTop : $('#divshowError').offset().top
            },"normal");
			document.getElementById("divappformdet").style.display='block';						
		}
		else
		{
			document.frmListProperty.reset();
			window.scroll(0,0);
			//document.getElementById("divshowError").innerHTML=xmlHttp.responseText;											
			document.getElementById("divshowError").style.display='none';									
			//document.getElementById("divappformdet").innerHTML=xmlHttp.responseText;			
			document.getElementById("divappformdet").style.display='none';									
			document.getElementById("divappformdet_thankyou").style.display='';									
			document.getElementById("divappformdet_thankyou").innerHTML=xmlHttp.responseText;			
		}
	}
	else
	{
		document.getElementById("divshowError").innerHTML="<b>Please wait.....</b>";
	}
}

function txtlim(obj,limit){
	var mlength=parseInt(limit);
	if (obj.value.length>mlength)
	obj.value=obj.value.substring(0,mlength)
}
//List Propery Ends//

