
function onPageLoad()
{}
function divShow(a,b)
{document.getElementById(a).style.visibility="visible";document.getElementById(b).style.backgroundColor="#0F3051";}
function divHide(a,b)
{document.getElementById(a).style.visibility="hidden";document.getElementById(b).style.background="none";}
function change_ptype_ind(obj)
{if(obj=='res_tabind')
{document.getElementById('res_tabind').className="sel_tab ";document.getElementById('com_tabind').className="tab_div";document.getElementById('div_type').innerHTML="<select id='select21' name='type' onchange='changeAction()' style='width: 150px;' class='cmb_txt' on><option value='select-property'>Select property type</option><option value='residentialapartment'>Residential Apartment</option><option value='independenthousevilla'>Independent house/villa</option><option value='residentalland'>Residental land</option><option value='pgforgirls'>PG for girls</option><option value='pgforboys'>PG for boys</option>                                </select>  ";document.getElementById('radiobutton').value='residential';}
else
{document.getElementById('res_tabind').className="tab_div";document.getElementById('com_tabind').className="sel_tab";document.getElementById('div_type').innerHTML="<select id='select21' name='type' onchange='changeAction()' style='width: 150px;' class='cmb_txt'><option value=\"select-property\">Select property type</option><option value=\"serviceapartment\">Service apartment</option><option value=\"commercialshop\">Commercial - Shop</option><option value=\"commercialshowroom\">Commercial - Showroom</option><option value=\"commercialofficespace\">Commercial - Office space</option><option value=\"commercialland\">Commercial - land</option><option value=\"guesthouse\">Guest - house</option><option value=\"spaceinretailmall\">Space in retail mall</option><option value=\"officespaceinbusinesspark\">Office space in Business park</option><option value=\"officespaceinitpark\">Office space in IT park</option><option value=\"warehouse\">Warehouse</option><option value=\"godown\">Godown</option></select>";document.getElementById('radiobutton').value='commercial';}}
function change_ptype(obj){if(obj=='res_tab')
{document.getElementById('res_tab').className="sel_tab ";document.getElementById('com_tab').className="tab_div";document.getElementById('div_type').innerHTML="<select id='select2' name='type' onchange='changeAction()' style='width: 150px;' class='cmb_txt'><option value='select-property'>Select property type</option><option value='residentialapartment'>Residential Apartment</option><option value='independenthousevilla'>Independent house/villa</option><option value='residentalland'>Residental land</option><option value='pgforgirls'>PG for girls</option><option value='pgforboys'>PG for boys</option>                                </select>  ";document.getElementById('radiobutton').value='residential';}
else
{document.getElementById('res_tab').className="tab_div";document.getElementById('com_tab').className="sel_tab";document.getElementById('div_type').innerHTML="<select id='select2' name='type' onchange='changeAction()' style='width: 150px;' class='cmb_txt'><option value=\"select-property\">Select property type</option><option value=\"serviceapartment\">Service apartment</option><option value=\"commercialshop\">Commercial - Shop</option><option value=\"commercialshowroom\">Commercial - Showroom</option><option value=\"commercialofficespace\">Commercial - Office space</option><option value=\"commercialland\">Commercial - land</option><option value=\"guesthouse\">Guest - house</option><option value=\"spaceinretailmall\">Space in retail mall</option><option value=\"officespaceinbusinesspark\">Office space in Business park</option><option value=\"officespaceinitpark\">Office space in IT park</option><option value=\"warehouse\">Warehouse</option><option value=\"godown\">Godown</option></select>";document.getElementById('radiobutton').value='commercial';}}
function ValPostRequ_index()
{var name=document.postreq1.txtname.value;var contact=document.postreq1.txtcontact.value;var email=document.postreq1.txtemail.value;if(name==""){alert("Please enter your Name..!!");return false;}
if(contact==""){alert("Please enter your Contact No.!!");return false;}
if(email==""){alert("Please enter your E-mail address.!!");return false;}
contact_re=new RegExp("^[\\d]+$");contact_re1=new RegExp("^[\\d-]+$");contact_re2=new RegExp("^[\\d-+]+$");email_re=/^[^@]+@[^@]+.[a-z]{2,}$/i;if(loc=="Select"){value=false;alert("Please select Location..!!");return value;}
if(contact.length>=8)
{if(contact.match(contact_re)&&contact.length==8){value=true;}
else if(contact.match(contact_re)&&contact.length==10){value=true;}
else if(contact.match(contact_re1)&&contact.length==9&&contact[0]=='-'||contact[1]=='-'||contact[2]=='-'||contact[3]=='-'||contact[4]=='-'||contact[5]=='-'||contact[6]=='-'||contact[7]=='-'||contact[8]=='-'){value=true;}
else if(contact.match(contact_re2)&&contact.length>7&&contact.length>10){value=true;}
else
{value=false;alert("Please enter valid Phone number!!!");document.postreq.txtcontact.select();return value;}}
else
{value=false;alert("Please enter valid Phone number!!!");document.postreq.txtcontact.select();return value;}
if(email.match(email_re)){value=true;}
else{value=false;alert("Please enter valid email address!!!");document.postreq.txtemail.select();return value;}
return true;}
function ValPostRequ_index1()
{var name=document.postreq2.txtname.value;var contact=document.postreq2.txtcontact.value;if(name==""){alert("Please enter your Name..!!");document.postreq2.txtname.select();return false;}
if(contact==""){alert("Please enter your Contact No.!!");document.postreq2.txtcontact.select();return false;}
return true;}
function ValPostRequ_pm()
{var contact=document.postreq3.aslpm_txt.value;if(contact==""){alert("Please enter your Contact No.!!");document.postreq3.aslpm_txt.select();return false;}
return true;}
function change_div(obj){if(document.getElementById){var el=document.getElementById(obj);var ar=document.getElementById("masterdiv").getElementsByTagName("span");if(el.style.display!="block")
{for(var i=0;i<ar.length;i++)
{if(ar[i].className=="faq-options")
ar[i].style.display="none";}
el.style.display="inline";}
else{el.style.display="none";}}}
