
var req;var which;var num;function retrieveURL(url,n){if(window.XMLHttpRequest){req=new XMLHttpRequest();req.onreadystatechange=processStateChange;num=n;try{req.open("GET",url,true);}catch(e){alert(e);}
req.send(null);}else if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP");if(req){req.onreadystatechange=processStateChange;num=n;req.open("GET",url,true);req.send();}}}
function retrieveURLQueck(url,n){if(window.XMLHttpRequest){req=new XMLHttpRequest();req.onreadystatechange=processStateQueck;num=n;try{req.open("GET",url,true);}catch(e){alert(e);}
req.send(null);}else if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP");if(req){req.onreadystatechange=processStateQueck;num=n;req.open("GET",url,true);req.send();}}}
function processStateQueck(){if(req.readyState==4){if(req.status==200){if(num=="1"){var data=req.responseText;var allData=data.split("&");var brand=allData[0];var model=allData[1];document.getElementById("brand_id_queck").innerHTML=brand;document.getElementById("model_id_queck").innerHTML=model;}else{document.getElementById("model_id_queck").innerHTML=req.responseText;}}else{}}}
function placeAdValidate()
{if(document.getElementById("model2")!=null){document.getElementById("model").value=document.getElementById("model2").value}
if(document.getElementById("fname").value==""){alert("First Name required !! ");document.getElementById("fname").focus();return false;}
if(document.getElementById("lname").value==""){alert("Last Name required !! ");document.getElementById("lname").focus();return false;}
if(document.getElementById("signIn").value=="yes"){if(document.getElementById("mUserName").value==""){alert("User Name required !! ");document.getElementById("mUserName").focus();return false;}
if(document.getElementById("mpassword").value==""){alert("Password required !! ");document.getElementById("mpassword").focus();return false;}
if(document.getElementById("mvpassword").value==""){alert("Re-Password required !! ");document.getElementById("mvpassword").focus();return false;}
if(document.getElementById("mvpassword").value!=document.getElementById("mpassword").value){alert("Password Not correct !! ");document.getElementById("mvpassword").focus();return false;}}
if(document.getElementById("countryCode").value!=""){if(isNaN(document.getElementById("countryCode").value)){alert("invalid countryCode Format !!");document.getElementById("countryCode").focus();return false;}
if(document.getElementById("areaCode").value==""){alert("areaCode required !! ");document.getElementById("areaCode").focus();return false;}
if(isNaN(document.getElementById("areaCode").value)){alert("invalid areaCode Format !!");document.getElementById("areaCode").focus();return false;}
if(document.getElementById("tel").value==""){alert("Tel required !! ");document.getElementById("tel").focus();return false;}
if(isNaN(document.getElementById("tel").value)){alert("invalid Tel Format !!");document.getElementById("tel").focus();return false;}}
var s=document.getElementById("vEmail").value;if(s==""){alert("e-mail address required !!");document.getElementById("vEmail").focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1))){alert("invalid e-mail Format");document.getElementById("vEmail").focus();return false;}
pos2=s.indexOf('.',1);if((pos2==-1)||(pos2==(s.length-1))){alert("invalid e-mail Format");document.getElementById("vEmail").focus();return false;}
if(document.placeAd.status.value==0){alert("Ad Category required !! ");document.placeAd.status.focus();return false;}
if(document.placeAd.adPosition.value==0){alert("Ad Position required !! ");document.placeAd.adPosition.focus();return false;}
if(document.placeAd.adsRegions.value==0){alert("Ad Region required !! ");document.placeAd.adsRegions.focus();return false;}
if(document.getElementById("adsCountry2").value==0){alert("Ad Country required !! ");document.placeAd.adsCountry2.focus();return false;}else{document.getElementById("adsCountry").Value=document.getElementById("adsCountry2").Value;}
if(document.placeAd.brand.value==0){alert("Brand required !! ");document.placeAd.brand.focus();return false;}
if(document.getElementById("model2").value=='All'){alert("Model required !! ");document.placeAd.model2.focus();return false;}
if(document.placeAd.status.value=="2"){if(document.placeAd.partId.value==0){alert("Part Category required !! ");document.placeAd.partId.focus();return false;}}
if(document.getElementById("title").value==""){alert("Title required !! ");document.getElementById("title").focus();return false;}
if(document.getElementById("desc").value==""){alert("Description required !! ");document.getElementById("desc").focus();return false;}
if(document.placeAd.productionYear.value==-1){alert("Manufacturing year required !! ");document.placeAd.productionYear.focus();return false;}
myPrice=document.getElementById("price").value;if(myPrice==""){if(document.getElementById("offerdType2").value=="2"||document.getElementById("offerdType2").value=="1"){alert("Price required for Offered/Wanted Ads!! ");document.getElementById("price").focus();return false;}}
pos=myPrice.indexOf(',');if((pos!=-1)){var formcontent=myPrice.split(',')
myPrice=formcontent[0]+formcontent[1];}
if(isNaN(myPrice)){if(document.getElementById("offerdType2").value=="2"||document.getElementById("offerdType2").value=="1"){alert("invalid Price Format !!");document.getElementById("price").focus();return false;}}
if(document.getElementById("productionYear").value!=""){if(isNaN(document.getElementById("productionYear").value)){alert("invalid Manfucturing year  Format !!");document.getElementById("productionYear").focus();return false;}}
if(document.placeAd.cheek.value=="1"){alert("Invalid User Name");document.getElementById("mUserName").focus();return false;}
if(document.placeAd.cheekEmailVal.value=="2"){alert("Invalid Email");document.getElementById("vEmail").focus();return false;}
styleObj=document.getElementById("terms");if(styleObj.checked==false){alert("Accept the Terms requird !");return false;}
if(document.placeAd.adPosition.value=="2"){window.open('paypalConfirm.jsp','','width=450, height=230, scrollbars=yes');}else{document.placeAd.submit();}}
function placeAdMemberValidate()
{if(document.getElementById("model2")!=null){document.getElementById("model").value=document.getElementById("model2").value;}
if(document.placeAd.status.value==0){alert("Ad Category required !! ");document.placeAd.status.focus();return false;}
if(document.placeAd.adPosition.value==0){alert("Ad Position required !! ");document.placeAd.adPosition.focus();return false;}
if(document.placeAd.adsRegions.value==0){alert("Ad Region required !! ");document.placeAd.adsRegions.focus();return false;}
if(document.getElementById("adsCountry2").value==0){alert("Ad Country/State required !! ");document.getElementById("adsCountry2").focus();return false;}else{document.getElementById("adsCountry").Value=document.getElementById("adsCountry2").Value;}
if(document.placeAd.brand.value==0){alert("Brand required !! ");document.placeAd.brand.focus();return false;}
if(document.getElementById("model2").value=='All'){alert("Model required !! ");document.placeAd.brand.focus();return false;}
if(document.placeAd.status.value=="2"){if(document.placeAd.partId.value==0){alert("Part Category required !! ");document.placeAd.partId.focus();return false;}}
if(document.getElementById("title").value==""){alert("Title required !! ");document.getElementById("title").focus();return false;}
if(document.getElementById("desc").value==""){alert("Description required !! ");document.getElementById("desc").focus();return false;}
if(document.placeAd.productionYear.value==-1){alert("Manufacturing year required !! ");document.placeAd.productionYear.focus();return false;}
myPrice=document.getElementById("price").value;if(myPrice==""){if(document.getElementById("offerdType").value=="2"||document.getElementById("offerdType").value=="1"){alert("Price required for Offered/Wanted Ads!! ");document.getElementById("price").focus();return false;}}
pos=myPrice.indexOf(',');if((pos!=-1)){var formcontent=myPrice.split(',')
myPrice=formcontent[0]+formcontent[1];}
if(isNaN(myPrice)){if(document.getElementById("offerdType").value=="2"||document.getElementById("offerdType").value=="1"){alert("invalid Price Format !!");document.getElementById("price").focus();return false;}}
if(document.getElementById("productionYear").value!=""){if(isNaN(document.getElementById("productionYear").value)){alert("invalid Manfucturing year  Format !!");document.getElementById("productionYear").focus();return false;}}
styleObj=document.getElementById("terms");if(styleObj.checked==false){alert("Accept the Terms requird !");return false;}
if(document.placeAd.adPosition.value=="2"){window.open('paypalConfirm.jsp','','width=450, height=230, scrollbars=yes');}else{document.placeAd.submit();}}
function placeAdMemberEditValidate()
{if(document.placeAd.status.value==0){alert("Ad Category required !! ");document.placeAd.status.focus();return false;}
if(document.placeAd.adPosition.value==0){alert("Ad Position required !! ");document.placeAd.adPosition.focus();return false;}
if(document.placeAd.adsRegions.value==0){alert("Ad Regions required !! ");document.placeAd.adsRegions.focus();return false;}
if(document.getElementById("adsCountry2").value==0){alert("Ad Country/State required !! ");document.getElementById("adsCountry2").focus();return false;}
if(document.placeAd.brand.value==0){alert("Brand required !! ");document.placeAd.brand.focus();return false;}
if(document.placeAd.status.value=="2"){if(document.placeAd.partId.value==0){alert("Part Category required !! ");document.placeAd.partId.focus();return false;}}
if(document.getElementById("title").value==""){alert("Title required !! ");document.getElementById("title").focus();return false;}
if(document.getElementById("desc").value==""){alert("Description required !! ");document.getElementById("desc").focus();return false;}
if(document.placeAd.productionYear.value==-1){alert("Manufacturing year required !! ");document.placeAd.productionYear.focus();return false;}
myPrice=document.getElementById("price").value;if(myPrice==""){if(document.getElementById("offerdType").value=="2"||document.getElementById("offerdType").value=="1"){alert("Price required for Offered/Wanted Ads!! ");document.getElementById("price").focus();return false;}}
pos=myPrice.indexOf(',');if((pos!=-1)){var formcontent=myPrice.split(',')
myPrice=formcontent[0]+formcontent[1];}
if(isNaN(myPrice)){if(document.getElementById("offerdType").value=="2"||document.getElementById("offerdType").value=="1"){alert("invalid Price Format !!");document.getElementById("price").focus();return false;}}
if(document.getElementById("productionYear").value!=""){if(isNaN(document.getElementById("productionYear").value)){alert("invalid Manfucturing year  Format !!");document.getElementById("productionYear").focus();return false;}}
if(document.placeAd.adPosition.value=="2"){if(document.placeAd.chkadPosition.value=="g"){window.open('paypalConfirm.jsp','','width=450, height=230, scrollbars=yes');}else{document.placeAd.submit();}}else{document.placeAd.submit();}}
function adminplaceAdMemberValidate()
{if(document.getElementById("adsCountry").value==0){alert("Ad Country required !! ");document.getElementById("adsCountry").focus();return false;}
var myPrice=document.getElementById("price").value;if(document.getElementById("title").value==""){alert("Title required !! ");document.getElementById("title").focus();return false;}
if(document.getElementById("desc").value==""){alert("Description required !! ");document.getElementById("desc").focus();return false;}
if(myPrice==""){if(document.getElementById("offerdType2").value=="2"||document.getElementById("offerdType2").value=="1"){alert("Price required for Offered/Wanted Ads!! ");document.getElementById("price").focus();return false;}}
pos=myPrice.indexOf(',');if((pos!=-1)){var formcontent=myPrice.split(',')
myPrice=formcontent[0]+formcontent[1];}
if(isNaN(myPrice)){if(document.getElementById("offerdType2").value=="2"||document.getElementById("offerdType2").value=="1"){alert("invalid Price Format !!");document.getElementById("price").focus();return false;}}
if(document.getElementById("productionYear").value!=""){if(isNaN(document.getElementById("productionYear").value)){alert("invalid Manfucturing year  Format !!");document.getElementById("productionYear").focus();return false;}}
return true;}
function resetFormData(){document.forms.placeAd.reset();}
function placeAdSignIn(){var membersDiv="";membersDiv+="<table width='100%'  border='0' cellpadding='0' cellspacing='2'>";membersDiv+=" <tr>";membersDiv+="<td width='25%' class='market_text_12'>Username<span class='obligatoryToFill'> *</span></td>";membersDiv+="<td><input name='members.userName2' type='text' class='mp_width2' id='mUserName' onBlur='cheekUser(\"CheekUser.do?user=\"+this.value);updateuser(this.value);'> <span id='cheekUser' class='userValid'> </span></td>";membersDiv+=" </tr>";membersDiv+=" <tr>";membersDiv+="<td class='market_text_12'>Password<span class='obligatoryToFill'> *</span></td>";membersDiv+=" <td><input name='members.password2' type='password' class='mp_width2' id='mpassword' onBlur='updatepass(this.value)' ></td>";membersDiv+=" </tr>";membersDiv+=" <tr>";membersDiv+=" <td class='market_text_12'>Re-enter Password<span class='obligatoryToFill'> *</span></td>";membersDiv+="  <td><input name='members.vpassword' type='password' class='mp_width2' id='mvpassword' ></td>";membersDiv+=" </tr>";membersDiv+="</table>";styleObj=document.getElementById("signIn");if(styleObj.checked==true){cheekEmail("CheekEmail.do?email="
+document.getElementById('vEmail').value);var c=document.getElementById("cheekEmailVal");membersdat=document.getElementById("membersData");membersdat.innerHTML=membersDiv;}else{var c=document.getElementById("cheekEmailVal");c.value="";membersdat=document.getElementById("membersData");membersdat.innerHTML="";document.getElementById("cheekEmail").innerHTML="";}}
function checkemailstatus(){styleObj=document.getElementById("signIn");if(styleObj.value=="yes"){cheekEmail("CheekEmail.do?email="
+document.getElementById('vEmail').value);}else{document.getElementById("cheekEmail").innerHTML="";var c=document.getElementById("cheekEmailVal");c.value="";}}
function car_type(object){var data=object.options[object.selectedIndex].value;var catData="<select name='condition2' id='condition2' class='width' onBlur='updateConditionVal(this.value)'><option value='1'>Excellent</option><option value='2'>very Good</option><option value='3'>Good</option><option value='4'>Fair</option><option value='5'>Poor</option></select>";var partData="<select name='condition2' id='condition2' class='width' onBlur='updateConditionVal(this.value)'><option value='1' selected>New</option><option value='2'>New old Stock</option><option value='3'>Used</option></select>";partIdObj=document.getElementById("partId");vinObj=document.getElementById("vin");carPartTextObj=document.getElementById("carPartText");carPartValObj=document.getElementById("carPartVal");productionYearObj=document.getElementById("productionYear");if(data=='1'){partIdObj.disabled=true;vinObj.disabled=false;carPartTextObj.innerHTML="Car Condition";carPartValObj.innerHTML=catData;}else{partIdObj.disabled=false;vinObj.disabled=true;carPartTextObj.innerHTML="Part Condition";carPartValObj.innerHTML=partData;}}
function updateMemberValidate(){if(document.getElementById("mpassword").value==""){alert("Password required !! ");document.getElementById("mpassword").focus();return false;}
if(document.getElementById("countryCode").value!=""){if(isNaN(document.getElementById("countryCode").value)){alert("invalid countryCode Format !!");document.getElementById("countryCode").focus();return false;}
if(document.getElementById("areaCode").value==""){alert("areaCode required !! ");document.getElementById("areaCode").focus();return false;}
if(isNaN(document.getElementById("areaCode").value)){alert("invalid areaCode Format !!");document.getElementById("areaCode").focus();return false;}
if(document.getElementById("tel").value==""){alert("Tel required !! ");document.getElementById("tel").focus();return false;}
if(isNaN(document.getElementById("tel").value)){alert("invalid Tel Format !!");document.getElementById("tel").focus();return false;}}
var s=document.getElementById("vEmail").value;if(s==""){alert("e-mail address required !!");document.getElementById("vEmail").focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1))){alert("invalid e-mail Format");document.getElementById("vEmail").focus();return false;}
if(document.getElementById("emailVal").value=="2"){alert("Invalid Email");document.getElementById("vEmail").focus();return false;}
return true;}
function userRegValidate()
{if(document.getElementById("fname").value==""){alert("First Name required !! ");document.getElementById("fname").focus();return false;}
if(document.getElementById("lname").value==""){alert("Last Name required !! ");document.getElementById("lname").focus();return false;}
if(document.getElementById("countryCode").value!=""){if(isNaN(document.getElementById("countryCode").value)){alert("invalid countryCode Format !!");document.getElementById("countryCode").focus();return false;}
if(document.getElementById("areaCode").value==""){alert("areaCode required !! ");document.getElementById("areaCode").focus();return false;}
if(isNaN(document.getElementById("areaCode").value)){alert("invalid areaCode Format !!");document.getElementById("areaCode").focus();return false;}
if(document.getElementById("tel").value==""){alert("Tel required !! ");document.getElementById("tel").focus();return false;}
if(isNaN(document.getElementById("tel").value)){alert("invalid Tel Format !!");document.getElementById("tel").focus();return false;}}
var s=document.getElementById("vEmail").value;if(s==""){alert("e-mail address required !!");document.getElementById("vEmail").focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1))){alert("invalid e-mail Format");document.getElementById("vEmail").focus();return false;}
pos2=s.indexOf('.',1);if((pos2==-1)||(pos2==(s.length-1))){alert("invalid e-mail Format");document.getElementById("vEmail").focus();return false;}
if(document.getElementById("mUserName").value==""){alert("User Name required !! ");document.getElementById("mUserName").focus();return false;}
if(document.getElementById("mpassword").value==""){alert("Password required !! ");document.getElementById("mpassword").focus();return false;}
if(document.getElementById("mvpassword").value==""){alert("Re-Password required !! ");document.getElementById("mvpassword").focus();return false;}
if(document.getElementById("mvpassword").value!=document.getElementById("mpassword").value){alert("Password Not correct !! ");document.getElementById("mvpassword").focus();return false;}
styleObj=document.getElementById("terms");if(styleObj.checked==false){alert("Accept the Terms requird !");return false;}
if(document.placeAd.cheek.value=="1"){alert("Invalid User Name");document.getElementById("mUserName").focus();return false;}
if(document.placeAd.cheekEmailVal.value=="2"){alert("Invalid Email");document.getElementById("vEmail").focus();return false;}
return true;}
function changMainImage(object){var mainImg=document.getElementById("mainImg");mainImg.src=object;}
function sendEmail(page){window.open(page,'','width=450,height=500 scroll=no');}
function forgetpassValidate(){var s=document.getElementById("passEmail").value;if(s==""){alert("e-mail address required !!");document.getElementById("passEmail").focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1))){alert("invalid e-mail Format");document.getElementById("passEmail").focus();return false;}
pos2=s.indexOf('.',1);if((pos2==-1)||(pos2==(s.length-1))){alert("invalid e-mail Format");document.getElementById("passEmail").focus();return false;}}
function SendToFriend(){var s=document.mailForm.emailFrom.value;var x=document.mailForm.emailTo.value;if(s==""){alert("e-mail address required !!");document.mailForm.emailFrom.focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1))){alert("invalid e-mail Format");document.mailForm.emailFrom.focus();return false;}
pos2=s.indexOf('.',1);if((pos2==-1)||(pos2==(s.length-1))){alert("invalid e-mail Format");document.mailForm.emailFrom.focus();return false;}
if(x==""){alert("e-mail address required !!");document.mailForm.emailTo.focus();return false;}
pos=x.indexOf('@',1);if((pos==-1)||(pos==(x.length-1))){alert("invalid e-mail Format");document.mailForm.emailTo.focus();return false;}
pos2=x.indexOf('.',1);if((pos2==-1)||(pos2==(x.length-1))){alert("invalid e-mail Format");document.mailForm.emailTo.focus();return false;}
if(document.mailForm.note.value==""){alert("Note required !!");document.mailForm.note.focus();return false;}}
function complain(){var s=document.complainForm.emailFrom.value;if(s==""){alert("e-mail address required !!");document.complainForm.emailFrom.focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1))){alert("invalid e-mail Format");document.complainForm.emailFrom.focus();return false;}
pos2=s.indexOf('.',1);if((pos2==-1)||(pos2==(s.length-1))){alert("invalid e-mail Format");document.complainForm.emailFrom.focus();return false;}
if(document.complainForm.note.value==""){alert("Note required !!");document.complainForm.note.focus();return false;}}
function advertiserForm(){var telStatus=false;if(document.contactAdvertiser.name.value==""){alert("Name required !!");document.contactAdvertiser.name.focus();return false;}
var s=document.contactAdvertiser.emailFrom.value;if(s==""){alert("e-mail address required !!");document.contactAdvertiser.emailFrom.focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1))){alert("invalid e-mail Format");document.contactAdvertiser.emailFrom.focus();return false;}
pos2=s.indexOf('.',1);if((pos2==-1)||(pos2==(s.length-1))){alert("invalid e-mail Format");document.contactAdvertiser.emailFrom.focus();return false;}
if((document.contactAdvertiser.tel.value=="")){alert("tel number required !!");document.contactAdvertiser.tel.focus();return false;}
if(document.contactAdvertiser.note.value==""){alert("Note required !!");document.contactAdvertiser.note.focus();return false;}}
function guestInserationV(){if(document.guestInseration.guestFname.value==""){alert("First name required !!");document.guestInseration.guestFname.focus();return false;}
if(document.guestInseration.guestLname.value==""){alert("Last name required !!");document.guestInseration.guestLname.focus();return false;}
if(document.guestInseration.guestAdress.value==""){alert("Address required !!");document.guestInseration.guestAdress.focus();return false;}
if(document.guestInseration.guestCity.value==""){alert("City required !!");document.guestInseration.guestCity.focus();return false;}
if(document.guestInseration.guestCountry.value==""){alert("Country required !!");document.guestInseration.guestCountry.focus();return false;}
if(document.guestInseration.guestState.value==""){alert("State required !!");document.guestInseration.guestState.focus();return false;}
var s=document.contactAdvertiser.emailFrom.value;if(s==""){alert("e-mail address required !!");document.contactAdvertiser.emailFrom.focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1))){alert("invalid e-mail Format");document.contactAdvertiser.emailFrom.focus();return false;}
pos2=s.indexOf('.',1);if((pos2==-1)||(pos2==(s.length-1))){alert("invalid e-mail Format");document.contactAdvertiser.emailFrom.focus();return false;}
if((document.contactAdvertiser.tel.value=="")||(isNaN(document.contactAdvertiser.tel.valueg))){alert("tel number required !!");document.contactAdvertiser.tel.focus();return false;}
if(document.contactAdvertiser.note.value==""){alert("Note required !!");document.contactAdvertiser.note.focus();return false;}}
function beMemberValidate()
{if(document.getElementById("mUserName").value==""){alert("Usen Name required !! ");document.getElementById("mUserName").focus();return false;}
if(document.getElementById("mpassword").value==""){alert("Password required !! ");document.getElementById("mpassword").focus();return false;}
if(document.getElementById("mvpassword").value==""){alert("Re-Password required !! ");document.getElementById("mvpassword").focus();return false;}
if(document.getElementById("mvpassword").value!=document.getElementById("mpassword").value){alert("Password Not correct !! ");document.getElementById("mvpassword").focus();return false;}
styleObj=document.getElementById("terms");if(styleObj.checked==false){alert("Accept the Terms requird !");return false;}
return true;}
function retrieveAdsCountry(url,n){if(window.XMLHttpRequest){req=new XMLHttpRequest();req.onreadystatechange=processStateAdsCountry;num=n;try{req.open("GET",url,true);}catch(e){alert(e);}
req.send(null);}else if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP");if(req){req.onreadystatechange=processStateAdsCountry;num=n;req.open("GET",url,true);req.send();}}}
function processStateAdsCountry(){if(req.readyState==4){if(req.status==200){document.getElementById("adsCountryByRegion").innerHTML=req.responseText;}else{alert("Problem: "+req.statusText);}}}
function getCity(val){var getTdPos=document.getElementById("stateId");if(val=="USA"){getTdPos.innerHTML="<select name='visitor.state2' class='width_220' id='vState2' onBlur='updatevstate(this.value)'>"
+"<option value='0' selected>--Please Select--</option>"
+"<option value='Alabama'>Alabama</option>"
+"<option value='Alaska'>Alaska</option>"
+"<option value='Arizona'>Arizona</option>"
+"<option value='Arkansas'>Arkansas</option>"
+"<option value='California'>California</option>"
+"<option value='Colorado'>Colorado</option>"
+"<option value='Connecticut'>Connecticut</option>"
+"<option value='Delaware'>Delaware</option>"
+"<option value='District of Columbia'>District of Columbia</option>"
+"<option value='Florida'>Florida</option>"
+"<option value='Georgia'>Georgia</option>"
+"<option value='Hawaii'>Hawaii</option>"
+"<option value='Idaho'>Idaho</option>"
+"<option value='Illinois'>Illinois</option>"
+"<option value='Indiana'>Indiana</option>"
+"<option value='Iowa'>Iowa</option>"
+"<option value='Kansas'>Kansas</option>"
+"<option value='Kentucky'>Kentucky</option>"
+"<option value='Louisiana'>Louisiana</option>"
+"<option value='Maine'>Maine</option>"
+"<option value='Maryland'>Maryland</option>"
+"<option value='Massachusetts'>"
+"Massachusetts</option>"
+"<option value='Michigan'>Michigan</option>"
+"<option value='Minnesota'>Minnesota</option>"
+"<option value='Mississippi'>Mississippi</option>"
+"<option value='Missouri'>Missouri</option>"
+"<option value='Montana'>Montana</option>"
+"<option value='Nebraska'>Nebraska</option>"
+"<option value='Nevada'>Nevada</option>"
+"<option value='New Hampshire'>"
+"New Hampshire</option>"
+"<option value='New Jersey'>New Jersey</option>"
+"<option value='New Mexico'>New Mexico</option>"
+"<option value='New York'>New York</option>"
+"<option value='North Carolina'>"
+"North Carolina</option>"
+"<option value='North Dakota'>"
+"North Dakota</option>"
+"<option value='Ohio'>Ohio</option>"
+"<option value='Oklahoma'>Oklahoma</option>"
+"<option value='Oregon'>Oregon</option>"
+"<option value='Pennsylvania'>"
+"Pennsylvania</option>"
+"<option value='Rhode Island'>"
+"Rhode Island</option>"
+"<option value='South Carolina'>"
+"South Carolina</option>"
+"<option value='South Dakota'>"
+"South Dakota</option>"
+"<option value='Tennessee'>"
+"Tennessee</option>"
+"<option value='Texas'>Texas</option>"
+"<option value='Utah'>Utah</option>"
+"<option value='Vermont'>Vermont</option>"
+"<option value='Virginia'>Virginia</option>"
+"<option value='Washington'>Washington</option>"
+"<option value='West Virginia'>"
+"West Virginia</option>"
+"<option value='Wisconsin'>Wisconsin</option>"
+"<option value='Wyoming'>Wyoming</option>"
+"</select></td></tr></table>";var stateTxt=document.getElementById("stateTxT");var zipTxT=document.getElementById("zipTxT");stateTxt.innerHTML="State/Provence <!--<span class='obligatoryToFill'>*</span>-->";zipTxT.innerHTML="Zip <!--<span class='obligatoryToFill'>*</span>-->";}else{getTdPos.innerHTML="<input name='visitor.state2' class='mp_width2' type='text' id='vState2' onBlur='updatevstate(this.value)' />";var stateTxt=document.getElementById("stateTxT");var zipTxT=document.getElementById("zipTxT");stateTxt.innerHTML="State/Provence ";zipTxT.innerHTML="Zip";}}
function updateCity(stateVal){var cityVal=document.getElementById("vCountry").value;}
function updateCity2(stateVal){var cityVal=document.getElementById("vCountry").value;var getTdPos=document.getElementById("stateId");if(cityVal=="USA"){getTdPos.innerHTML="<select name='visitor.state2' class='width_220' id='vState2' onBlur='updatevstate(this.value)'>"
+"<option value='0' selected>--Please Select--</option>"
+"<option value='Alabama'>Alabama</option>"
+"<option value='Alaska'>Alaska</option>"
+"<option value='Arizona'>Arizona</option>"
+"<option value='Arkansas'>Arkansas</option>"
+"<option value='California'>California</option>"
+"<option value='Colorado'>Colorado</option>"
+"<option value='Connecticut'>Connecticut</option>"
+"<option value='Delaware'>Delaware</option>"
+"<option value='Florida'>Florida</option>"
+"<option value='Georgia'>Georgia</option>"
+"<option value='Hawaii'>Hawaii</option>"
+"<option value='Idaho'>Idaho</option>"
+"<option value='Illinois'>Illinois</option>"
+"<option value='Indiana'>Indiana</option>"
+"<option value='Iowa'>Iowa</option>"
+"<option value='Kansas'>Kansas</option>"
+"<option value='Kentucky'>Kentucky</option>"
+"<option value='Louisiana'>Louisiana</option>"
+"<option value='Maine'>Maine</option>"
+"<option value='Maryland'>Maryland</option>"
+"<option value='Massachusetts'>"
+"Massachusetts</option>"
+"<option value='Michigan'>Michigan</option>"
+"<option value='Minnesota'>Minnesota</option>"
+"<option value='Mississippi'>Mississippi</option>"
+"<option value='Missouri'>Missouri</option>"
+"<option value='Montana'>Montana</option>"
+"<option value='Nebraska'>Nebraska</option>"
+"<option value='Nevada'>Nevada</option>"
+"<option value='New Hampshire'>"
+"New Hampshire</option>"
+"<option value='New Jersey'>New Jersey</option>"
+"<option value='New Mexico'>New Mexico</option>"
+"<option value='New York'>New York</option>"
+"<option value='North Carolina'>"
+"North Carolina</option>"
+"<option value='North Dakota'>"
+"North Dakota</option>"
+"<option value='Ohio'>Ohio</option>"
+"<option value='Oklahoma'>Oklahoma</option>"
+"<option value='Oregon'>Oregon</option>"
+"<option value='Pennsylvania'>"
+"Pennsylvania</option>"
+"<option value='Rhode Island'>"
+"Rhode Island</option>"
+"<option value='South Carolina'>"
+"South Carolina</option>"
+"<option value='South Dakota'>"
+"South Dakota</option>"
+"<option value='Tennessee'>"
+"Tennessee</option>"
+"<option value='Texas'>Texas</option>"
+"<option value='Utah'>Utah</option>"
+"<option value='Vermont'>Vermont</option>"
+"<option value='Virginia'>Virginia</option>"
+"<option value='Washington'>Washington</option>"
+"<option value='West Virginia'>"
+"West Virginia</option>"
+"<option value='Wisconsin'>Wisconsin</option>"
+"<option value='Wyoming'>Wyoming</option>"
+"</select></td></tr></table>";var selectObj=document.getElementById("vState2");var selectLength=document.getElementById("vState2").options.length;for(var i=0;i<selectLength;i++){if(selectObj.options[i].value==stateVal){selectObj.options.selectedIndex=i;break;}}}else{getTdPos.innerHTML="<input name='visitor.state' class='mp_width2' type='text' id='vState2' value='"
+stateVal+"' onBlur='updatevstate(this.value)' />";}
document.getElementById("vState").value=document.getElementById("vState2").value;}
function chkAdPostion(val){if(document.placeAd.chkadPosition.value=="m"){if(val==1){adaVal=confirm("ara You sure want to change Your Top Ad To Normal Ad  ");if(adaVal==false){document.placeAd.adPosition.value=2;}}}}
function placeAdSignInChk(){signObj=document.getElementById("signIn");usernameObj=document.getElementById("mUserName");passObj=document.getElementById("mpassword");vpassObj=document.getElementById("mvpassword");if(signObj.checked==true){usernameObj.disabled=false;passObj.disabled=false;vpassObj.disabled=false;}else{usernameObj.disabled=true;passObj.disabled=true;vpassObj.disabled=true;}}
function updateModelsVal(val){var model=document.getElementById("model");model.value=val;}
function updateConditionVal(val){document.getElementById("condition").value=val;}
function updatevstate(val){document.getElementById("vState").value=document.getElementById("vState2").value;}
function updatepass(val){document.getElementById("passwordVal").value=val}
function updateuser(val){document.getElementById("userNameVal").value=val}
function updateCounryVal(val){document.getElementById("adsCountry").value=val}
function chkOfferdType(val){if(val=="5"||val=="6"||val=="3"){document.getElementById("price").disabled=true;}else{document.getElementById("price").disabled=false;}}
