var ns=(window.navigator.appName.toLowerCase()=="netscape");var ie=(window.navigator.appName.toLowerCase()=="microsoft internet explorer");var agt=navigator.userAgent.toLowerCase();var is_major=parseInt(navigator.appVersion);var is_ie5=(ie&&(is_major==4)&&(agt.indexOf("msie 5")!=-1));var is_ie4up=(ie&&(is_major>=4));var is_ns5up=(ns&&(is_major>=5));var is_mac=(agt.indexOf("mac")!=-1);var clid;var image_list=new Array;var image_list_next=new Array;var icon_list=new Array;var img_length;var image;var img1;var img2;var img3;var img4;var place;var pcat;var plsid;var Search="";var Map_Lsid;var Rcategory;var Rcategory1;var Rcategory2;var Rcategory3;var Rsubcategory;var Rsubcategory1;var Rsubcategory2;var Rsubcategory3;var tout=0;var tout1=0;var tout2=0;var iv=5;var t1,t2,t3,ts1,ts2,ts3;function close_this(){document.getElementById("list_me").style.display="none"}function checkit(){if(request.readyState==4){if(request.status==200){}}}function forgot_password(A){if(document.getElementById("email_change").value==""){alert("Please Enter Your Email Id.");return }show_loader();request.open("GET",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=function(){if(request.readyState==4){if(request.status==200){if(request.responseText==1){check_myaccount("myaccount/myreviews.php?sel_menu=2&from=forgot&msg="+escape("A Message Has Been Sent to Your MailID")+"&limit="+limit)}else{check_myaccount("myaccount/myreviews.php?sel_menu=2&from=forgot&msg="+escape("Invalid Email")+"&limit="+limit)}hide_loader()}}};request.send(null)}function change_cars_search(C,B){ddcategory=C;ddsubcategory=B;any_remove("search_area");if(ddcategory=="Autos"&&ddsubcategory=="Cars"){var A="car_search.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}else{if(ddcategory=="Electronics"){if(ddsubcategory=="Cameras"){var A="camera_search.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}else{if(ddsubcategory=="Television"){var A="tv_search.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}else{if(ddsubcategory=="VCD/DVD Players"){var A="player_search.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}}}}else{if(ddcategory=="Movies,Games"){if(ddsubcategory=="Movies"){var A="movies_Cd_search.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}else{if(ddsubcategory=="Music"){var A="music_Cd_search.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}else{if(ddsubcategory=="Games"){var A="games_search.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}}}}else{if(ddsubcategory=="Carpool"){var A="carpool_Search.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}}}}request1.onreadystatechange=updateDD;request1.send(A)}function updateDD(){if(request1.readyState==4){if(request1.status==200){var A=document.getElementById("search_area");A.innerHTML=request1.responseText}}}function returnText(A,B){if(document.getElementById(A).value==""){document.getElementById(A).value=B}}function cleartext(A){document.getElementById(A).value=""}function SearchOnEnter(B){var A;if(!B){var B=window.event}if(B.keyCode){A=B.keyCode}else{if(B.which){A=B.which}}if(A==13){var C=document.getElementById("normal_search_text").value;if(C==""){alert("Enter Search String")}else{get_searched_listing_paging(C)}}}function get_searched_listing_paging(M){document.getElementById("myMarketPlace").style.display="block";document.getElementById("myaccount_here").style.display="none";if(M==""){alert("Enter Search String")}else{show_loader();limit=0;pages=0;previous=0;var X;var B;if(document.getElementById("car_name")&&document.getElementById("car_name")){Search="Cars";var S=document.getElementById("car_name").value;var P=document.getElementById("car_price").value;var H="uploading/give_car_search.php";request.open("POST",H,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(S!="Select Car"&&P!="Select Price"){var F="p_string="+escape(S)+"&price="+escape(P)+"&limit="+escape(limit);B="~search="+Search+"&p_string="+S+"&price="+P+"&limit="+limit}else{if(S!="Select Car"&&P=="Select Price"){var F="p_string="+escape(S)+"&limit="+escape(limit);B="~search="+Search+"&p_string="+S+"&limit="+limit}else{if(S=="Select Car"&&P!="Select Price"){var F="price="+escape(P)+"&limit="+escape(limit);B="~search="+Search+"&price="+P+"&limit="+limit}}}}else{if(document.getElementById("digi_brand")&&document.getElementById("digi_mp")&&document.getElementById("digi_type")){X="give_search_digi_paging";Search="Cameras";var L=document.getElementById("digi_brand").value;var Q=document.getElementById("digi_mp").value;var A=document.getElementById("digi_type").value;var H="uploading/give_search_digi.php";request.open("POST",H,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(L!="Select Brand"&&Q!="Select by Megapixels"&&A!="Select Type"){var F="search="+escape(Search)+"&brand="+escape(L)+"&mp="+escape(Q)+"&type="+escape(A)+"&limit="+escape(limit);B="?search="+Search+"&brand="+L+"&mp="+Q+"&type="+A+"&limit="+limit}else{if(L!="Select Brand"&&Q!="Select by Megapixels"&&A=="Select Type"){var F="search="+escape(Search)+"&brand="+escape(L)+"&mp="+escape(Q)+"&limit="+escape(limit);B="?search="+Search+"&brand="+L+"&mp="+Q+"&limit="+limit}else{if(L!="Select Brand"&&Q=="Select by Megapixels"&&A!="Select Type"){var F="search="+escape(Search)+"&brand="+escape(L)+"&type="+escape(A)+"&limit="+escape(limit);B="?search="+Search+"&brand="+L+"&type="+A+"&limit="+limit}else{if(L=="Select Brand"&&Q!="Select by Megapixels"&&A!="Select Type"){var F="search="+escape(Search)+"&mp="+escape(Q)+"&type="+escape(A)+"&limit="+escape(limit);B="?search="+Search+"&mp="+Q+"&type="+A+"&limit="+limit}else{if(L!="Select Brand"&&Q=="Select by Megapixels"&&A=="Select Type"){var F="search="+escape(Search)+"&brand="+escape(L)+"&limit="+escape(limit);B="?search="+Search+"&brand="+L+"&limit="+limit}else{if(L=="Select Brand"&&Q!="Select by Megapixels"&&A=="Select Type"){var F="search="+escape(Search)+"&mp="+escape(Q)+"&limit="+escape(limit);B=H+"?search="+Search+"&mp="+Q+"&limit="+limit}else{if(L=="Select Brand"&&Q=="Select by Megapixels"&&A!="Select Type"){var F="search="+escape(Search)+"&type="+escape(A)+"&limit="+escape(limit);B="?search="+Search+"&type="+A+"&limit="+limit}}}}}}}}else{if(document.getElementById("tv_type")&&document.getElementById("tv_size")&&document.getElementById("type")){Search="Televisions";var M=document.getElementById("search_area");var T=document.getElementById("tv_type").value;var G=document.getElementById("tv_size").value;var D=document.getElementById("type").value;var H="uploading/give_search_tv.php";request.open("POST",H,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(T!="Select TV Type"&&G!="Select Size"&&D!="Select Type"){var F="search="+escape(Search)+"&tv_type="+escape(T)+"&tv_size="+escape(G)+"&type="+escape(D)+"&limit="+escape(limit);B="~search="+Search+"&tv_type="+T+"&tv_size="+G+"&type="+D+"&limit="+limit}else{if(T=="Select TV Type"&&G!="Select Size"&&D!="Select Type"){var F="search="+escape(Search)+"&tv_size="+escape(G)+"&type="+escape(D)+"&limit="+escape(limit);B="~search="+Search+"&tv_size="+G+"&type="+D+"&limit="+limit}else{if(T!="Select TV Type"&&G=="Select Size"&&D!="Select Type"){var F="search="+escape(Search)+"&tv_type="+escape(T)+"&type="+escape(D)+"&limit="+escape(limit);B="~search="+Search+"&tv_type="+T+"&type="+D+"&limit="+limit}else{if(T!="Select TV Type"&&G!="Select Size"&&D=="Select Type"){var F="search="+escape(Search)+"&tv_type="+escape(T)+"&tv_size="+escape(G)+"&limit="+escape(limit);B="~search="+Search+"&tv_type="+T+"&tv_size="+G+"&limit="+limit}else{if(T!="Select TV Type"&&G=="Select Size"&&D=="Select Type"){var F="search="+escape(Search)+"&tv_type="+escape(T)+"&limit="+escape(limit);B="~search="+Search+"&tv_type="+T+"&limit="+limit}else{if(T=="Select TV Type"&&G!="Select Size"&&D=="Select Type"){var F="search="+escape(Search)+"&tv_size="+escape(G)+"&limit="+escape(limit);B="~search="+Search+"&tv_size="+G+"&limit="+limit}else{if(T=="Select TV Type"&&G=="Select Size"&&D!="Select Type"){var F="search="+escape(Search)+"&type="+escape(D)+"&limit="+escape(limit);B="~search="+Search+"&type="+D+"&limit="+limit}}}}}}}}else{if(document.getElementById("player_brand")&&document.getElementById("player_price")&&document.getElementById("player_type")){Search="Players";var Y=document.getElementById("player_brand").value;var E=document.getElementById("player_price").value;var N=document.getElementById("player_type").value;var H="uploading/give_search_player.php";request.open("POST",H,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(Y!="Select Brand"&&E!="Select Price"&&N!="Select Type"){var F="search="+escape(Search)+"&player_brand="+escape(Y)+"&player_price="+escape(E)+"&player_type="+escape(N)+"&limit="+escape(limit);B="~search="+Search+"&player_brand="+Y+"&player_price="+E+"&player_type="+N+"&limit="+limit}else{if(Y=="Select Brand"&&E!="Select Price"&&N!="Select Type"){var F="search="+escape(Search)+"&player_price="+escape(E)+"&player_type="+escape(N)+"&limit="+escape(limit);B="~search="+Search+"&player_price="+E+"&player_type="+N+"&limit="+limit}else{if(Y!="Select Brand"&&E=="Select Price"&&N!="Select Type"){var F="search="+escape(Search)+"&player_brand="+escape(Y)+"&player_type="+escape(N)+"&limit="+escape(limit);B="~search="+Search+"&player_brand="+Y+"&player_type="+N+"&limit="+limit}else{if(Y!="Select Brand"&&E!="Select Price"&&N=="Select Type"){var F="search="+escape(Search)+"&player_brand="+escape(Y)+"&player_price="+escape(E)+"&limit="+escape(limit);B="~search="+Search+"&player_brand="+Y+"&player_price="+E+"&limit="+limit}else{if(Y!="Select Brand"&&E=="Select Price"&&N=="Select Type"){var F="search="+escape(Search)+"&player_brand="+escape(Y)+"&limit="+escape(limit);B="~search="+Search+"&player_brand="+Y+"&limit="+limit}else{if(Y=="Select Brand"&&E!="Select Price"&&N=="Select Type"){var F="search="+escape(Search)+"&player_price="+escape(E)+"&limit="+escape(limit);B="~search="+Search+"&player_price="+E+"&limit="+limit}else{if(Y=="Select Brand"&&E=="Select Price"&&N!="Select Type"){var F="search="+escape(Search)+"&player_type="+escape(N)+"&limit="+escape(limit);B="~search="+Search+"&player_type="+N+"&limit="+limit}}}}}}}}else{if(document.getElementById("movie_search_text")&&document.getElementById("movie_media")){X="give_search_moviecd_paging";category="Movies,GAMES";Search="MoviesCd";var Z=document.getElementById("movie_search_text").value;var W=document.getElementById("movie_media").value;var H="uploading/give_search_cddvd.php";request.open("POST",H,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(Z!=""&&W!="Select Media Type"){var F="search="+escape(Search)+"&movie_search_text="+escape(Z)+"&movie_media="+escape(W)+"&limit="+escape(limit);B="~search="+Search+"&movie_search_text="+Z+"&movie_media="+W+"&limit="+limit}else{if(Z==""&&W!="Select Media Type"){var F="search="+escape(Search)+"&movie_media="+escape(W)+"&limit="+escape(limit);B="~search="+Search+"&movie_media="+W+"&limit="+limit}else{if(Z!=""&&W=="Select Media Type"){var F="search="+escape(Search)+"&movie_search_text="+escape(Z)+"&limit="+escape(limit);B="~search="+Search+"&movie_search_text="+Z+"&limit="+limit}}}}else{if(document.getElementById("music_search_text")&&document.getElementById("movie_media")){X="give_search_moviecd_paging";category="Movies,GAMES";Search="MusicCd";var Z=document.getElementById("music_search_text").value;var W=document.getElementById("movie_media").value;var H="uploading/give_search_cddvd.php";request.open("POST",H,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(Z!=""&&W!="Select Media Type"){var F="search="+escape(Search)+"&movie_search_text="+escape(Z)+"&movie_media="+escape(W)+"&limit="+escape(limit);B="~search="+Search+"&movie_search_text="+Z+"&movie_media="+W+"&limit="+limit}else{if(Z==""&&W!="Select Media Type"){var F="search="+escape(Search)+"&movie_media="+escape(W)+"&limit="+escape(limit);B="~search="+Search+"&movie_media="+W+"&limit="+limit}else{if(Z!=""&&W=="Select Media Type"){var F="search="+escape(Search)+"&movie_search_text="+escape(Z)+"&limit="+escape(limit);B="~search="+Search+"&movie_search_text="+Z}}}}else{if(document.getElementById("games_search_text")&&document.getElementById("games_plat")){X="give_search_moviecd_paging";category="Movies,GAMES";Search="GamesCd";var Z=document.getElementById("games_search_text").value;var W=document.getElementById("games_plat").value;var H="uploading/give_search_cddvd.php";request.open("POST",H,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(Z!=""&&W!="Select Platform"){var F="search="+escape(Search)+"&movie_search_text="+escape(Z)+"&movie_media="+escape(W)+"&limit="+escape(limit);B="~search="+Search+"&movie_search_text="+Z+"&movie_media="+W+"&limit="+limit}else{if(Z==""&&W!="Select Platform"){var F="search="+escape(Search)+"&movie_media="+escape(W)+"&limit="+escape(limit);B="~search="+Search+"&movie_media="+W+"&limit="+limit}else{if(Z!=""&&W=="Select Platform"){var F="search="+escape(Search)+"&movie_search_text="+escape(Z)+"&limit="+escape(limit);B="~search="+Search+"&movie_search_text="+Z+"&limit="+limit}}}}else{if(document.getElementById("from")&&document.getElementById("to")&&document.getElementById("time1")&&document.getElementById("time2")){X="give_search_carpool_paging";Search="Carpool";var O=document.getElementById("from").value;var C=document.getElementById("to").value;var U=document.getElementById("time1").value;var R=document.getElementById("time2").value;var H="uploading/give_search_carpool.php";request.open("POST",H,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(O!="From"&&C!="To"&&U!="Leave(hh:mm am/pm)"&&R!="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&from="+escape(O)+"&to="+escape(C)+"&time1="+escape(U)+"&time2="+escape(R)+"&limit="+escape(limit);B="~search="+Search+"&from="+O+"&to="+C+"&time1="+U+"&time2="+R+"&limit="+limit}else{if(O=="From"&&C!="To"&&U!="Leave(hh:mm am/pm)"&&R!="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&to="+escape(C)+"&time1="+escape(U)+"&time2="+escape(R)+"&limit="+escape(limit);B="~search="+Search+"&to="+C+"&time1="+U+"&time2="+R+"&limit="+limit}else{if(O!="From"&&C=="To"&&U!="Leave(hh:mm am/pm)"&&R!="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&from="+escape(O)+"&time1="+escape(U)+"&time2="+escape(R)+"&limit="+escape(limit);B="~search="+Search+"&from="+O+"&time1="+U+"&time2="+R+"&limit="+limit}else{if(O!="From"&&C!="To"&&U=="Leave(hh:mm am/pm)"&&R!="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&from="+escape(O)+"&to="+escape(C)+"&time2="+escape(R)+"&limit="+escape(limit);B="~search="+Search+"&from="+O+"&to="+C+"&time2="+R+"&limit="+limit}else{if(O!="From"&&C!="To"&&U=="Leave(hh:mm am/pm)"&&R=="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&from="+escape(O)+"&to="+escape(C)+"&limit="+escape(limit);B="~search="+Search+"&from="+O+"&to="+C+"&time1="+U+"&limit="+limit}else{if(O!="From"&&C!="To"&&U!="Leave(hh:mm am/pm)"&&R=="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&from="+escape(O)+"&to="+escape(C)+"&time1="+escape(U)+"&limit="+escape(limit);B="~search="+Search+"&time1="+U+"&time2="+R+"&limit="+limit}else{if(O=="From"&&C=="To"&&U!="Leave(hh:mm am/pm)"&&R!="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&time1="+escape(U)+"&time2="+escape(R)+"&limit="+escape(limit);B="~search="+Search+"&from="+O+"&time2="+R+"&limit="+limit}else{if(O!="From"&&C=="To"&&U=="Leave(hh:mm am/pm)"&&R!="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&from="+escape(O)+"&time2="+escape(R)+"&limit="+escape(limit);B="~search="+Search+"&to="+C+"&time1="+U+"&limit="+limit}else{if(O=="From"&&C!="To"&&U!="Leave(hh:mm am/pm)"&&R=="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&to="+escape(C)+"&time1="+escape(U)+"&limit="+escape(limit);B="~search="+Search+"&from="+O+"&to="+C+"&limit="+limit}else{if(O=="From"&&C=="To"&&U=="Leave(hh:mm am/pm)"&&R!="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&time2="+escape(R)+"&limit="+escape(limit);B="~search="+Search+"&time2="+R+"&limit="+limit}else{if(O!="From"&&C=="To"&&U=="Leave(hh:mm am/pm)"&&R=="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&from="+escape(O)+"&limit="+escape(limit);B="~search="+Search+"&from="+O+"&limit="+limit}else{if(O=="From"&&C!="To"&&U=="Leave(hh:mm am/pm)"&&R=="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&to="+escape(C)+"&limit="+escape(limit);B="~search="+Search+"&to="+C+"&limit="+limit}else{if(O=="From"&&C=="To"&&U!="Leave(hh:mm am/pm)"&&R=="Return(hh:mm am/pm)"){var F="search="+escape(Search)+"&time1="+escape(U)+"&limit="+escape(limit);B="~search="+Search+"&time1="+U+"&limit="+limit}}}}}}}}}}}}}}else{if(document.getElementById("normal_search_text")){X="searchme_paging";Search="General";if(document.getElementById("normal_search_text")!=""){var K=document.getElementById("normal_search_text").value;var I="Select Category";var H="uploading/searchme.php";request.open("POST",H,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(K!=""&&I!="Select Category"){var F="search4="+escape(K)+"&category="+escape(I)+"&limit="+escape(limit);B="~search4="+K+"&category="+I+"&limit="+limit}else{if(I=="Select Category"){var F="search4="+escape(K)+"&limit="+escape(limit);B="~search4="+K+"&limit="+limit}}}}}}}}}}}}var J="section:Classifieds/get_searched_listing_paging/"+M;var V="<p>The following location was loaded from our DHTML history: "+J+"</p>";dhtmlHistory.add(J,V);request.onreadystatechange=update_recent_listings;request.send(F)}}function listing(){if(request2.readyState==4){if(request2.status==200){window.scrollTo(0,0);var A;document.getElementById("recent_listings").innerHTML=request2.responseText;hide_loader();return ;if(jsonData.listings.listing.length==0){alert("No Listings Found");hide_loader();return }else{show_resultsx(jsonData);return }}}}function nextSearch(C,A){previous=A;show_loader();window.scrollTo(0,0);var B="uploading/searchme_paging.php";request.open("POST",B,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=update_recent_listings;var E="search4="+C+"&limit="+A;var D="section:Classifieds/nextSearch/"+C+"/"+A;var F="<p>The following location was loaded from our DHTML history: "+D+"</p>";dhtmlHistory.add(D,F);request.send(E)}function previousSearch(C,A){show_loader();A=(parseInt(A)-1);previous=A;var B="uploading/searchme.php";request2.open("POST",B,true);request2.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request2.onreadystatechange=listing;var E="search4="+C+"&limit="+A;var D="section:Classifieds/previousSearch/"+C+"/"+A;var F="<p>The following location was loaded from our DHTML history: "+D+"</p>";dhtmlHistory.add(D,F);request2.send(E)}function noResults(){var E;var F=document.getElementById("listing_Table");var D=document.createElement("tbody");var C=document.createElement("tr");C.onmouseover=ChangeColor;C.onmouseout=RemoveColor;C.setAttribute("height","50");var B=document.createElement("td");var A=document.createElement("td");B.setAttribute("width","30%");A.setAttribute("width","70%");var H=document.createTextNode("No Listings Found!!!");var G=document.createElement("div");G.style.fontSize="16";G.style.fontWeight="Bold";G.style.color="Green";G.style.align="Center";G.appendChild(H);A.appendChild(G);C.appendChild(B);C.appendChild(A);D.appendChild(C);F.appendChild(D);overlayHide()}function unsetSession(){var A="uploading/clear_listing_sessionvars.php";request2.open("GET",A,true);request2.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request2.onreadystatechange=updateSession;request2.send(null)}function updateSession(){if(request2.readyState==4){if(request2.status==200){var A=request2.responseText;if(A=="1"){}else{if(A=="0"){}}}}}function ChangeColorx(A){A.style.backgroundColor="#ffffff"}function RemoveColorx(A){A.style.backgroundColor="white"}function ChangeColor(){this.style.backgroundColor="#ffffff"}function RemoveColor(){this.style.backgroundColor="white"}function Remove(){var A=document.getElementById("listing_Table");while(A.hasChildNodes()){var B=A.firstChild;A.removeChild(B)}}function _setStyle(element,declaration){if(declaration.charAt(declaration.length-1)==";"){declaration=declaration.slice(0,-1)}var k,v;var splitted=declaration.split(";");for(var i=0,len=splitted.length;i<len;i++){k=rzCC(splitted[i].split(":")[0]);v=splitted[i].split(":")[1];eval("element.style."+k+"='"+v+"'")}}function get_image_map(C){image_list1.length=0;var B=C;var A="uploading/prp_image.php";request2.open("POST",A,true);request2.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request2.onreadystatechange=update_images_map;url1="clid="+escape(B);request2.send(url1)}var image_list1=new Array();function update_images_map(){if(request2.readyState==4){if(request2.status==200){var jsonData=eval("("+request2.responseText+")");for(var i=0;i<jsonData.image.image_list.length;i++){var slash=new String(jsonData.image.image_list[i].filename);var index_s=slash.lastIndexOf("/");index_s++;var len=slash.length;var image_name=slash.substring(index_s,len);image_list1[i]="../upload/"+image_name}if(image_list1.length==4||image_list1.length>4){img1=image_list1[0];img2=image_list1[1];img3=image_list1[2];img4=image_list1[3]}else{if(image_list1.length==3){img1=image_list1[0];img2=image_list1[1];img3=image_list1[2]}else{if(image_list1.length==2){img1=image_list1[0];img2=image_list1[1]}else{if(image_list1.length==1){img1=image_list1[0]}}}}if(img1){var main_img=document.getElementById("main_image");main_img.setAttribute("src",img1);main_img.setAttribute("width","360");if(image_list1.length==1){main_img.setAttribute("height","220");document.getElementById("show_thmb").style.display="none"}else{main_img.setAttribute("height","170");document.getElementById("show_thmb").style.display="block"}}if(img2){var thmb_img1=document.getElementById("thumbnail1");thmb_img1.setAttribute("src",img2);thmb_img1.setAttribute("width","75");thmb_img1.setAttribute("height","53")}if(img3){var thmb_img2=document.getElementById("thumbnail2");thmb_img2.setAttribute("src",img3);thmb_img2.setAttribute("width","75");thmb_img2.setAttribute("height","53")}if(img4){var thmb_img3=document.getElementById("thumbnail3");thmb_img3.setAttribute("src",img4);thmb_img3.setAttribute("width","75");thmb_img3.setAttribute("height","53")}}}}function get_pics(){document.getElementById("map").style.display="none";document.getElementById("map").style.visibility="hidden";document.getElementById("photo").style.display="block";document.getElementById("photo").style.visibility="visible"}function get_map(){document.getElementById("map").style.display="block";document.getElementById("photo").style.display="none";document.getElementById("map").style.visibility="visible";document.getElementById("photo").style.visibility="hidden"}function close_gallery(){var D=document.getElementById("gallery");while(D.hasChildNodes()){var E=D.firstChild;D.removeChild(E)}var A=getPageSize();var C=document.getElementById("overlay");C.style.height=(A[1]+"px");C.style.display="none";var B=document.getElementById("overlayiframe");B.style.height=(A[1]+"px");B.style.display="none";document.getElementById("gallery").style.display="none"}function get_gallery(D){var E=D;var A=getPageSize();var C=document.getElementById("overlay");C.style.height=(A[1]+"px");C.style.display="block";C.style.zIndex=16;C.style.opacity=0.6;var B=document.getElementById("overlayiframe");B.style.height=(A[1]+"px");B.style.display="block";B.style.zIndex=32;B.style.opacity=0.6;getwindowdims();s_x=getpagescrollx();s_y=getpagescrolly();if(ie){startx=s_x+((w_x/2)-(200));starty=s_y+((w_y/2)-(440))}else{startx=s_x+((w_x/2)-(443/2));starty=s_y+((w_y/2)-(220))}scroll(0,0);get_content(E)}function get_content(C){image_list.length=0;image_list_next.length=0;icon_list.length=0;img_length=0;var B=document.getElementById("list_title");var D=B.innerHTML;var A="uploading/prp_image.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=update_gallery_ceontent;url1="clid="+escape(C)+"&name="+escape(D);request.send(url1)}function update_gallery_ceontent(){if(request.readyState==4){if(request.status==200){var jsonData=eval("("+request.responseText+")");market_remove("myAccount_inner_div");var inner=document.getElementById("myAccount_inner_div");var outer=document.getElementById("myAccount_outer_div");inner.style.display="block";inner.style.width="640px";outer.style.display="block";outer.style.height="510px";outer.style.width="660px";inner.style.background="#ffffff";windowIsActive="MyAccount";testT();var titleDiv=document.getElementById("list_title");var title=document.createTextNode(jsonData.image.name);var dis_gal=inner;var table_img_gal=document.createElement("table");var tbody_img_gal=document.createElement("tbody");table_img_gal.setAttribute("cellspacing","0");table_img_gal.setAttribute("cellpadding","3");table_img_gal.setAttribute("width","100%");table_img_gal.setAttribute("border","0");var tr_close=document.createElement("tr");var td_close=document.createElement("td");td_close.colSpan=3;td_close.setAttribute("align","right");td_close.setAttribute("height","20px");var a_close=document.createElement("a");a_close.setAttribute("href","javascript:closeMarketWindow()");a_close.style.color="#ffffff";var img_close=document.createElement("img");img_close.setAttribute("id","close");img_close.setAttribute("src","images/close.jpg");img_close.setAttribute("height","15");img_close.setAttribute("width","15");a_close.appendChild(img_close);td_close.appendChild(a_close);tr_close.appendChild(td_close);tbody_img_gal.appendChild(tr_close);var tr_logo=document.createElement("tr");var td_logo=document.createElement("td");var td_gallogo=document.createElement("td");var td_title=document.createElement("td");td_logo.setAttribute("width","35%");td_gallogo.setAttribute("width","20%");td_title.setAttribute("width","45%");td_logo.setAttribute("align","left");var img_logo=document.createElement("img");img_logo.setAttribute("id","logo");img_logo.setAttribute("src","http://www.mid-day.com/images/middaylogo.gif");td_logo.appendChild(img_logo);tr_logo.appendChild(td_logo);var overview_a_font=document.createElement("font");overview_a_font.style.fontFamily="Courier New, Courier, monospace";overview_a_font.style.fontSize="14pt";overview_a_font.style.fontWeight="bold";overview_a_font.style.fontStyle="oblique";overview_a_font.style.color="green";var pois1=document.createTextNode("Gallery  ");overview_a_font.appendChild(pois1);var u=document.createElement("u");var title_font=document.createElement("font");title_font.style.fontFamily="Verdana, Arial, Helvetica, sans-seri";title_font.style.fontSize="18pt";title_font.style.fontWeight="bold";title_font.style.color="#000000";title_font.setAttribute("text-decoration","underline");title_font.appendChild(title);u.appendChild(title_font);td_title.appendChild(u);tr_logo.appendChild(td_title);tbody_img_gal.appendChild(tr_logo);var tr_gal_main_tab=document.createElement("tr");var td_gal_main_tab=document.createElement("td");for(var k=0;k<jsonData.image.image_list.length;k++){var slash=new String(jsonData.image.image_list[k].filename);if(slash.lastIndexOf("/")){var index_s=slash.lastIndexOf("/");index_s++;var len=slash.length;var image_name=slash.substring(index_s,len)}else{var image_name=jsonData.image.image_list[k].filename}var slashI=new String(jsonData.image.image_list[k].icon);if(slashI.lastIndexOf("/")){var index_sI=slashI.lastIndexOf("/");index_sI++;var lenI=slashI.length;var image_nameI=slashI.substring(index_sI,lenI)}else{var image_nameI=jsonData.image.image_list[k].icon}image_list[k]="../"+jsonData.image.image_list[k].directory+"/"+jsonData.image.image_list[k].filename;icon_list[k]="../"+jsonData.image.image_list[k].directory+"/"+jsonData.image.image_list[k].filename}var mlen=image_list.length;if(mlen>4){mlen=4}else{mlen=image_list.length}var table_img_gal_thmb=document.createElement("table");var tbody_img_gal_thmb=document.createElement("tbody");table_img_gal_thmb.setAttribute("align","center");table_img_gal_thmb.setAttribute("border","0");table_img_gal_thmb.setAttribute("cellspacing","10");table_img_gal_thmb.setAttribute("cellpadding","3");var tr_gal=document.createElement("tr");for(var i=0;i<mlen;i++){var td_gal=document.createElement("td");td_gal.setAttribute("align","center");var a_img=document.createElement("a");a_img.setAttribute("href","javascript:show_me("+i+")");a_img.style.color="#fff";var img_gal_thmb=document.createElement("img");img_gal_thmb.setAttribute("id",i);img_gal_thmb.setAttribute("src",image_list[i]);img_gal_thmb.setAttribute("height","80");img_gal_thmb.setAttribute("width","90");a_img.appendChild(img_gal_thmb);td_gal.appendChild(a_img);tr_gal.appendChild(td_gal)}tbody_img_gal_thmb.appendChild(tr_gal);table_img_gal_thmb.appendChild(tbody_img_gal_thmb);var td_gal_main=document.createElement("td");td_gal_main.style.borderLeft="2px solid #447dc0";td_gal_main.style.borderRight="2px solid #447dc0";td_gal_main.style.borderBottom="2px solid #447dc0";td_gal_main.style.borderTop="2px solid #447dc0";var div_gal_main=document.createElement("div");div_gal_main.className="float_no";div_gal_main.setAttribute("align","center");td_gal_main.setAttribute("align","center");div_gal_main.setAttribute("id","zoomDiv");var temp=createDiv("../"+jsonData.image.image_list[0].directory+"/"+image_list[0]);td_gal_main.colSpan=2;div_gal_main.appendChild(temp);td_gal_main.appendChild(div_gal_main);tr_gal_main_tab.appendChild(td_gal_main);tbody_img_gal.appendChild(tr_gal_main_tab);var tr_Thumb=document.createElement("tr");var td_Thumb=document.createElement("td");td_Thumb.colSpan=2;td_Thumb.setAttribute("align","center");var tableT=document.createElement("table");var tbodyT=document.createElement("tbody");var trT=document.createElement("tr");var tdT1=document.createElement("td");var tdT2=document.createElement("td");var tdT3=document.createElement("td");tdT2.setAttribute("id","change_imgs");tdT2.appendChild(table_img_gal_thmb);var tr_up=document.createElement("tr");var td_up=document.createElement("td");if(jsonData.image.image_list.length>"4"){td_up.setAttribute("id","this_td");td_up.setAttribute("align","center");td_up.setAttribute("height","15px");td_up.style.visibility="hidden";var a_up=document.createElement("a");a_up.setAttribute("href","javascript:move_up("+jsonData.image.image_list.length+")");a_up.style.color="#fff";var img_up=document.createElement("img");img_up.setAttribute("id","up");img_up.setAttribute("src","images/icon_left.jpg");img_up.setAttribute("height","25");img_up.setAttribute("width","25");a_up.appendChild(img_up);td_up.appendChild(a_up)}var tr_dwn=document.createElement("tr");var td_dwn=document.createElement("td");if(jsonData.image.image_list.length>4){td_dwn.style.visibility="visible";td_dwn.setAttribute("align","center");td_dwn.setAttribute("height","15px");var a_dwn=document.createElement("a");a_dwn.setAttribute("href","javascript:move_down("+jsonData.image.image_list.length+")");a_dwn.style.color="#fff";var img_dwn=document.createElement("img");img_dwn.setAttribute("id","down");img_dwn.setAttribute("src","images/icon_right.jpg");img_dwn.setAttribute("height","25");img_dwn.setAttribute("width","25");a_dwn.appendChild(img_dwn);td_dwn.appendChild(a_dwn)}trT.appendChild(td_up);trT.appendChild(tdT2);trT.appendChild(td_dwn);tbodyT.appendChild(trT);tableT.appendChild(tbodyT);td_Thumb.appendChild(tableT);tr_Thumb.appendChild(td_Thumb);tbody_img_gal.appendChild(tr_Thumb);table_img_gal.appendChild(tbody_img_gal);dis_gal.appendChild(table_img_gal)}}}function show_me(C){var B=C;var A=document.getElementById("showme");A.setAttribute("src",image_list[B]);A.setAttribute("width","280");A.setAttribute("height","270")}function get_Images_Review(A,C){document.getElementById("overlayiframe").style.display="block";document.getElementById("overlay").style.display="block";image_list.length=0;image_list_next.length=0;icon_list.length=0;img_length=0;var B="uploading/get_Images_Review.php";request.open("POST",B,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=update_gallery_ceontent;url1="pid="+escape(A)+"&name="+escape(C);request.send(url1)}function get_gallery_contents(B){var A="uploading/gallery.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=update_gallery;url1="lsid="+escape(B);request.send(url1)}function update_gallery(){if(request.readyState==4){if(request.status==200){document.getElementById("gallery").innerHTML=request.responseText}}}function getPageSize(){var C,A;if(window.innerHeight&&window.scrollMaxY){C=document.body.scrollWidth;A=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){C=document.body.scrollWidth;A=document.body.scrollHeight}else{C=document.body.offsetWidth;A=document.body.offsetHeight}}var B,D;if(self.innerHeight){B=self.innerWidth;D=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientWidth;D=document.documentElement.clientHeight}else{if(document.body){B=document.body.clientWidth;D=document.body.clientHeight}}}if(A<D){pageHeight=D}else{pageHeight=A}pageHeight+=270;if(C<B){pageWidth=B}else{pageWidth=C}arrayPageSize=new Array(pageWidth,pageHeight,B,D);return arrayPageSize}function createDiv(C){var B=document.createElement("div");B.className="float_no";var A=document.createElement("img");A.setAttribute("id","showme");A.setAttribute("src",C);A.setAttribute("height","270");A.setAttribute("width","280");B.appendChild(A);return(B)}function move_up(){document.getElementById("up").style.visibility="hidden";document.getElementById("down").style.visibility="visible";var E=document.getElementById("change_imgs");while(E.hasChildNodes()){var G=E.firstChild;E.removeChild(G)}var F=document.createElement("table");var C=document.createElement("tbody");F.setAttribute("align","center");var H=document.createElement("tr");for(var D=0;D<4;D++){var A=document.createElement("td");var B=document.createElement("a");B.setAttribute("href","javascript:show_me("+D+")");B.style.color="#fff";var I=document.createElement("img");I.setAttribute("id",D);I.setAttribute("src",icon_list[D]);I.setAttribute("height","80");I.setAttribute("width","90");B.appendChild(I);A.appendChild(B);H.appendChild(A)}C.appendChild(H);F.appendChild(C);E.appendChild(F)}function move_down(B){var K=B;var D=K-4;document.getElementById("up").style.visibility="visible";document.getElementById("down").style.visibility="hidden";var G=document.getElementById("change_imgs");while(G.hasChildNodes()){var I=G.firstChild;G.removeChild(I)}var H=document.createElement("table");var E=document.createElement("tbody");H.setAttribute("align","center");var J=document.createElement("tr");for(var F=D;F<K;F++){var A=document.createElement("td");var C=document.createElement("a");C.setAttribute("href","javascript:show_me("+F+")");C.style.color="#fff";var L=document.createElement("img");L.setAttribute("id",F);L.setAttribute("src",icon_list[F]);L.setAttribute("height","80");L.setAttribute("width","90");C.appendChild(L);A.appendChild(C);J.appendChild(A)}E.appendChild(J);H.appendChild(E);G.appendChild(H)}function getpagescrolly(){if(is_ie4up){return document.body.scrollTop}else{return window.pageYOffset}}function getpagescrollx(){if(is_ie4up){return document.body.scrollLeft}else{return window.pageXOffset}}function getwindowdims(){w_y=(is_ie4up)?document.body.clientHeight:window.innerHeight;w_x=(is_ie4up)?document.body.clientWidth:window.innerWidth}function viewPic(A){picfile=new Image();picfile.src=(A);fileCheck(A)}function fileCheck(A){if((picfile.width!=0)&&(picfile.height!=0)){makeWindow(A)}else{funzione="fileCheck('"+A+"')";intervallo=setTimeout(funzione,50)}}function makeWindow(B){ht=picfile.height+20;wd=picfile.width+20;var D="height="+ht+",innerHeight="+ht;D+=",width="+wd+",innerWidth="+wd;if(window.screen){var F=screen.availHeight;var A=screen.availWidth;var E=(A-wd)/2;var C=(F-ht)/2;D+=",left="+E+",screenX="+E;D+=",top="+C+",screenY="+C+",resizable=yes"}return window.open(B,"",D)}function checkLogin(){var A="uploading/isLoggedin.php";request.open("GET",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateCheckLogin;request.send(null)}function updateCheckLogin(){if(request.readyState==4){if(request.status==200){var A=request.responseText;if(A!=0){var B=request.responseText;getMyaccount()}else{if(A==0){NewLogin("Account")}}}}}function getMyaccount(){any_remove("myaccount_here");var A=document.getElementById("myaccount_here");var B=document.createElement("iframe");B.setAttribute("src","../SnatchKing/My_Account.html");B.setAttribute("height","900px");B.setAttribute("width","100%");B.setAttribute("scrolling","no");B.setAttribute("id","My-Account");B.setAttribute("frameBorder","NO");B.frameBorder="0";A.appendChild(B);hide_loader()}function get_d_reviews(D){var E=document.getElementById("reviews_here");var A=E.getAttribute("class");E.className="null";E.name=D;if(A=="Empty"){var B=E;var C=document.createElement("iframe");C.setAttribute("src","Reviews.php");C.setAttribute("width","1100px");C.setAttribute("scrolling","no");C.setAttribute("name","reviewIframe");C.setAttribute("id","reviewIframe");C.frameBorder=0;B.appendChild(C);overlayShow()}else{if(D="Reviews"){window.frames.reviewIframe.get_latest_reviews()}}return 1}function get_d_reviewsDummy(){any_remove("reviews_here");var A=document.getElementById("reviews_here");var B=document.createElement("iframe");B.setAttribute("src","http://localhost/SnatchKing/reviewsDummy.html");B.setAttribute("height","750px");B.setAttribute("width","100%");B.setAttribute("scrolling","no");B.setAttribute("frameBorder","NO");B.frameBorder="0";A.appendChild(B)}function for_post(A){var B=document.getElementById("apDiv26");if(A>35){B.style.left="734px"}}function post_org(){var A=document.getElementById("apDiv26");A.style.left="583px"}function get_hosp_poi_paging(B,A){plsid=B;next=1;previous=0;pages=0;any_remove("show_poi_info");url="uploading/get_poi_rs_info_paging.php";request.open("POST",url,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateget_poi_hosp_info_paging;url1="place="+escape(place)+"&type="+escape(A)+"&lsid="+escape(plsid);request.send(url1)}function updateget_poi_hosp_info_paging(){if(request.readyState==4){if(request.status==200){pages=request.responseText;any_remove("poi_overview");any_remove("poi_rs");any_remove("poi_hos");var E=document.getElementById("poi_overview");var B=document.createElement("font");B.style.fontFamily="Courier New, Courier, monospace";B.style.fontSize="14pt";B.style.fontWeight="bold";var I=document.createTextNode("Overview");B.appendChild(I);E.appendChild(B);if(pcat=="Properties"){E.setAttribute("href","javascript:get_overview_poi("+plsid+',"Properties")')}else{if(pcat=="Housing"){E.setAttribute("href","javascript:get_overview_poi("+plsid+'),"Housing"')}}var H=document.getElementById("poi_rs");var D=document.createElement("font");D.style.fontFamily="Courier New, Courier, monospace";D.style.fontSize="14pt";D.style.fontWeight="bold";var G=document.createTextNode("Railway Station");D.appendChild(G);H.appendChild(D);if(pcat=="Properties"){H.setAttribute("href","javascript:get_rs_poi_paging("+plsid+',"Railway")')}else{if(pcat=="Housing"){H.setAttribute("href","javascript:get_rs_poi_paging("+plsid+',"Railway")')}}var C=document.getElementById("poi_hos");var A=document.createElement("font");A.style.fontFamily="Courier New, Courier, monospace";A.style.fontSize="14pt";A.style.fontWeight="bold";A.style.color="#447dc0";var F=document.createTextNode("Hospital");A.appendChild(F);C.appendChild(A);if(pcat=="Properties"){C.setAttribute("href","javascript:get_hosp_poi_paging("+plsid+',"Hospital")')}else{if(pcat=="Housing"){C.setAttribute("href","javascript:get_hosp_poi_paging("+plsid+',"Hospital")')}}if(pages>1){get_hosp_poi(plsid,"Hospital",0)}else{document.getElementById("poi_prev").style.display="none";document.getElementById("poi_next").style.display="none";alert("No Info present")}}}}function get_rs_poi_paging(B,A){plsid=B;next=1;previous=0;pages=0;any_remove("show_poi_info");url="uploading/get_poi_rs_info_paging.php";request.open("POST",url,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateget_poi_rs_info_paging;url1="place="+escape(place)+"&type="+escape(A)+"&lsid="+escape(plsid);request.send(url1)}function updateget_poi_rs_info_paging(){if(request.readyState==4){if(request.status==200){pages=request.responseText;any_remove("poi_overview");any_remove("poi_rs");any_remove("poi_hos");var E=document.getElementById("poi_overview");var B=document.createElement("font");B.style.fontFamily="Courier New, Courier, monospace";B.style.fontSize="14pt";B.style.fontWeight="bold";var I=document.createTextNode("Overview");B.appendChild(I);E.appendChild(B);if(pcat=="Properties"){E.setAttribute("href","javascript:get_overview_poi("+plsid+',"Properties")')}else{if(pcat=="Housing"){E.setAttribute("href","javascript:get_overview_poi("+plsid+',"Housing")')}}var H=document.getElementById("poi_rs");var D=document.createElement("font");D.style.fontFamily="Courier New, Courier, monospace";D.style.fontSize="14pt";D.style.fontWeight="bold";D.style.color="#447dc0";var G=document.createTextNode("Railway Station");D.appendChild(G);H.appendChild(D);if(pcat=="Properties"){H.setAttribute("href","javascript:get_rs_poi_paging("+plsid+',"Railway")')}else{if(pcat=="Housing"){H.setAttribute("href","javascript:get_rs_poi("+plsid+',"Railway")')}}var C=document.getElementById("poi_hos");var A=document.createElement("font");A.style.fontFamily="Courier New, Courier, monospace";A.style.fontSize="14pt";A.style.fontWeight="bold";A.style.color="#000000";var F=document.createTextNode("Hospital");A.appendChild(F);C.appendChild(A);if(pcat=="Properties"){C.setAttribute("href","javascript:get_hosp_poi_paging("+plsid+',"Hospital")')}else{if(pcat=="Housing"){C.setAttribute("href","javascript:get_hosp_poi_paging("+plsid+',"Hospital")')}}if(pages>1){get_rs_poi(plsid,"Railway",0)}else{document.getElementById("poi_prev").style.display="none";document.getElementById("poi_next").style.display="none";alert("No Info present")}}}}function Other_Poi_Info(B,A){limit=0;previous=0;pages=0;url="uploading/get_poi_rs_info.php";request.open("POST",url,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateOther_Poi_Info;url1="place="+escape(place)+"&type="+escape(A)+"&lsid="+escape(plsid)+"&limit="+escape(limit);request.send(url1)}function updateOther_Poi_Info(){if(request.readyState==4){if(request.status==200){market_remove("Poi_Info");var tdP2=document.getElementById("Poi_Info");var jsonData=eval("("+request.responseText+")");var len=jsonData.listings.listing.length;if(len>0){var info_table=document.createElement("table");info_table.setAttribute("width","570px");info_table.setAttribute("valign","top");var info_tbody=document.createElement("tbody");for(var i=0;i<len;i++){var tr=document.createElement("tr");var td=document.createElement("td");var poi_font=document.createElement("font");poi_font.style.fontFamily="Verdana, Arial, Helvetica, sans-serif";poi_font.style.fontSize="9pt";var pois=document.createTextNode(jsonData.listings.listing[i].poi_line);var poi_br=document.createElement("br");poi_font.appendChild(pois);td.appendChild(poi_font);tr.appendChild(td);info_tbody.appendChild(tr)}var tr_next=document.createElement("tr");var td_next=document.createElement("td");td_next.colSpan=2;td_next.setAttribute("align","right");pages=jsonData.listings.listing[0].poi_total;if(previous>0&&limit<pages){var prevFont=document.createElement("font");var prev=document.createElement("a");prevFont.className="selectPoi";prev.setAttribute("href",'javascript:Previous_Other_Poi_Info("'+jsonData.listings.listing[0].poi_type+'")');var prevText=document.createTextNode(" << Previous  ");prev.setAttribute("id","prev_latest");prevFont.appendChild(prevText);prev.appendChild(prevFont);td_next.appendChild(prev)}if(limit<pages-1){var nextFont=document.createElement("font");var next=document.createElement("a");nextFont.className="selectPoi";next.setAttribute("href",'javascript:Next_Other_Poi_Info("'+jsonData.listings.listing[0].poi_type+'")');var linkText=document.createTextNode("  Next >> ");next.setAttribute("id","next_latest");nextFont.appendChild(linkText);next.appendChild(nextFont);td_next.appendChild(next)}tr_next.appendChild(td_next);info_table.appendChild(info_tbody);tdP2.appendChild(info_table)}else{var poi_font=document.createElement("font");poi_font.style.fontFamily="Courier New, Courier, monospace";poi_font.style.fontSize="11pt";poi_font.style.fontWeight="bold";var pois=document.createTextNode("No Information Available");poi_font.appendChild(pois);tdP2.appendChild(poi_font)}}}}function Previous_Other_Poi_Info(A){limit=limit-1;previous=limit;url="uploading/get_poi_rs_info.php";request.open("POST",url,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateOther_Poi_Info;url1="place="+escape(place)+"&type="+escape(A)+"&lsid="+escape(plsid)+"&limit="+escape(limit);request.send(url1)}function Next_Other_Poi_Info(A){limit=limit+1;previous=limit;url="uploading/get_poi_rs_info.php";request.open("POST",url,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateOther_Poi_Info;url1="place="+escape(place)+"&type="+escape(A)+"&lsid="+escape(plsid)+"&limit="+escape(limit);request.send(url1)}function get_overview_poi(B,A){show_loader();pcat=A;plsid=B;limit=0;previous=0;pages=0;url="uploading/get_poi_info.php";request.open("POST",url,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=MoreInfoWindow;url1="place="+escape(place)+"&category="+escape(pcat)+"&lsid="+escape(plsid)+"&limit="+escape(limit);request.send(url1)}function MoreInfoWindow(){if(request.readyState==4){if(request.status==200){hide_loader();var jsonData=eval("("+request.responseText+")");OnlyDisable();get_Window_Div_Account(510,750);var inner=document.getElementById("myAccount_inner_div");var table=parent.document.createElement("table");table.setAttribute("border","0");table.setAttribute("width","100%");table.setAttribute("cellsapcing","0");table.setAttribute("cellpadding","0");var tbody=document.createElement("tbody");var trMain1=document.createElement("tr");var tdMain11=document.createElement("td");var tdMain11=document.createElement("td");tdMain11.setAttribute("align","left");tdMain11.setAttribute("vAlign","middle");tdMain11.setAttribute("id","validateAdSpace");tdMain11.className="myAdsValidation";trMain1.appendChild(tdMain11);var tdMain12=document.createElement("td");tdMain12.setAttribute("align","right");tdMain12.setAttribute("vAlign","top");var div_main=document.createElement("span");div_main.setAttribute("id","main_span");tdMain12.appendChild(div_main);trMain1.appendChild(tdMain12);tbody.appendChild(trMain1);table.appendChild(tbody);inner.appendChild(table);var arrayPageSize=getPageSize();var jsonData=eval("("+request.responseText+")");if(jsonData.listings.listing.length>0){windowIsActive=true;market_remove("myAccount_inner_div");var inner=document.getElementById("myAccount_inner_div");var outer=document.getElementById("myAccount_outer_div");outer.style.height="500px";outer.style.width="720px";inner.style.width="700px";inner.style.display="block";outer.style.display="block";var write_review=inner;write_review.style.background="#ffffff";var table=document.createElement("table");table.setAttribute("width","100%");table.setAttribute("border","0");var tbody=document.createElement("tbody");var trMain1=document.createElement("tr");var tdMain11=document.createElement("td");var tdMain11=document.createElement("td");tdMain11.setAttribute("align","left");tdMain11.setAttribute("vAlign","middle");tdMain11.setAttribute("id","validateAdSpace");tdMain11.className="myAdsValidation";var tdMain12=document.createElement("td");tdMain12.setAttribute("align","right");tdMain12.setAttribute("vAlign","top");var closeIcon=document.createElement("img");closeIcon.setAttribute("src","images/close.jpg");closeIcon.onclick=Function("closeMarketWindow()");closeIcon.setAttribute("height","16");closeIcon.setAttribute("width","16");closeIcon.className="set_hand";tdMain12.appendChild(closeIcon);trMain1.appendChild(tdMain12);tbody.appendChild(trMain1);var tr1=document.createElement("tr");tr1.setAttribute("valign","top");var tr2=document.createElement("tr");tr2.setAttribute("valign","top");var td1=document.createElement("td");td1.style.borderBottom="2px solid #66ff66";var td2=document.createElement("td");td2.setAttribute("valign","top");var tableTitle=document.createElement("table");var tbodyTitle=document.createElement("tbody");var trT1=document.createElement("tr");var tdT1=document.createElement("td");var tdT2=document.createElement("td");var img=document.createElement("img");img.setAttribute("src","http://www.mid-day.com/images/middaylogo.gif");img.setAttribute("align","middle");tdT1.appendChild(img);var this_title=" ";var title1=document.createTextNode("Places Close to this Property");var title2=document.createTextNode(" ");var font1=document.createElement("font");font1.style.fontFamily="Verdana, Arial, Helvetica, sans-serif";font1.style.fontSize="12pt";font1.style.color="#000000";var font2=document.createElement("font");font1.appendChild(title1);font2.appendChild(title2);font2.className="titleObliq";tdT2.appendChild(font1);tdT2.appendChild(font2);trT1.appendChild(tdT1);trT1.appendChild(tdT2);tbodyTitle.appendChild(trT1);tableTitle.appendChild(tbodyTitle);td1.appendChild(tableTitle);var tablePoi=document.createElement("table");var tbodyPoi=document.createElement("tbody");var trP1=document.createElement("tr");var tdP1=document.createElement("td");tdP1.setAttribute("width","130px");var tdP2=document.createElement("td");tdP2.setAttribute("id","Poi_Info");tdP2.setAttribute("valign","top");tdP2.setAttribute("width","570px");tdP2.style.borderLeft="2px solid #447dc0";var tableName=document.createElement("table");var tbodyName=document.createElement("tbody");tbodyName.setAttribute("id","tbody_Name");var places=new Array("Railway Stations","Schools","Restaurants","Bars","NightClubs","Cafes","Colleges","Gyms","Beauty Parlour","Malls","Multiplexes","Amusement Park","Hotels","Cyber Cafes","Banks","Best Areas");var type=new Array("Railway","School","Restaurant","Bar","Nightclub","Cafes","College","Gymnasium","Beauty Saloons","Malls","Multiplexes","Amusement Parks","Hotel","Cyber Cafes","Bank","Best Areas");var len=places.length;var top=document.createElement("img");top.setAttribute("src","images/top.gif");top.onclick=Function("topPoi()");top.setAttribute("height","20");top.setAttribute("width","20");var trN=document.createElement("tr");trN.setAttribute("id","topPoi");var tdN=document.createElement("td");tdN.setAttribute("align","center");var link=document.createTextNode("top");tdN.appendChild(top);trN.appendChild(tdN);var zero=0;for(i=0;i<len-5;i++){var trN=document.createElement("tr");trN.setAttribute("id","placesRow"+i);trN.className="set_hand";var tdN=document.createElement("td");tdN.onclick=Function("Other_Poi_Info("+plsid+',"'+type[i]+'")');tdN.className="bold_green";var link=document.createTextNode(places[i]);tdN.appendChild(link);trN.appendChild(tdN);tbodyName.appendChild(trN)}var top=document.createElement("img");top.setAttribute("src","images/bottom.gif");top.onclick=Function("bottomPoi()");top.setAttribute("height","20");top.setAttribute("width","20");var trN=document.createElement("tr");trN.setAttribute("id","topPoi");var tdN=document.createElement("td");tdN.setAttribute("align","center");var link=document.createTextNode("bottom");tdN.appendChild(top);trN.appendChild(tdN);tbodyName.appendChild(trN);tableName.appendChild(tbodyName);tdP1.appendChild(tableName);var info_table=document.createElement("table");info_table.setAttribute("width","100%");info_table.setAttribute("border","0");var info_tbody=document.createElement("tbody");for(var i=0;i<jsonData.listings.listing.length;i++){var tr=document.createElement("tr");var td=document.createElement("td");var poi_font=document.createElement("font");poi_font.style.fontFamily="Verdana, Arial, Helvetica, sans-serif";poi_font.style.fontSize="9pt";var pois=document.createTextNode(jsonData.listings.listing[i].poi_line);var poi_br=document.createElement("br");poi_font.appendChild(pois);td.appendChild(poi_font);tr.appendChild(td);info_tbody.appendChild(tr)}var tr_next=document.createElement("tr");var td_next=document.createElement("td");td_next.colSpan=2;td_next.setAttribute("align","right");pages=jsonData.listings.listing[0].poi_total;if(previous>0&&limit<pages){var prevFont=document.createElement("font");var prev=document.createElement("a");prevFont.className="selectPoi";prev.setAttribute("href",'javascript:Previous_Other_Poi_Info("'+jsonData.listings.listing[0].poi_type+'")');var prevText=document.createTextNode(" << Previous  ");prev.setAttribute("id","prev_latest");prevFont.appendChild(prevText);prev.appendChild(prevFont);td_next.appendChild(prev)}if(limit<pages-1){var nextFont=document.createElement("font");var next=document.createElement("a");nextFont.className="selectPoi";next.setAttribute("href",'javascript:Next_Other_Poi_Info("'+jsonData.listings.listing[0].poi_type+'")');var linkText=document.createTextNode("  Next >> ");next.setAttribute("id","next_latest");nextFont.appendChild(linkText);next.appendChild(nextFont);td_next.appendChild(next)}tr_next.appendChild(td_next);info_table.appendChild(info_tbody);tdP2.appendChild(info_table);trP1.appendChild(tdP1);trP1.appendChild(tdP2);tbodyPoi.appendChild(trP1);tablePoi.appendChild(tbodyPoi);td2.appendChild(tablePoi);tr1.appendChild(td1);tr2.appendChild(td2);tbody.appendChild(tr1);tbody.appendChild(tr2);table.appendChild(tbody);write_review.appendChild(table);windowIsActive="MyAccount";testT();document.getElementById("wait").style.display="none"}}else{}}}function Previous_MoreInfoWindow(A){overlayShow();limit=limit-1;previous=limit;url="uploading/get_poi_info.php";request.open("POST",url,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=MoreInfoWindow;url1="place="+escape(place)+"&category="+escape(pcat)+"&lsid="+escape(plsid)+"&limit="+escape(limit);request.send(url1)}function Next_MoreInfoWindow(A){overlayShow();limit=limit+1;previous=limit;url="uploading/get_poi_info.php";request.open("POST",url,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=MoreInfoWindow;url1="place="+escape(place)+"&category="+escape(pcat)+"&lsid="+escape(plsid)+"&limit="+escape(limit);request.send(url1)}function topPoi(){market_remove("tbody_Name");var B=new Array("Railway Stations","Schools","Restaurants","Bars","NightClubs","Cafes","Colleges","Gyms","Beauty Parlour","Malls","Multiplexes","Amusement Park","Hotels","Cyber Cafes","Banks","Best Areas");var G=new Array("Railway","School","Restaurant","Bar","Nightclub","Cafes","College","Gymnasium","Beauty Saloons","Malls","Multiplexes","Amusement Parks","Hotel","Cyber Cafes","Bank","Best Areas");B.sort();G.sort();var E=B.length;var D=document.getElementById("tbody_Name");var H=document.createElement("img");H.setAttribute("src","images/top.gif");H.onclick=Function("topPoi()");H.setAttribute("height","20");H.setAttribute("width","20");var C=document.createElement("tr");C.setAttribute("id","topPoi");var A=document.createElement("td");A.setAttribute("align","center");var I=document.createTextNode("top");A.appendChild(H);C.appendChild(A);var F=0;for(i=0;i<E-5;i++){var C=document.createElement("tr");C.setAttribute("id","placesRow"+i);var A=document.createElement("td");A.className="selectPoi";A.onclick=Function("Other_Poi_Info("+plsid+',"'+G[i]+'")');var I=document.createTextNode(B[i]);A.appendChild(I);C.appendChild(A);D.appendChild(C)}var H=document.createElement("img");H.setAttribute("src","images/bottom.gif");H.onclick=Function("bottomPoi()");H.setAttribute("height","20");H.setAttribute("width","20");var C=document.createElement("tr");C.setAttribute("id","topPoi");var A=document.createElement("td");A.setAttribute("align","center");var I=document.createTextNode("bottom");A.appendChild(H);C.appendChild(A);D.appendChild(C)}function bottomPoi(){market_remove("tbody_Name");var B=new Array("Railway Stations","Schools","Restaurants","Bars","NightClubs","Cafes","Colleges","Gyms","Beauty Parlour","Malls","Multiplexes","Amusement Park","Hotels","Cyber Cafes","Banks","Best Areas");var G=new Array("Railway","School","Restaurant","Bar","Nightclub","Cafes","College","Gymnasium","Beauty Saloons","Malls","Multiplexes","Amusement Parks","Hotel","Cyber Cafes","Bank","Best Areas");B.sort();G.sort();var E=B.length;var D=document.getElementById("tbody_Name");var F=0;var I=document.createElement("img");I.setAttribute("src","images/top.gif");I.onclick=Function("topPoi()");I.setAttribute("height","20");I.setAttribute("width","20");var C=document.createElement("tr");C.setAttribute("id","topPoi");var A=document.createElement("td");A.setAttribute("align","center");var H=document.createTextNode("top");A.appendChild(I);C.appendChild(A);D.appendChild(C);for(i=5;i<E;i++){var C=document.createElement("tr");C.setAttribute("id","placesRow"+i);var A=document.createElement("td");A.className="selectPoi";A.onclick=Function("Other_Poi_Info("+plsid+',"'+G[i]+'")');var H=document.createTextNode(B[i]);A.appendChild(H);C.appendChild(A);D.appendChild(C)}var I=document.createElement("img");I.setAttribute("src","images/bottom.gif");I.onclick=Function("bottomPoi()");I.setAttribute("height","20");I.setAttribute("width","20");var C=document.createElement("tr");C.setAttribute("id","topPoi");var A=document.createElement("td");A.setAttribute("align","center");var H=document.createTextNode("bottom");A.appendChild(I);C.appendChild(A)}function createIframe(){var B=document.getElementById("copy_right");var A=document.createElement("IFRAME");A.setAttribute("src","uploading/copyRight.php");A.setAttribute("height","170px");A.setAttribute("width","600px");A.setAttribute("align","left");A.setAttribute("frameBorder","0");B.appendChild(A)}function overlayShow(){document.getElementById("wait").style.display="block";var A=getPageSize();var C=document.getElementById("overlay");C.style.height=(A[1]+"px");var B=document.getElementById("overlayiframe");B.style.height=(A[1]+"px");B.style.display="block";getwindowdims();s_x=getpagescrollx();s_y=getpagescrolly();if(ie){startx=s_x+((w_x/2)-(203));starty=s_y+((w_y/2)-(180))}else{startx=s_x+((w_x/2)-(228));starty=s_y+((w_y/2)-(70))}document.getElementById("wait").style.left=startx+"px";document.getElementById("wait").style.top=starty+"px";document.getElementById("overlayiframe").style.display="block";document.getElementById("overlay").style.display="block"}function overlayHide(){document.getElementById("overlayiframe").style.display="none";document.getElementById("overlay").style.display="none";document.getElementById("wait").style.display="none"}function saveImages(G){var B=document.getElementById(G);var F=0;var E;var C;var A;var D;car_image_name=new Array();car_image_path=new Array();for(F=0;F<B.options.length;F++){E=B[F].value;C=E.lastIndexOf("\\");C++;A=E.length;D=E.substring(C,A);car_image_path[F]=E;car_image_name[F]=D}}function setImages(D){var C=0;var B=document.getElementById(D);B.length=0;for(C=0;C<car_image_name.length;C++){var A=document.createElement("OPTION");A.value=car_image_path[C];A.text=car_image_name[C];B.options.add(A,C)}}function postAdAutomobiles(Z,A7){category="Autos";Rcategory=category;Rsubcategory=Z;var BH=Z;if(Z=="Cars"){Z="Cars"}else{Z="Bikes"}OnlyDisable();windowIsActive=true;market_remove("AddsDisplayDiv");var Ag=document.getElementById("AddsDisplayDiv");var AJ=document.getElementById("write_reviewDiv1");Ag.style.display="block";AJ.style.display="block";Ag.style.width="735px";AJ.style.height="455px";AJ.style.width="755px";var H=Ag;Ag.style.background="#ffffff";H.setAttribute("align","center");var c=document.createElement("table");c.width="95%";c.border=0;c.cellSpacing=0;c.cellPadding=0;c.setAttribute("align","center");var z=document.createElement("tbody");var Ar=document.createElement("tr");var L=document.createElement("td");var L=document.createElement("td");L.setAttribute("align","left");L.setAttribute("vAlign","middle");L.className="myAdsValidation";L.colSpan=2;var R=document.createElement("div");R.setAttribute("id","validation_info");L.appendChild(R);Ar.appendChild(L);var K=document.createElement("td");K.setAttribute("align","right");K.setAttribute("vAlign","middle");K.className="windowTitle";var M=document.createElement("img");M.setAttribute("src","images/close.jpg");M.onclick=Function("closeMarketWindow()");M.setAttribute("height","16");M.setAttribute("width","16");K.appendChild(M);z.appendChild(Ar);var Ap=document.createElement("tr");var BK=document.createElement("td");BK.colSpan=2;BK.className="windowTitle";var o=document.createElement("table");o.width="100%";o.border=0;o.cellSpacing=0;o.cellPadding=0;o.setAttribute("align","center");var AH=document.createElement("tbody");var Ac=document.createElement("tr");var An=document.createElement("td");An.setAttribute("align","left");An.setAttribute("vAlign","middle");An.setAttribute("width","22%");An.className="fieldNames";var W=document.createTextNode("Step1 - Ad Title");An.appendChild(W);Ac.appendChild(An);var Al=document.createElement("td");Al.setAttribute("align","left");Al.setAttribute("vAlign","middle");Al.setAttribute("width","1%");Al.className="fieldNames";var A5=document.createTextNode(":");Al.appendChild(A5);Ac.appendChild(Al);var Ak=document.createElement("td");Ak.setAttribute("align","left");Ak.setAttribute("vAlign","middle");Ak.setAttribute("width","29%");Ak.className="fieldNames";var BI=document.createElement("input");BI.setAttribute("size","30");BI.setAttribute("id","title_car");Ak.appendChild(BI);Ac.appendChild(Ak);var Ai=document.createElement("td");Ai.setAttribute("align","left");Ai.setAttribute("vAlign","middle");Ai.className="myAdsEditDesp";var Ae=document.createTextNode("(Enter a short title for your ad)");Ai.appendChild(Ae);Ac.appendChild(Ai);AH.appendChild(Ac);var Ab=document.createElement("tr");var AN=document.createElement("td");AN.setAttribute("align","left");AN.setAttribute("vAlign","middle");AN.className="fieldNames";var w=document.createTextNode("Step2 - Name");AN.appendChild(w);Ab.appendChild(AN);var AL=document.createElement("td");AL.setAttribute("align","left");AL.setAttribute("vAlign","middle");AL.className="fieldNames";var A3=document.createTextNode(":");AL.appendChild(A3);Ab.appendChild(AL);var AK=document.createElement("td");AK.setAttribute("align","left");AK.setAttribute("vAlign","middle");AK.className="fieldNames";var BE=document.createElement("input");BE.setAttribute("size","30");BE.setAttribute("id","first_auto");BE.setAttribute("name","autocomplete");BE.setAttribute("style","left: -229px; top: -35px");BE.setAttribute("autocomplete","off");AK.appendChild(BE);var AV=document.createElement("div");AV.className="shadow";AV.setAttribute("id","shadow");AK.appendChild(AV);var Aa=document.createElement("div");Aa.className="output";Aa.setAttribute("id","output");AK.appendChild(Aa);Ab.appendChild(AK);var AI=document.createElement("td");AI.setAttribute("align","left");AI.setAttribute("vAlign","middle");AI.className="myAdsEditDesp";var AB=document.createTextNode("(Enter the name of your "+Z+" & select the best option)");AI.appendChild(AB);Ab.appendChild(AI);AH.appendChild(Ab);var AZ=document.createElement("tr");var r=document.createElement("td");r.setAttribute("align","left");r.setAttribute("vAlign","middle");r.className="fieldNames";var AO=document.createTextNode("Step3 - Year");r.appendChild(AO);AZ.appendChild(r);var q=document.createElement("td");q.setAttribute("align","left");q.setAttribute("vAlign","middle");q.className="fieldNames";var A2=document.createTextNode(":");q.appendChild(A2);AZ.appendChild(q);var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","middle");p.className="fieldNames";var AC=document.createElement("select");AC.setAttribute("id","year_car");var l=document.createElement("option");l.value="Select";l.text="Select";AC.options.add(l,0);var AD;for(i=1980;i<=2008;i++){var AD=1;var g=document.createElement("option");g.value=i;g.text=i;AC.options.add(g,AD);AD++}p.appendChild(AC);AZ.appendChild(p);var m=document.createElement("td");m.setAttribute("align","left");m.setAttribute("vAlign","middle");m.className="myAdsEditDesp";var X=document.createTextNode("(Enter the year in which your "+Z+" was manufactured)");m.appendChild(X);AZ.appendChild(m);AH.appendChild(AZ);var AY=document.createElement("tr");var V=document.createElement("td");V.setAttribute("align","left");V.setAttribute("vAlign","middle");V.className="fieldNames";var Ao=document.createTextNode("Step4 - Condition");V.appendChild(Ao);AY.appendChild(V);var U=document.createElement("td");U.setAttribute("align","left");U.setAttribute("vAlign","middle");U.className="fieldNames";var A1=document.createTextNode(":");U.appendChild(A1);AY.appendChild(U);var T=document.createElement("td");T.setAttribute("align","left");T.setAttribute("vAlign","middle");T.className="fieldNames";var AA=document.createElement("select");AA.setAttribute("id","cond_car");var l=document.createElement("option");l.value="Select";l.text="Select";AA.options.add(l,0);var g=document.createElement("option");g.value="New";g.text="New";AA.options.add(g,1);var f=document.createElement("option");f.value="Used";f.text="Used";AA.options.add(f,2);T.appendChild(AA);AY.appendChild(T);var S=document.createElement("td");S.setAttribute("align","left");S.setAttribute("vAlign","middle");S.className="myAdsEditDesp";var I=document.createTextNode("(Enter the condition of your "+Z+")");S.appendChild(I);AY.appendChild(S);AH.appendChild(AY);var AX=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";var A8=document.createTextNode("Step5 - Usage");G.appendChild(A8);AX.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.className="fieldNames";var A0=document.createTextNode(":");F.appendChild(A0);AX.appendChild(F);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";var A6=document.createElement("input");A6.setAttribute("size","30");A6.setAttribute("id","kms_car");D.appendChild(A6);AX.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="myAdsEditDesp";var BB=document.createTextNode("(Enter how many kms your "+Z+" has done)");C.appendChild(BB);AX.appendChild(C);AH.appendChild(AX);var AW=document.createElement("tr");var BF=document.createElement("td");BF.setAttribute("align","left");BF.setAttribute("vAlign","middle");BF.className="fieldNames";var B=document.createTextNode("Step6 - Colour");BF.appendChild(B);AW.appendChild(BF);var BD=document.createElement("td");BD.setAttribute("align","left");BD.setAttribute("vAlign","middle");BD.className="fieldNames";var Az=document.createTextNode(":");BD.appendChild(Az);AW.appendChild(BD);var BA=document.createElement("td");BA.setAttribute("align","left");BA.setAttribute("vAlign","middle");BA.className="fieldNames";var A4=document.createElement("input");var Af=document.createElement("span");Af.setAttribute("id","clr");A4.setAttribute("size","30");A4.setAttribute("id","color_name");Af.appendChild(A4);BA.appendChild(Af);AW.appendChild(BA);var A9=document.createElement("td");A9.setAttribute("align","left");A9.setAttribute("vAlign","middle");A9.className="myAdsEditDesp";var Aj=document.createTextNode("(Enter the colour of your "+Z+")");A9.appendChild(Aj);AW.appendChild(A9);AH.appendChild(AW);var AU=document.createElement("tr");var Ay=document.createElement("td");Ay.setAttribute("align","left");Ay.setAttribute("vAlign","middle");Ay.className="fieldNames";var P=document.createTextNode("Step7 - Price");Ay.appendChild(P);AU.appendChild(Ay);var Av=document.createElement("td");Av.setAttribute("align","left");Av.setAttribute("vAlign","middle");Av.className="fieldNames";var Ax=document.createTextNode(":");Av.appendChild(Ax);AU.appendChild(Av);var At=document.createElement("td");At.setAttribute("align","left");At.setAttribute("vAlign","middle");At.className="fieldNames";var Aw=document.createElement("input");Aw.setAttribute("size","30");Aw.setAttribute("id","price_car");At.appendChild(Aw);AU.appendChild(At);var Aq=document.createElement("td");Aq.setAttribute("align","left");Aq.setAttribute("vAlign","middle");Aq.className="myAdsEditDesp";var AF=document.createTextNode("(Enter your selling price)");Aq.appendChild(AF);AU.appendChild(Aq);AH.appendChild(AU);var AT=document.createElement("tr");var AR=document.createElement("td");AR.setAttribute("align","left");AR.setAttribute("vAlign","top");AR.className="fieldNames";var e=document.createTextNode("Step8 - Description");AR.appendChild(e);AT.appendChild(AR);var AQ=document.createElement("td");AQ.setAttribute("align","left");AQ.setAttribute("vAlign","top");AQ.className="fieldNames";var Au=document.createTextNode(":");AQ.appendChild(Au);AT.appendChild(AQ);var AP=document.createElement("td");AP.colSpan=2;var h=document.createElement("table");h.width="100%";h.border=0;h.cellSpacing=0;h.cellPadding=0;h.setAttribute("align","center");var AG=document.createElement("tbody");var Ac=document.createElement("tr");var An=document.createElement("td");An.setAttribute("align","left");An.setAttribute("vAlign","middle");An.setAttribute("width","370");An.className="fieldNames";var Am=document.createElement("textArea");Am.setAttribute("rows","6");Am.setAttribute("cols","55");Am.setAttribute("id","desc_car");An.appendChild(Am);Ac.appendChild(An);var Al=document.createElement("td");Al.setAttribute("align","left");Al.setAttribute("vAlign","top");Al.className="myAdsEditDesp";var d=document.createTextNode("(Enter a brief description of your "+Z+" & terms of sale)");Al.appendChild(d);Ac.appendChild(Al);AG.appendChild(Ac);h.appendChild(AG);AP.appendChild(h);AT.appendChild(AP);AH.appendChild(AT);var AS=document.createElement("tr");var y=document.createElement("td");y.setAttribute("align","left");y.setAttribute("vAlign","middle");y.className="fieldNames";var AE=document.createTextNode("Step9 - Images");y.appendChild(AE);AS.appendChild(y);var x=document.createElement("td");x.setAttribute("align","left");x.setAttribute("vAlign","middle");x.className="fieldNames";var As=document.createTextNode(":");x.appendChild(As);AS.appendChild(x);var v=document.createElement("td");v.setAttribute("align","left");v.setAttribute("vAlign","middle");v.setAttribute("id","Td_UploadFile");v.className="fieldNames";var Ah=document.createElement("input");Ah.setAttribute("type","file");Ah.setAttribute("id","file");Ah.setAttribute("name","userfile");v.appendChild(Ah);var BC=document.createElement("iframe");BC.setAttribute("src","#");BC.setAttribute("height","0");BC.setAttribute("width","0");BC.setAttribute("scrolling","no");BC.setAttribute("id","");BC.setAttribute("frameBorder","NO");BC.frameBorder="0";AS.appendChild(v);var u=document.createElement("td");u.setAttribute("align","left");u.setAttribute("vAlign","middle");u.setAttribute("id","Td_UploadButton");u.className="myAdsEditDesp";var BG=document.createElement("input");BG.setAttribute("type","submit");BG.setAttribute("value","Upload");BG.setAttribute("id","upload_button");BG.onclick=Function();u.appendChild(BG);var Ad=document.createTextNode(" ");u.appendChild(Ad);var J=document.createTextNode("(Upload Photos of your "+Z+" - Optional)");u.appendChild(J);AS.appendChild(u);AH.appendChild(AS);var b=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.className="fieldNames";b.appendChild(Q);var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.className="fieldNames";b.appendChild(O);var N=document.createElement("td");var h=document.createElement("table");h.width="100%";h.border=0;h.cellSpacing=0;h.cellPadding=0;h.setAttribute("align","center");var AG=document.createElement("tbody");var Ac=document.createElement("tr");var An=document.createElement("td");An.setAttribute("align","left");An.setAttribute("vAlign","middle");An.className="fieldNames";var E=document.createElement("select");E.setAttribute("size","3");E.setAttribute("id","new_img_select");An.appendChild(E);Ac.appendChild(An);var Al=document.createElement("td");Al.setAttribute("align","left");Al.setAttribute("vAlign","middle");Al.className="myAdsEditDesp";var BJ=document.createElement("input");BJ.setAttribute("type","button");BJ.setAttribute("value","Remove Image");BJ.onclick=Function('removeImage("new_img_select","'+A7+'")');Al.appendChild(BJ);Ac.appendChild(Al);AG.appendChild(Ac);h.appendChild(AG);N.appendChild(h);b.appendChild(N);AH.appendChild(b);var Y=document.createElement("tr");var A=document.createElement("td");A.setAttribute("align","right");A.setAttribute("vAlign","middle");A.colSpan=4;var AM=document.createElement("input");AM.setAttribute("type","button");AM.setAttribute("value","Back");AM.onclick=Function("postMarketAds()");A.appendChild(AM);var Ad=document.createTextNode(" ");A.appendChild(Ad);var s=document.createElement("input");s.setAttribute("type","button");s.setAttribute("value","Next");s.onclick=Function('validateAutosPost("'+BH+'","'+A7+'")');if(A7=="Edit"){s.setAttribute("value","Save");AM.setAttribute("value","Cancel");AM.onclick=Function("closeMarketWindow()")}A.appendChild(s);Y.appendChild(A);AH.appendChild(Y);o.appendChild(AH);BK.appendChild(o);Ap.appendChild(BK);z.appendChild(Ap);c.appendChild(z);H.appendChild(c);H.appendChild(BC);testT();xauto_init()}function validateAutosPost(H,U){var I=document.getElementById("title_car");var Y=document.getElementById("kms_car");var J=document.getElementById("color_name");var B=document.getElementById("year_car");var W=document.getElementById("price_car");var R=document.getElementById("desc_car").value.replace(/\n/g,"~");var E=document.getElementById("first_auto");var L=document.getElementById("cond_car");var C="0123456789.";var N=true;var D;var T;var Q=document.getElementById("validation_info");var P=document.createTextNode("Invalid Images");if(H=="Cars"){sub="Car"}else{if(H=="Bikes"){sub="Bike"}else{sub="Product"}}while(Q.hasChildNodes()){var A=Q.firstChild;Q.removeChild(A)}if(I.value==""){var F=document.createTextNode("Please Enter  Title for your Ad");Q.appendChild(F)}else{if(E.value==""){var G=document.createTextNode("Please Enter "+sub+" Make and Model");Q.appendChild(G)}else{if(B.value==""){var M=document.createTextNode("Please Enter "+sub+" Year");Q.appendChild(M)}else{if(IsNumeric(B.value)){var S=document.createTextNode("Please Enter Valid Year");Q.appendChild(S)}else{if(L.value=="Select"){var V=document.createTextNode("Please Select "+sub+" Condition");Q.appendChild(V)}else{if(Y.value==""){var S=document.createTextNode("Please Enter "+sub+" Usage in Kilometers");Q.appendChild(S)}else{if(IsNumeric(Y.value)){var S=document.createTextNode("Please Enter Valid Kilometer");Q.appendChild(S)}else{if(J.value==""){var b=document.createTextNode("Please Enter "+sub+" Color");Q.appendChild(b)}else{if(W.value==""){var Z=document.createTextNode("Please Enter "+sub+" Price");Q.appendChild(Z)}else{if(IsNumeric(W.value)){var X=document.createTextNode("Please Enter Valid Price");Q.appendChild(X)}else{if(R==""){var V=document.createTextNode("Please Enter "+sub+" Description");Q.appendChild(V)}else{if(U=="PostAd"){var K=checkLoginNew();if(K==1){NewAutosPost(H)}else{NewPostAdsLogin("Autos",H)}}else{if(U=="Edit"){var O=getSelectedImages();url1="title="+escape(I.value)+"&sub_category="+H+"&description="+R+"&pstring="+escape(E.value)+"&kms="+escape(Y.value)+"&year="+escape(B.value)+"&price="+escape(W.value)+"&color="+escape(J.value)+"&autos_cond="+escape(L.value)+"&clid="+escape(clid)+O;postEditAutos(url1)}}}}}}}}}}}}}}function NewAutosPost(F){var G=document.getElementById("title_car").value;var P=document.getElementById("kms_car").value;var H=document.getElementById("color_name").value;var B=document.getElementById("year_car").value;var O=document.getElementById("price_car").value;var K=document.getElementById("desc_car").value.replace(/\n/g,"~");var C=document.getElementById("first_auto").value;var J=document.getElementById("cond_car").value;var I=document.getElementById("new_img_select");var L=I.options.length;var M="";var Q="";for(i=0;i<L;i++){var R=I.options[i].text;var A=I.options[i].value;if(i==0){M=R;Q=A}else{M=M+":"+R;Q=Q+":"+A}}var N="";var D=0;if(document.getElementById("market_post_email")){var N=document.getElementById("market_post_email").value}else{N="0"}if(document.getElementById("market_post_mobile")){D=document.getElementById("market_post_mobile").value}else{D=0}if(N!=""){show_loader();var E="Marketplace/post_autos_listing.php";request.open("POST",E,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewPostListing;url1="title="+escape(G)+"&subcategory="+F+"&description="+K+"&pstring="+escape(C)+"&kms="+escape(P)+"&year="+escape(B)+"&price="+escape(O)+"&color="+escape(H)+"&autos_cond="+escape(J)+"&reply_email="+escape(N)+"&reply_mobile="+escape(D)+"&imageName="+escape(M)+"&imageRandomName="+escape(Q);request.send(url1)}else{alert("Enter the complete details")}}function updateNewPostListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;closeMarketWindow();show_classified("null","null",0);update_log_box();hide_loader()}}}function PostAdFurniture(AS){OnlyDisable();windowIsActive=true;market_remove("AddsDisplayDiv");var AD=document.getElementById("AddsDisplayDiv");var m=document.getElementById("write_reviewDiv1");AD.style.display="block";m.style.display="block";m.style.height="340px";AD.style.width="760px";m.style.width="780px";var E=AD;AD.style.background="#ffffff";E.setAttribute("align","center");var Af=1;var P=document.createElement("table");P.width="95%";P.border=0;P.cellSpacing=0;P.cellPadding=0;P.setAttribute("align","center");var d=document.createElement("tbody");var AK=document.createElement("tr");var H=document.createElement("td");var H=document.createElement("td");H.setAttribute("align","left");H.setAttribute("vAlign","middle");H.className="myAdsValidation";H.colSpan=2;var J=document.createElement("div");J.setAttribute("id","validation_info");H.appendChild(J);AK.appendChild(H);var G=document.createElement("td");G.setAttribute("align","right");G.setAttribute("vAlign","middle");G.className="windowTitle";var I=document.createElement("img");I.setAttribute("src","images/close.jpg");I.onclick=Function("closeMarketWindow()");I.setAttribute("height","16");I.setAttribute("width","16");G.appendChild(I);d.appendChild(AK);var AJ=document.createElement("tr");var Ae=document.createElement("td");Ae.colSpan=2;Ae.className="windowTitle";var W=document.createElement("table");W.width="100%";W.border=0;W.cellSpacing=0;W.cellPadding=0;W.setAttribute("align","center");var h=document.createElement("tbody");var AA=document.createElement("tr");var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","middle");AH.className="fieldNames";var N=document.createTextNode("Step"+Af+" - Ad Title");AH.appendChild(N);AA.appendChild(AH);var AG=document.createElement("td");AG.setAttribute("align","left");AG.setAttribute("vAlign","middle");AG.setAttribute("width","1%");AG.className="fieldNames";var AQ=document.createTextNode(":");AG.appendChild(AQ);AA.appendChild(AG);var AF=document.createElement("td");AF.setAttribute("align","left");AF.setAttribute("vAlign","middle");AF.setAttribute("width","27%");AF.className="fieldNames";var Ac=document.createElement("input");Ac.setAttribute("size","30");Ac.setAttribute("id","title_fur");AF.appendChild(Ac);AA.appendChild(AF);var AE=document.createElement("td");AE.setAttribute("align","left");AE.setAttribute("vAlign","middle");AE.className="myAdsEditDesp";var AC=document.createTextNode("(Enter a short title for your ad)");AE.appendChild(AC);AA.appendChild(AE);h.appendChild(AA);var z=document.createElement("tr");var r=document.createElement("td");r.setAttribute("align","left");r.setAttribute("vAlign","middle");r.setAttribute("width","23%");r.className="fieldNames";Af++;var c=document.createTextNode("Step"+Af+" - Type");r.appendChild(c);z.appendChild(r);var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","middle");p.className="fieldNames";var AP=document.createTextNode(":");p.appendChild(AP);z.appendChild(p);var o=document.createElement("td");o.setAttribute("align","left");o.setAttribute("vAlign","middle");o.className="fieldNames";var f=document.createElement("select");f.setAttribute("id","type_fur");var T=document.createElement("option");T.value="Select";T.text="Select";f.options.add(T,0);var R=document.createElement("option");R.value="Home";R.text="Home";f.options.add(R,1);var Q=document.createElement("option");Q.value="Office";Q.text="Office";f.options.add(Q,2);o.appendChild(f);z.appendChild(o);var l=document.createElement("td");l.setAttribute("align","left");l.setAttribute("vAlign","middle");l.className="myAdsEditDesp";var e=document.createTextNode("(Select the type of furniture)");l.appendChild(e);l.appendChild(e);z.appendChild(l);h.appendChild(z);var y=document.createElement("tr");var Z=document.createElement("td");Z.setAttribute("align","left");Z.setAttribute("vAlign","middle");Z.className="fieldNames";Af++;var s=document.createTextNode("Step"+Af+" - Price");Z.appendChild(s);y.appendChild(Z);var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.className="fieldNames";var AO=document.createTextNode(":");Y.appendChild(AO);y.appendChild(Y);var X=document.createElement("td");X.setAttribute("align","left");X.setAttribute("vAlign","middle");X.className="fieldNames";var AU=document.createElement("input");AU.setAttribute("size","5");AU.setAttribute("id","price_fur");X.appendChild(AU);y.appendChild(X);var V=document.createElement("td");V.setAttribute("align","left");V.setAttribute("vAlign","middle");V.className="myAdsEditDesp";var O=document.createTextNode("(Enter your selling price)");V.appendChild(O);y.appendChild(V);h.appendChild(y);var x=document.createElement("tr");var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","top");M.className="fieldNames";Af++;var AI=document.createTextNode("Step"+Af+" - Description");M.appendChild(AI);x.appendChild(M);var L=document.createElement("td");L.setAttribute("align","left");L.setAttribute("vAlign","top");L.className="fieldNames";var AN=document.createTextNode(":");L.appendChild(AN);x.appendChild(L);var K=document.createElement("td");K.colSpan=2;var U=document.createElement("table");U.width="100%";U.border=0;U.cellSpacing=0;U.cellPadding=0;U.setAttribute("align","center");var g=document.createElement("tbody");var AA=document.createElement("tr");var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","middle");AH.setAttribute("width","370");AH.className="fieldNames";var AT=document.createElement("textArea");AT.setAttribute("rows","7");AT.setAttribute("cols","55");AT.setAttribute("id","description_fur");AH.appendChild(AT);AA.appendChild(AH);var AG=document.createElement("td");AG.setAttribute("align","left");AG.setAttribute("vAlign","top");AG.className="myAdsEditDesp";var F=document.createTextNode("(Enter a brief description of the furniture , its condition & terms of sale)");AG.appendChild(F);AA.appendChild(AG);g.appendChild(AA);U.appendChild(g);K.appendChild(U);x.appendChild(K);h.appendChild(x);var w=document.createElement("tr");var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";Af++;var AV=document.createTextNode("Step"+Af+" - Images");D.appendChild(AV);w.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="fieldNames";var AM=document.createTextNode(":");C.appendChild(AM);w.appendChild(C);var B=document.createElement("td");B.setAttribute("align","left");B.setAttribute("vAlign","middle");B.setAttribute("id","Td_UploadFile");B.className="fieldNames";var AR=document.createElement("input");AR.setAttribute("type","file");AR.setAttribute("id","file");AR.setAttribute("name","userfile");B.appendChild(AR);var AZ=document.createElement("iframe");AZ.setAttribute("src","#");AZ.setAttribute("height","0");AZ.setAttribute("width","0");AZ.setAttribute("scrolling","no");AZ.setAttribute("id","");AZ.setAttribute("frameBorder","no");AZ.frameBorder="0";B.appendChild(AZ);w.appendChild(B);var A=document.createElement("td");A.setAttribute("align","left");A.setAttribute("vAlign","middle");A.setAttribute("id","Td_UploadButton");A.className="myAdsEditDesp";var Ab=document.createElement("input");Ab.setAttribute("type","submit");Ab.setAttribute("value","Upload");Ab.setAttribute("id","upload_button");Ab.onclick=Function();A.appendChild(Ab);var AB=document.createTextNode(" ");A.appendChild(AB);var AX=document.createTextNode("(Upload Photos of your furniture - Optional)");A.appendChild(AX);w.appendChild(A);h.appendChild(w);var v=document.createElement("tr");var Aa=document.createElement("td");Aa.setAttribute("align","left");Aa.setAttribute("vAlign","middle");Aa.className="fieldNames";v.appendChild(Aa);var AY=document.createElement("td");AY.setAttribute("align","left");AY.setAttribute("vAlign","middle");AY.className="fieldNames";v.appendChild(AY);var AW=document.createElement("td");var U=document.createElement("table");U.width="100%";U.border=0;U.cellSpacing=0;U.cellPadding=0;U.setAttribute("align","center");var g=document.createElement("tbody");var AA=document.createElement("tr");var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","middle");AH.className="fieldNames";var S=document.createElement("select");S.setAttribute("size","3");S.setAttribute("id","new_img_select");AH.appendChild(S);AA.appendChild(AH);var AG=document.createElement("td");AG.setAttribute("align","left");AG.setAttribute("vAlign","middle");AG.className="myAdsEditDesp";var Ad=document.createElement("input");Ad.setAttribute("type","button");Ad.setAttribute("value","Remove Image");Ad.onclick=Function('removeImage("new_img_select","'+AS+'")');AG.appendChild(Ad);AA.appendChild(AG);g.appendChild(AA);U.appendChild(g);AW.appendChild(U);v.appendChild(AW);h.appendChild(v);var u=document.createElement("tr");var AL=document.createElement("td");AL.setAttribute("align","right");AL.setAttribute("vAlign","middle");AL.colSpan=4;var q=document.createElement("input");q.setAttribute("type","button");q.setAttribute("value","Back");q.onclick=Function("postMarketAds()");AL.appendChild(q);var AB=document.createTextNode(" ");AL.appendChild(AB);var b=document.createElement("input");b.setAttribute("type","button");b.setAttribute("value","Next");b.onclick=Function('validateFurniturePost("'+AS+'")');if(AS=="Edit"){b.setAttribute("value","Save");q.setAttribute("value","Cancel");q.onclick=Function("closeMarketWindow()")}AL.appendChild(b);u.appendChild(AL);h.appendChild(u);W.appendChild(h);Ae.appendChild(W);AJ.appendChild(Ae);d.appendChild(AJ);P.appendChild(d);E.appendChild(P);testT()}function validateFurniturePost(O){var K=document.getElementById("title_fur");var A=document.getElementById("type_fur");var C=document.getElementById("description_fur").value.replace(/\n/g," ");var G=document.getElementById("price_fur");var F=document.getElementById("validation_info");var N=document.createTextNode("Invalid Images");while(F.hasChildNodes()){var M=F.firstChild;F.removeChild(M)}if(K.value==""){var J=document.createTextNode("Please Enter Title for your Ad");F.appendChild(J)}else{if(A.value=="Select"){var I=document.createTextNode("Please Select the Furniture Type");F.appendChild(I)}else{if(G.value==""){var B=document.createTextNode("Please Enter the Price");F.appendChild(B)}else{if(IsNumeric(G.value)){var H=document.createTextNode("Please Enter Valid Price");F.appendChild(H)}else{if(C==""){var E=document.createTextNode("Please Enter the Description");F.appendChild(E)}else{if(O=="PostAd"){var L=checkLoginNew();if(L==1){NewFurniturePost()}else{NewPostAdsLogin("Furniture",A.value)}}else{if(O=="Edit"){var D=getSelectedImages();url1="title="+escape(K.value)+"&description="+escape(C)+"&price="+escape(G.value)+"&subcategory="+escape(A.value)+"&clid="+escape(clid)+D;postEditFurniture(url1)}}}}}}}}function NewFurniturePost(){var J=document.getElementById("title_fur").value;var I=document.getElementById("price_fur").value;var H=document.getElementById("description_fur").value.replace(/\n/g," ");var C=document.getElementById("type_fur").value;category="Furniture";var G=C;var L=document.getElementById("new_img_select");var K=L.options.length;var M="";var N="";for(i=0;i<K;i++){var B=L.options[i].text;var E=L.options[i].value;if(i==0){M=B;N=E}else{M=M+":"+B;N=N+":"+E}}var F="";var D=0;if(document.getElementById("market_post_email")){var F=document.getElementById("market_post_email").value}else{F="0"}if(document.getElementById("market_post_mobile")){D=document.getElementById("market_post_mobile").value}else{D=0}if(F!=""){show_loader();var A="Marketplace/post_furniture_listing.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewFurniturePostListing;url1="title="+escape(J)+"&description="+escape(H)+"&price="+escape(I)+"&subcategory="+escape(G)+"&reply_email="+escape(F)+"&reply_mobile="+escape(D)+"&imageName="+escape(M)+"&imageRandomName="+escape(N);request.send(url1)}else{alert("Please Enter the complete details")}}function updateNewFurniturePostListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function PostAdBooks(E){Rcategory="Books";Rsubcategory="";windowIsActive=true;OnlyDisable();market_remove("AddsDisplayDiv");var Z=document.getElementById("AddsDisplayDiv");var D=document.getElementById("write_reviewDiv1");Z.style.display="block";D.style.display="block";D.style.height="230px";Z.style.width="760px";D.style.width="780px";var e=Z;Z.style.background="#ffffff";e.setAttribute("align","center");var r=1;var P=document.createElement("table");P.width="95%";P.border=0;P.cellSpacing=0;P.cellPadding=0;P.setAttribute("align","center");var AD=document.createElement("tbody");var O=document.createElement("tr");var T=document.createElement("td");var T=document.createElement("td");T.setAttribute("align","left");T.setAttribute("vAlign","middle");T.className="myAdsValidation";T.colSpan=2;var p=document.createElement("div");p.setAttribute("id","validation_info");T.appendChild(p);O.appendChild(T);var S=document.createElement("td");S.setAttribute("align","right");S.setAttribute("vAlign","middle");S.className="windowTitle";var v=document.createElement("img");v.setAttribute("src","images/close.jpg");v.onclick=Function("closeMarketWindow()");v.setAttribute("height","16");v.setAttribute("width","16");S.appendChild(v);AD.appendChild(O);var N=document.createElement("tr");var C=document.createElement("td");C.colSpan=2;C.className="windowTitle";var m=document.createElement("table");m.width="100%";m.border=0;m.cellSpacing=0;m.cellPadding=0;m.setAttribute("align","center");var B=document.createElement("tbody");var AG=document.createElement("tr");var d=document.createElement("td");d.setAttribute("align","left");d.setAttribute("vAlign","middle");d.className="fieldNames";var Q=document.createTextNode("Step"+r+" - Ad Title");d.appendChild(Q);AG.appendChild(d);var b=document.createElement("td");b.setAttribute("align","left");b.setAttribute("vAlign","middle");b.setAttribute("width","1%");b.className="fieldNames";var z=document.createTextNode(":");b.appendChild(z);AG.appendChild(b);var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.setAttribute("width","27%");Y.className="fieldNames";var u=document.createElement("input");u.setAttribute("size","30");u.setAttribute("id","book_ad_title");Y.appendChild(u);AG.appendChild(Y);var X=document.createElement("td");X.setAttribute("align","left");X.setAttribute("vAlign","middle");X.className="myAdsEditDesp";var M=document.createTextNode("(Enter a short title for your ad)");X.appendChild(M);AG.appendChild(X);B.appendChild(AG);var AE=document.createElement("tr");var J=document.createElement("td");J.setAttribute("align","left");J.setAttribute("vAlign","middle");J.setAttribute("width","21%");J.className="fieldNames";r++;var AH=document.createTextNode("Step"+r+" - Book Name");J.appendChild(AH);AE.appendChild(J);var I=document.createElement("td");I.setAttribute("align","left");I.setAttribute("vAlign","middle");I.className="fieldNames";var y=document.createTextNode(":");I.appendChild(y);AE.appendChild(I);var H=document.createElement("td");H.setAttribute("align","left");H.setAttribute("vAlign","middle");H.className="fieldNames";var o=document.createElement("input");o.setAttribute("size","30");o.setAttribute("id","first_auto");o.setAttribute("autocomplete","off");o.setAttribute("name","autocomplete");o.className="search";H.appendChild(o);var F=document.createElement("div");F.className="shadow";F.setAttribute("id","shadow");H.appendChild(F);var K=document.createElement("div");K.className="output";K.setAttribute("id","output");H.appendChild(K);AE.appendChild(H);var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="myAdsEditDesp";var AN=document.createTextNode("(Enter the name of the Book & select the best option)");G.appendChild(AN);G.appendChild(AN);AE.appendChild(G);B.appendChild(AE);var AC=document.createElement("tr");var AL=document.createElement("td");AL.setAttribute("align","left");AL.setAttribute("vAlign","middle");AL.className="fieldNames";r++;var R=document.createTextNode("Step"+r+" - Price");AL.appendChild(R);AC.appendChild(AL);var AJ=document.createElement("td");AJ.setAttribute("align","left");AJ.setAttribute("vAlign","middle");AJ.className="fieldNames";var x=document.createTextNode(":");AJ.appendChild(x);AC.appendChild(AJ);var AI=document.createElement("td");AI.setAttribute("align","left");AI.setAttribute("vAlign","middle");AI.className="fieldNames";var W=document.createElement("input");W.setAttribute("size","30");W.setAttribute("id","book_price");AI.appendChild(W);AC.appendChild(AI);var AF=document.createElement("td");AF.setAttribute("align","left");AF.setAttribute("vAlign","middle");AF.className="myAdsEditDesp";var q=document.createTextNode("(Enter your selling price)");AF.appendChild(q);AC.appendChild(AF);B.appendChild(AC);var AB=document.createElement("tr");var l=document.createElement("td");l.setAttribute("align","left");l.setAttribute("vAlign","top");l.className="fieldNames";r++;var AK=document.createTextNode("Step"+r+" - Description");l.appendChild(AK);AB.appendChild(l);var g=document.createElement("td");g.setAttribute("align","left");g.setAttribute("vAlign","top");g.className="fieldNames";var w=document.createTextNode(":");g.appendChild(w);AB.appendChild(g);var c=document.createElement("td");c.colSpan=2;var h=document.createElement("table");h.width="100%";h.border=0;h.cellSpacing=0;h.cellPadding=0;h.setAttribute("align","center");var A=document.createElement("tbody");var AG=document.createElement("tr");var d=document.createElement("td");d.setAttribute("align","left");d.setAttribute("vAlign","middle");d.setAttribute("width","370");d.className="fieldNames";var U=document.createElement("textArea");U.setAttribute("rows","4");U.setAttribute("cols","55");U.setAttribute("id","book_note");d.appendChild(U);AG.appendChild(d);var b=document.createElement("td");b.setAttribute("align","left");b.setAttribute("vAlign","top");b.className="myAdsEditDesp";var V=document.createTextNode("(Enter a brief description of the book, the condition & terms of sale)");b.appendChild(V);AG.appendChild(b);A.appendChild(AG);h.appendChild(A);c.appendChild(h);AB.appendChild(c);B.appendChild(AB);var AA=document.createElement("tr");var L=document.createElement("td");L.setAttribute("align","right");L.setAttribute("vAlign","middle");L.colSpan=4;var s=document.createElement("input");s.setAttribute("type","button");s.setAttribute("value","Back");s.onclick=Function("postMarketAds()");L.appendChild(s);var AM=document.createTextNode(" ");L.appendChild(AM);var f=document.createElement("input");f.setAttribute("type","button");f.setAttribute("value","Next");f.onclick=Function('ValidatePostAdBooks("'+E+'")');if(E=="Edit"){f.setAttribute("value","Save");s.setAttribute("value","Cancel");s.onclick=Function("closeMarketWindow()")}L.appendChild(f);AA.appendChild(L);B.appendChild(AA);m.appendChild(B);C.appendChild(m);N.appendChild(C);AD.appendChild(N);P.appendChild(AD);e.appendChild(P);testT()}function ValidatePostAdBooks(M){var B=document.getElementById("book_ad_title");var H=document.getElementById("first_auto");var A=document.getElementById("book_note").value.replace(/\n/g," ");var N=document.getElementById("book_price");var D=document.getElementById("validation_info");while(D.hasChildNodes()){var K=D.firstChild;D.removeChild(K)}if(B.value==""){var G=document.createTextNode("Please Enter the Title for your Ad");D.appendChild(G)}else{if(H.value==""){var L=document.createTextNode("Please Enter Book name");D.appendChild(L)}else{if(N.value==""){var C=document.createTextNode("Please Enter the Price for your Book");D.appendChild(C)}else{if(IsNumeric(N.value)){var F=document.createTextNode("Please Enter Valid Price");D.appendChild(F)}else{if(A==""){var E=document.createTextNode("Please Enter your Note");D.appendChild(E)}else{if(M=="PostAd"){var J=checkLoginNew();if(J==1){NewBooksPost()}else{NewPostAdsLogin("Books","Books")}}else{if(M=="Edit"){var I="title="+escape(B.value)+"&book_name="+escape(H.value)+"&description="+escape(A)+"&price="+escape(N.value)+"&subcategory="+escape("Books")+"&category="+escape("Books")+"&clid="+escape(clid);postEditBooks(I)}}}}}}}}function NewBooksPost(){var C=document.getElementById("book_ad_title").value;var G=document.getElementById("first_auto").value;var B=document.getElementById("book_note").value.replace(/\n/g,"~");var J=document.getElementById("book_price").value;var I="Books";var E="Subcategory";var F=0;var D=0;if(document.getElementById("market_post_email")){F=document.getElementById("market_post_email").value}else{F="0"}if(document.getElementById("market_post_mobile")){D=document.getElementById("market_post_mobile").value}else{D=0}if(F!=""){show_loader();var A="Marketplace/post_books_listing.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewBooksPostListing;var H="title="+escape(C)+"&book_name="+escape(G)+"&description="+escape(B)+"&price="+escape(J)+"&sub_category="+escape(E)+"&category="+escape(I)+"&reply_email="+escape(F)+"&reply_mobile="+escape(D);request.send(H)}else{alert("Please Enter the complete details")}}function updateNewBooksPostListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function PostAdCarPool(e,G){Rcategory="loc";Rsubcategory="loc";Rcategory1="loc";Rsubcategory1="loc";OnlyDisable();market_remove("AddsDisplayDiv");windowIsActive=true;var m=document.getElementById("AddsDisplayDiv");var D=document.getElementById("write_reviewDiv1");m.style.display="block";D.style.display="block";D.style.height="300px";m.style.width="760px";D.style.width="780px";var q=m;m.style.background="#ffffff";q.setAttribute("align","center");var w=1;var Y=document.createElement("table");Y.width="95%";Y.border=0;Y.cellSpacing=0;Y.cellPadding=0;Y.setAttribute("align","center");var AH=document.createElement("tbody");var W=document.createElement("tr");var c=document.createElement("td");var c=document.createElement("td");c.setAttribute("align","left");c.setAttribute("vAlign","middle");c.className="myAdsValidation";c.colSpan=2;var v=document.createElement("div");v.setAttribute("id","validation_info");c.appendChild(v);W.appendChild(c);var b=document.createElement("td");b.setAttribute("align","right");b.setAttribute("vAlign","middle");b.className="windowTitle";var z=document.createElement("img");z.setAttribute("src","images/close.jpg");z.onclick=Function("closeMarketWindow()");z.setAttribute("height","16");z.setAttribute("width","16");b.appendChild(z);AH.appendChild(W);var V=document.createElement("tr");var C=document.createElement("td");C.colSpan=2;C.className="windowTitle";var u=document.createElement("table");u.width="100%";u.border=0;u.cellSpacing=0;u.cellPadding=0;u.setAttribute("align","center");var B=document.createElement("tbody");var AK=document.createElement("tr");var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","middle");p.className="fieldNames";var Z=document.createTextNode("Step"+w+" - Ad Title");p.appendChild(Z);AK.appendChild(p);var o=document.createElement("td");o.setAttribute("align","left");o.setAttribute("vAlign","middle");o.setAttribute("width","1%");o.className="fieldNames";var AC=document.createTextNode(":");o.appendChild(AC);AK.appendChild(o);var l=document.createElement("td");l.setAttribute("align","left");l.setAttribute("vAlign","middle");l.className="fieldNames";var y=document.createElement("input");y.setAttribute("size","30");y.setAttribute("id","title_pool");l.appendChild(y);AK.appendChild(l);var h=document.createElement("td");h.setAttribute("align","left");h.setAttribute("vAlign","middle");h.className="myAdsEditDesp";var R=document.createTextNode("(Enter a short title for your ad)");h.appendChild(R);AK.appendChild(h);B.appendChild(AK);var AI=document.createElement("tr");var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.setAttribute("width","20%");O.className="fieldNames";w++;var Z=document.createTextNode("Step"+w+" - Trip");O.appendChild(Z);AI.appendChild(O);var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","middle");M.setAttribute("width","1%");M.className="fieldNames";var AC=document.createTextNode(":");M.appendChild(AC);AI.appendChild(M);var L=document.createElement("td");L.setAttribute("align","left");L.setAttribute("vAlign","middle");L.className="fieldNames";var g=document.createTextNode("From");L.appendChild(g);var AP=document.createTextNode(" ");L.appendChild(AP);var F=document.createElement("input");F.setAttribute("size","15");F.setAttribute("id","first_auto");F.setAttribute("autocomplete","off");L.appendChild(F);var AP=document.createTextNode(" ");L.appendChild(AP);var I=document.createTextNode("To");L.appendChild(I);var AP=document.createTextNode(" ");L.appendChild(AP);var E=document.createElement("input");E.setAttribute("size","15");E.setAttribute("id","first_auto1");E.setAttribute("autocomplete","off");L.appendChild(E);AI.appendChild(L);var J=document.createElement("td");J.setAttribute("align","left");J.setAttribute("vAlign","middle");J.className="myAdsEditDesp";var AQ=document.createTextNode("(Enter trip origin & destination)");J.appendChild(AQ);AI.appendChild(J);B.appendChild(AI);var AG=document.createElement("tr");var AN=document.createElement("td");AN.setAttribute("align","left");AN.setAttribute("vAlign","middle");AN.className="fieldNames";w++;var Z=document.createTextNode("Step"+w+" - Time");AN.appendChild(Z);AG.appendChild(AN);var AM=document.createElement("td");AM.setAttribute("align","left");AM.setAttribute("vAlign","middle");AM.setAttribute("width","1%");AM.className="fieldNames";var AC=document.createTextNode(":");AM.appendChild(AC);AG.appendChild(AM);var AL=document.createElement("td");AL.setAttribute("align","left");AL.setAttribute("vAlign","middle");AL.className="fieldNames";var g=document.createTextNode("Between");AL.appendChild(g);var AP=document.createTextNode(" ");AL.appendChild(AP);var F=document.createElement("input");F.setAttribute("size","15");F.setAttribute("id","pool_time1");F.setAttribute("readonly",true);F.onclick=Function('timeSelector("pool_time1")');var X=document.createElement("td");var T=document.createElement("select");T.setAttribute("id","Bhours");for(i=1;i<13;i++){var K=document.createElement("option");if(i<10){K.value="0"+i;K.text="0"+i}else{K.value=i;K.text=i}T.options.add(K,i-1)}AL.appendChild(T);var f=document.createElement("select");f.setAttribute("id","Bminutes");for(i=1;i<61;i++){var K=document.createElement("option");if(i<10){K.value="0"+i;K.text="0"+i}else{K.value=i;K.text=i}f.options.add(K,i-1)}AL.appendChild(f);var AR=document.createElement("select");AR.setAttribute("id","BAM_PM");var K=document.createElement("option");K.value="AM";K.text="AM";AR.options.add(K,0);var K=document.createElement("option");K.value="PM";K.text="PM";AR.options.add(K,1);AL.appendChild(AR);var I=document.createTextNode(" To ");AL.appendChild(I);var E=document.createElement("input");E.setAttribute("size","15");E.setAttribute("id","pool_time2");E.setAttribute("readonly",true);E.onclick=Function('timeSelector("pool_time2")');var T=document.createElement("select");T.setAttribute("id","Thours");for(i=1;i<13;i++){var K=document.createElement("option");if(i<10){K.value="0"+i;K.text="0"+i}else{K.value=i;K.text=i}T.options.add(K,i-1)}AL.appendChild(T);var f=document.createElement("select");f.setAttribute("id","Tminutes");for(i=1;i<61;i++){var K=document.createElement("option");if(i<10){K.value="0"+i;K.text="0"+i}else{K.value=i;K.text=i}f.options.add(K,i-1)}AL.appendChild(f);var AR=document.createElement("select");AR.setAttribute("id","TAM_PM");var K=document.createElement("option");K.value="AM";K.text="AM";AR.options.add(K,0);var K=document.createElement("option");K.value="PM";K.text="PM";AR.options.add(K,1);AL.appendChild(AR);AG.appendChild(AL);var AJ=document.createElement("td");AJ.setAttribute("align","left");AJ.setAttribute("vAlign","middle");AJ.className="myAdsEditDesp";AJ.setAttribute("id","timeSpace");var AQ=document.createTextNode("(Enter trip timings)");AJ.appendChild(AQ);AG.appendChild(AJ);B.appendChild(AG);var AF=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","top");Q.className="fieldNames";w++;var d=document.createTextNode("Step"+w+" - Days");Q.appendChild(d);AF.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","top");P.className="fieldNames";var AA=document.createTextNode(":");P.appendChild(AA);AF.appendChild(P);var N=document.createElement("td");N.colSpan=2;var s=document.createElement("table");s.width="100%";s.border=0;s.cellSpacing=0;s.cellPadding=0;s.setAttribute("align","center");var A=document.createElement("tbody");var AK=document.createElement("tr");var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","middle");p.setAttribute("width","390");p.className="fieldNames";var AE=document.createElement("input");AE.setAttribute("type","checkbox");AE.setAttribute("id","weekday1");AE.setAttribute("name","weekDay");AE.setAttribute("value","Mon");AE.className="check";p.appendChild(AE);var S=document.createTextNode("Monday");p.appendChild(S);var AP=document.createTextNode(" ");p.appendChild(AP);var AE=document.createElement("input");AE.setAttribute("type","checkbox");AE.setAttribute("id","weekday2");AE.setAttribute("name","weekDay");AE.setAttribute("value","Tue");AE.className="check";p.appendChild(AE);var S=document.createTextNode("Tuesday");p.appendChild(S);var AP=document.createTextNode(" ");p.appendChild(AP);var AE=document.createElement("input");AE.setAttribute("type","checkbox");AE.setAttribute("id","weekday3");AE.setAttribute("name","weekDay");AE.setAttribute("value","Wed");AE.className="check";p.appendChild(AE);var S=document.createTextNode("Wednesday");p.appendChild(S);var AP=document.createTextNode(" ");p.appendChild(AP);var AE=document.createElement("input");AE.setAttribute("type","checkbox");AE.setAttribute("id","weekday4");AE.setAttribute("name","weekDay");AE.setAttribute("value","Thu");AE.className="check";p.appendChild(AE);var S=document.createTextNode("Thursday");p.appendChild(S);var AB=document.createElement("br");p.appendChild(AB);var AE=document.createElement("input");AE.setAttribute("type","checkbox");AE.setAttribute("id","weekday5");AE.setAttribute("name","weekDay");AE.setAttribute("value","Fri");AE.className="check";p.appendChild(AE);var S=document.createTextNode("Friday");p.appendChild(S);var AP=document.createTextNode(" ");p.appendChild(AP);var AE=document.createElement("input");AE.setAttribute("type","checkbox");AE.setAttribute("id","weekday6");AE.setAttribute("name","weekDay");AE.setAttribute("value","Sat");AE.className="check";p.appendChild(AE);var S=document.createTextNode("Saturday");p.appendChild(S);var AP=document.createTextNode(" ");p.appendChild(AP);var AE=document.createElement("input");AE.setAttribute("type","checkbox");AE.setAttribute("id","weekday7");AE.setAttribute("name","weekDay");AE.setAttribute("value","Sun");AE.className="check";p.appendChild(AE);var S=document.createTextNode("Sunday");p.appendChild(S);AK.appendChild(p);var o=document.createElement("td");o.setAttribute("align","left");o.setAttribute("vAlign","top");o.className="myAdsEditDesp";var H=document.createTextNode("(Select the days for which you need the carpool)");o.appendChild(H);AK.appendChild(o);A.appendChild(AK);s.appendChild(A);N.appendChild(s);AF.appendChild(N);B.appendChild(AF);var AF=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","top");Q.className="fieldNames";w++;var d=document.createTextNode("Step"+w+" - Description");Q.appendChild(d);AF.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","top");P.className="fieldNames";var AA=document.createTextNode(":");P.appendChild(AA);AF.appendChild(P);var N=document.createElement("td");N.colSpan=2;var s=document.createElement("table");s.width="100%";s.border=0;s.cellSpacing=0;s.cellPadding=0;s.setAttribute("align","center");var A=document.createElement("tbody");var AK=document.createElement("tr");var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","middle");p.setAttribute("width","370");p.className="fieldNames";var U=document.createElement("textArea");U.setAttribute("rows","7");U.setAttribute("cols","55");U.setAttribute("id","descp_pool");p.appendChild(U);AK.appendChild(p);var o=document.createElement("td");o.setAttribute("align","left");o.setAttribute("vAlign","top");o.className="myAdsEditDesp";var H=document.createTextNode("(Enter a short note on yourself & for what purpose you require the carpool)");o.appendChild(H);AK.appendChild(o);A.appendChild(AK);s.appendChild(A);N.appendChild(s);AF.appendChild(N);B.appendChild(AF);var AD=document.createElement("tr");var AO=document.createElement("td");AO.setAttribute("align","right");AO.setAttribute("vAlign","middle");AO.colSpan=4;var x=document.createElement("input");x.setAttribute("type","button");x.setAttribute("value","Back");x.onclick=Function("postMarketAds()");AO.appendChild(x);var AP=document.createTextNode(" ");AO.appendChild(AP);var r=document.createElement("input");r.setAttribute("type","button");r.setAttribute("value","Next");r.onclick=Function('validateCarpoolPost("'+e+'","'+G+'")');if(G=="Edit"){r.setAttribute("value","Save");x.setAttribute("value","Cancel");x.onclick=Function("closeMarketWindow()")}AO.appendChild(r);AD.appendChild(AO);B.appendChild(AD);u.appendChild(B);C.appendChild(u);V.appendChild(C);AH.appendChild(V);Y.appendChild(AH);q.appendChild(Y);testT();x_auto_init()}function validateCarpoolPost(E,P){var R=document.getElementById("title_pool");var O=document.getElementById("first_auto");var H=document.getElementById("first_auto1");var N=document.getElementById("Bhours").value+":"+document.getElementById("Bminutes").value+":"+document.getElementById("BAM_PM").value;var S=document.getElementById("Thours").value+":"+document.getElementById("Tminutes").value+":"+document.getElementById("TAM_PM").value;var F=new Array;F[0]=document.getElementById("weekday1");F[1]=document.getElementById("weekday2");F[2]=document.getElementById("weekday3");F[3]=document.getElementById("weekday4");F[4]=document.getElementById("weekday5");F[5]=document.getElementById("weekday6");F[6]=document.getElementById("weekday7");var K=document.getElementById("descp_pool").value.replace(/\n/g," ");var L=document.getElementById("validation_info");while(L.hasChildNodes()){var A=L.firstChild;L.removeChild(A)}var C=false;var G="";var G="";for(i=0;i<7;i++){if(F[i].checked==true){G=G+F[i].value;G=G+",";C=true}}G=G.substring(0,G.length-1);if(R.value==""){var D=document.createTextNode("Please Enter the Title for your Ad");L.appendChild(D)}else{if(O.value==""){var M=document.createTextNode("Please Enter from Where Pool Starts");L.appendChild(M)}else{if(H.value==""){var J=document.createTextNode("Please Enter up to Where the Pool is");L.appendChild(J)}else{if(K==""){var Q=document.createTextNode("Please Enter Description of your Add");L.appendChild(Q)}else{if(C==false){var Q=document.createTextNode("Please Select Atleast One Day for the Pool");L.appendChild(Q)}else{if(P=="PostAd"){var I=checkLoginNew();if(I==1){NewCarpoolPost(E)}else{NewPostAdsLogin("Communities",E)}}else{if(P=="Edit"){var B="title="+escape(R.value)+"&description="+escape(K)+"&from="+escape(O.value)+"&to="+escape(H.value)+"&time1="+escape(N)+"&time2="+escape(S)+"&days="+escape(G)+"&clid="+escape(clid);postEditCarPool(B)}}}}}}}}function NewCarpoolPost(F){var E=document.getElementById("title_pool").value;var J=document.getElementById("first_auto").value;var G=document.getElementById("first_auto1").value;var I=document.getElementById("Bhours").value+":"+document.getElementById("Bminutes").value+":"+document.getElementById("BAM_PM").value;var K=document.getElementById("Thours").value+":"+document.getElementById("Tminutes").value+":"+document.getElementById("TAM_PM").value;var A=new Array;A[0]=document.getElementById("weekday1");A[1]=document.getElementById("weekday2");A[2]=document.getElementById("weekday3");A[3]=document.getElementById("weekday4");A[4]=document.getElementById("weekday5");A[5]=document.getElementById("weekday6");A[6]=document.getElementById("weekday7");var H=document.getElementById("descp_pool").value.replace(/\n/g,"~");var L="";for(i=0;i<7;i++){if(A[i].checked==true){L=L+A[i].value;L=L+","}}L=L.substring(0,L.length-1);var D="";var C=0;if(document.getElementById("market_post_email")){var D=document.getElementById("market_post_email").value}else{D="0"}if(document.getElementById("market_post_mobile")){C=document.getElementById("market_post_mobile").value}else{C=0}if(D!=""){show_loader();var B="Marketplace/post_carpool_listing.php";request.open("POST",B,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewCarpoolPostListing;url1="title="+escape(E)+"&description="+escape(H)+"&from="+escape(J)+"&to="+escape(G)+"&time1="+escape(I)+"&time2="+escape(K)+"&days="+escape(L)+"&reply_email="+escape(D)+"&reply_mobile="+escape(C);request.send(url1)}else{alert("Please Enter the complete details")}}function updateNewCarpoolPostListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function PostMoviesGames(R,Ac){Rcategory="Movies,Games";Rsubcategory=R;windowIsActive=true;OnlyDisable();market_remove("AddsDisplayDiv");var AJ=document.getElementById("AddsDisplayDiv");var r=document.getElementById("write_reviewDiv1");AJ.style.display="block";r.style.display="block";r.style.height="300px";AJ.style.width="760px";r.style.width="780px";var F=AJ;AJ.style.background="#ffffff";F.setAttribute("align","center");var Al=1;var T=document.createElement("table");T.width="95%";T.border=0;T.cellSpacing=0;T.cellPadding=0;T.setAttribute("align","center");var g=document.createElement("tbody");var AS=document.createElement("tr");var I=document.createElement("td");var I=document.createElement("td");I.setAttribute("align","left");I.setAttribute("vAlign","middle");I.className="myAdsValidation";I.colSpan=2;var K=document.createElement("div");K.setAttribute("id","validation_info");I.appendChild(K);AS.appendChild(I);var H=document.createElement("td");H.setAttribute("align","right");H.setAttribute("vAlign","middle");H.className="windowTitle";var J=document.createElement("img");J.setAttribute("src","images/close.jpg");J.onclick=Function("closeMarketWindow()");J.setAttribute("height","16");J.setAttribute("width","16");H.appendChild(J);g.appendChild(AS);var AQ=document.createElement("tr");var Ak=document.createElement("td");Ak.colSpan=2;Ak.className="windowTitle";var Z=document.createElement("table");Z.width="100%";Z.border=0;Z.cellSpacing=0;Z.cellPadding=0;Z.setAttribute("align","center");var p=document.createElement("tbody");var AG=document.createElement("tr");var AO=document.createElement("td");AO.setAttribute("align","left");AO.setAttribute("vAlign","middle");AO.className="fieldNames";var P=document.createTextNode("Step"+Al+" - Ad Title");AO.appendChild(P);AG.appendChild(AO);var AN=document.createElement("td");AN.setAttribute("align","left");AN.setAttribute("vAlign","middle");AN.setAttribute("width","1%");AN.className="fieldNames";var AZ=document.createTextNode(":");AN.appendChild(AZ);AG.appendChild(AN);var AM=document.createElement("td");AM.setAttribute("align","left");AM.setAttribute("vAlign","middle");AM.setAttribute("width","27%");AM.className="fieldNames";var Aj=document.createElement("input");Aj.setAttribute("size","30");Aj.setAttribute("id","cd_dvd_title");AM.appendChild(Aj);AG.appendChild(AM);var AK=document.createElement("td");AK.setAttribute("align","left");AK.setAttribute("vAlign","middle");AK.className="myAdsEditDesp";var AI=document.createTextNode("(Enter a short title for your ad)");AK.appendChild(AI);AG.appendChild(AK);p.appendChild(AG);var AF=document.createElement("tr");var w=document.createElement("td");w.setAttribute("align","left");w.setAttribute("vAlign","middle");w.setAttribute("width","24%");w.className="fieldNames";Al++;var f=document.createTextNode("Step"+Al+" - CD/DVD Name");w.appendChild(f);AF.appendChild(w);var u=document.createElement("td");u.setAttribute("align","left");u.setAttribute("vAlign","middle");u.className="fieldNames";var AY=document.createTextNode(":");u.appendChild(AY);AF.appendChild(u);var s=document.createElement("td");s.setAttribute("align","left");s.setAttribute("vAlign","middle");s.setAttribute("width","28%");s.className="fieldNames";var Ah=document.createElement("input");Ah.setAttribute("size","30");Ah.setAttribute("id","first_auto");Ah.setAttribute("autocomplete","off");s.appendChild(Ah);AF.appendChild(s);var z=document.createElement("div");z.className="shadow";z.setAttribute("id","shadow");s.appendChild(z);var AE=document.createElement("div");AE.className="output";AE.setAttribute("id","output");s.appendChild(AE);AF.appendChild(s);var q=document.createElement("td");q.setAttribute("align","left");q.setAttribute("vAlign","middle");q.className="myAdsEditDesp";if(R=="Movies"){var l=document.createTextNode("(Enter the name of the Movie & select the best option)");q.appendChild(l)}else{if(R=="Music"){var l=document.createTextNode("(Enter the name of the Album & select the best option)");q.appendChild(l)}else{if(R=="Games"){var l=document.createTextNode("(Enter the name of the Game & select the best option)");q.appendChild(l)}}}q.appendChild(l);AF.appendChild(q);p.appendChild(AF);var AD=document.createElement("tr");var d=document.createElement("td");d.setAttribute("align","left");d.setAttribute("vAlign","middle");d.className="fieldNames";Al++;var x=document.createTextNode("Step"+Al+" - Media Type");d.appendChild(x);AD.appendChild(d);var c=document.createElement("td");c.setAttribute("align","left");c.setAttribute("vAlign","middle");c.className="fieldNames";var AX=document.createTextNode(":");c.appendChild(AX);AD.appendChild(c);var b=document.createElement("td");b.setAttribute("align","left");b.setAttribute("vAlign","middle");b.className="fieldNames";var m=document.createElement("select");m.setAttribute("id","cd_dvd_media");var X=document.createElement("option");X.value="Select";X.text="Select";m.options.add(X,0);var V=document.createElement("option");V.value="CD";V.text="CD";m.options.add(V,1);var U=document.createElement("option");U.value="DVD";U.text="DVD";m.options.add(U,2);b.appendChild(m);AD.appendChild(b);var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.className="myAdsEditDesp";var Q=document.createTextNode("(Select the type of media)");Y.appendChild(Q);AD.appendChild(Y);p.appendChild(AD);if(R=="Games"){var AC=document.createElement("tr");var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.className="fieldNames";Al++;var AP=document.createTextNode("Step"+Al+" - Platform");O.appendChild(AP);AC.appendChild(O);var N=document.createElement("td");N.setAttribute("align","left");N.setAttribute("vAlign","middle");N.className="fieldNames";var AW=document.createTextNode(":");N.appendChild(AW);AC.appendChild(N);var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","middle");M.className="fieldNames";var h=document.createElement("select");h.setAttribute("id","games_platform");var S="Marketplace/get_platform.php";request2.open("POST",S,true);request2.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var AR="";request2.send(S);request2.onreadystatechange=request1.onreadystatechange=function(){if(request2.readyState==4){re=request2.responseText;arrx=re.split("*");var An=document.createElement("option");An.value="";An.text="Select";h.options.add(An,0);for(n=0;n<arrx.length;n++){var Am=document.createElement("option");Am.value=arrx[n];Am.text=arrx[n];h.options.add(Am,parseInt(n+1))}}};M.appendChild(h);AC.appendChild(M);var L=document.createElement("td");L.setAttribute("align","left");L.setAttribute("vAlign","middle");L.className="myAdsEditDesp";var G=document.createTextNode("(Select the type of game platform)");L.appendChild(G);AC.appendChild(L);p.appendChild(AC)}var AB=document.createElement("tr");var E=document.createElement("td");E.setAttribute("align","left");E.setAttribute("vAlign","middle");E.className="fieldNames";Al++;var Ad=document.createTextNode("Step"+Al+" - Price");E.appendChild(Ad);AB.appendChild(E);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";var AV=document.createTextNode(":");D.appendChild(AV);AB.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="fieldNames";var Ab=document.createElement("input");Ab.setAttribute("size","30");Ab.setAttribute("id","cd_dvd_price");C.appendChild(Ab);AB.appendChild(C);var B=document.createElement("td");B.setAttribute("align","left");B.setAttribute("vAlign","middle");B.className="myAdsEditDesp";var Af=document.createTextNode("(Enter your selling price)");B.appendChild(Af);AB.appendChild(B);p.appendChild(AB);var AA=document.createElement("tr");var Ai=document.createElement("td");Ai.setAttribute("align","left");Ai.setAttribute("vAlign","top");Ai.className="fieldNames";Al++;var A=document.createTextNode("Step"+Al+" - Description");Ai.appendChild(A);AA.appendChild(Ai);var Ag=document.createElement("td");Ag.setAttribute("align","left");Ag.setAttribute("vAlign","top");Ag.className="fieldNames";var AU=document.createTextNode(":");Ag.appendChild(AU);AA.appendChild(Ag);var Ae=document.createElement("td");Ae.colSpan=2;var W=document.createElement("table");W.width="100%";W.border=0;W.cellSpacing=0;W.cellPadding=0;W.setAttribute("align","center");var o=document.createElement("tbody");var AG=document.createElement("tr");var AO=document.createElement("td");AO.setAttribute("align","left");AO.setAttribute("vAlign","middle");AO.setAttribute("width","370");AO.className="fieldNames";var Aa=document.createElement("textArea");Aa.setAttribute("rows","6");Aa.setAttribute("cols","55");Aa.setAttribute("id","cd_dvd_note");AO.appendChild(Aa);AG.appendChild(AO);var AN=document.createElement("td");AN.setAttribute("align","left");AN.setAttribute("vAlign","top");AN.className="myAdsEditDesp";var AL=document.createTextNode("(Enter a brief description of your product & terms of sale)");AN.appendChild(AL);AG.appendChild(AN);o.appendChild(AG);W.appendChild(o);Ae.appendChild(W);AA.appendChild(Ae);p.appendChild(AA);var y=document.createElement("tr");var AT=document.createElement("td");AT.setAttribute("align","right");AT.setAttribute("vAlign","middle");AT.colSpan=4;var v=document.createElement("input");v.setAttribute("type","button");v.setAttribute("value","Back");v.onclick=Function("postMarketAds()");AT.appendChild(v);var AH=document.createTextNode(" ");AT.appendChild(AH);var e=document.createElement("input");e.setAttribute("type","button");e.setAttribute("value","Next");e.onclick=Function('validateCdDvdPost("'+R+'","'+Ac+'")');if(Ac=="Edit"){e.setAttribute("value","Save");v.setAttribute("value","Cancel");v.onclick=Function("closeMarketWindow()")}AT.appendChild(e);y.appendChild(AT);p.appendChild(y);Z.appendChild(p);Ak.appendChild(Z);AQ.appendChild(Ak);g.appendChild(AQ);T.appendChild(g);F.appendChild(T);testT();xauto_init()}function validateCdDvdPost(D,N){var K=document.getElementById("cd_dvd_title");var H=document.getElementById("cd_dvd_note").value.replace(/\n/g," ");var B=document.getElementById("first_auto");var E=document.getElementById("cd_dvd_price");var A=document.getElementById("cd_dvd_media");if(D=="Games"){var O=document.getElementById("games_platform").value}else{var O="N/A"}var P=document.getElementById("validation_info");while(P.hasChildNodes()){var L=P.firstChild;P.removeChild(L)}if(K.value==""){var G=document.createTextNode("Please Enter the Title for your Ad");P.appendChild(G)}else{if(B.value==""){var M=document.createTextNode("Please Enter Cd/Dvd Name");P.appendChild(M)}else{if(A.value=="Select"){var M=document.createTextNode("Please Select the Media Type");P.appendChild(M)}else{if(O==""){var C=document.createTextNode("Please Enter the Platform for your Game");P.appendChild(C)}else{if(E.value==""){var C=document.createTextNode("Please Enter the Price for your Cd/Dvd");P.appendChild(C)}else{if(IsNumeric(E.value)){var C=document.createTextNode("Please Enter Valid Price for your Cd/Dvd");P.appendChild(C)}else{if(H==""){var F=document.createTextNode("Please Enter your Note");P.appendChild(F)}else{if(N=="PostAd"){var J=checkLoginNew();if(J==1){NewCdDvdPost(D)}else{NewPostAdsLogin("Movies,Games",D)}}else{if(N=="Edit"){var I="title="+escape(K.value)+"&description="+escape(H)+"&movie_name="+escape(B.value)+"&price="+escape(E.value)+"&sub_category="+escape(D)+"&media="+escape(A.value)+"&game_platform="+escape(O)+"&clid="+escape(clid);postEditMoviesGames(I)}}}}}}}}}}function NewCdDvdPost(G){var K=document.getElementById("cd_dvd_title").value;var I=document.getElementById("cd_dvd_note").value.replace(/\n/g,"~");var C=document.getElementById("first_auto").value;var H=document.getElementById("cd_dvd_price").value;var A=document.getElementById("cd_dvd_media").value;var M;if(G=="Games"){M=document.getElementById("games_platform").value}else{M=" "}var L="Movies,Games";var F=G;var E="";var D=0;if(document.getElementById("market_post_email")){var E=document.getElementById("market_post_email").value}else{E="0"}if(document.getElementById("market_post_mobile")){D=document.getElementById("market_post_mobile").value}else{D=0}if(E!=""){show_loader();var B="Marketplace/post_cd_dvd_listing.php";request.open("POST",B,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewCdDvdPostListing;var J="title="+escape(K)+"&description="+escape(I)+"&movie_name="+escape(C)+"&price="+escape(H)+"&sub_category="+escape(F)+"&media="+escape(A)+"&game_platform="+escape(M)+"&reply_email="+escape(E)+"&reply_mobile="+escape(D);request.send(J)}else{alert("Please Enter the complete details")}}function updateNewCdDvdPostListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function PostAdTickets(S,An){Rcategory2="Movies,Games";Rsubcategory2="";Rcategory1="Entertainment";Rsubcategory1="Multiplexes";Rcategory="loc";Rsubcategory="loc_3";windowIsActive=true;OnlyDisable();market_remove("AddsDisplayDiv");var AR=document.getElementById("AddsDisplayDiv");var x=document.getElementById("write_reviewDiv1");AR.style.display="block";x.style.display="block";x.style.height="340px";AR.style.width="760px";x.style.width="780px";var F=AR;AR.style.background="#ffffff";F.setAttribute("align","center");var Ay=1;var T=document.createElement("table");T.width="100%";T.border=0;T.cellSpacing=0;T.cellPadding=0;T.setAttribute("align","center");var o=document.createElement("tbody");var Aa=document.createElement("tr");var J=document.createElement("td");var J=document.createElement("td");J.setAttribute("align","left");J.setAttribute("vAlign","middle");J.className="myAdsValidation";J.colSpan=2;var M=document.createElement("div");M.setAttribute("id","validation_info");J.appendChild(M);Aa.appendChild(J);var I=document.createElement("td");I.setAttribute("align","right");I.setAttribute("vAlign","middle");I.className="windowTitle";var K=document.createElement("img");K.setAttribute("src","images/close.jpg");K.onclick=Function("closeMarketWindow()");K.setAttribute("height","16");K.setAttribute("width","16");I.appendChild(K);o.appendChild(Aa);var AZ=document.createElement("tr");var Ax=document.createElement("td");Ax.colSpan=2;Ax.className="windowTitle";var d=document.createElement("table");d.width="100%";d.border=0;d.cellSpacing=0;d.cellPadding=0;d.setAttribute("align","center");var v=document.createElement("tbody");var AM=document.createElement("tr");var AX=document.createElement("td");AX.setAttribute("align","left");AX.setAttribute("vAlign","middle");AX.className="fieldNames";var R=document.createTextNode("Step"+Ay+" - Ad Title");AX.appendChild(R);AM.appendChild(AX);var AW=document.createElement("td");AW.setAttribute("align","left");AW.setAttribute("vAlign","middle");AW.setAttribute("width","1%");AW.className="fieldNames";var Al=document.createTextNode(":");AW.appendChild(Al);AM.appendChild(AW);var AV=document.createElement("td");AV.setAttribute("align","left");AV.setAttribute("vAlign","middle");AV.className="fieldNames";var Aw=document.createElement("input");Aw.setAttribute("size","30");Aw.setAttribute("id","ticket_title");AV.appendChild(Aw);AM.appendChild(AV);var AT=document.createElement("td");AT.setAttribute("align","left");AT.setAttribute("vAlign","middle");AT.className="myAdsEditDesp";var AO=document.createTextNode("(Enter a short title for your ad)");AT.appendChild(AO);AM.appendChild(AT);v.appendChild(AM);if(S=="Movie"||S=="Concert"){var AL=document.createElement("tr");var AB=document.createElement("td");AB.setAttribute("align","left");AB.setAttribute("vAlign","middle");AB.className="fieldNames";Ay++;var l=document.createTextNode("Step"+Ay+" - "+S+" Name");AB.appendChild(l);AL.appendChild(AB);var z=document.createElement("td");z.setAttribute("align","left");z.setAttribute("vAlign","middle");z.className="fieldNames";var Aj=document.createTextNode(":");z.appendChild(Aj);AL.appendChild(z);var y=document.createElement("td");y.setAttribute("align","left");y.setAttribute("vAlign","middle");y.className="fieldNames";var Au=document.createElement("input");Au.setAttribute("size","30");Au.setAttribute("id","first_auto2");Au.setAttribute("autocomplete","off");y.appendChild(Au);AL.appendChild(y);var AF=document.createElement("div");AF.className="shadow";AF.setAttribute("id","shadow2");y.appendChild(AF);var AK=document.createElement("div");AK.className="output";AK.setAttribute("id","output2");y.appendChild(AK);AL.appendChild(y);var w=document.createElement("td");w.setAttribute("align","left");w.setAttribute("vAlign","middle");w.className="myAdsEditDesp";var p=document.createTextNode("(Enter the name of the "+S+")");w.appendChild(p);w.appendChild(p);AL.appendChild(w);v.appendChild(AL)}else{if(S=="Match"){var AL=document.createElement("tr");var AB=document.createElement("td");AB.setAttribute("align","left");AB.setAttribute("vAlign","middle");AB.className="fieldNames";Ay++;var l=document.createTextNode("Step"+Ay+" - Event Type");AB.appendChild(l);AL.appendChild(AB);var z=document.createElement("td");z.setAttribute("align","left");z.setAttribute("vAlign","middle");z.className="fieldNames";var Aj=document.createTextNode(":");z.appendChild(Aj);AL.appendChild(z);var y=document.createElement("td");y.setAttribute("align","left");y.setAttribute("vAlign","middle");y.className="fieldNames";var q=document.createElement("select");q.setAttribute("id","first_auto2");var b=document.createElement("option");b.value="";b.text="Select";q.options.add(b,0);var AS=new Array("Cricket","Tennis","Foorball","Hockey","Squash","Badminton","Table Tennis","Swimming","Pool","Billiards","Track & Field","Others");var AQ=AS.length;for(i=0;i<AQ;i++){var Y=document.createElement("option");Y.value=AS[i];Y.text=AS[i];q.options.add(Y,i+1)}y.appendChild(q);AL.appendChild(y);var w=document.createElement("td");w.setAttribute("align","left");w.setAttribute("vAlign","middle");w.className="myAdsEditDesp";var G=document.createTextNode("(Select the type of sporting event)");w.appendChild(G);AL.appendChild(w);v.appendChild(AL)}}var AJ=document.createElement("tr");var g=document.createElement("td");g.setAttribute("align","left");g.setAttribute("vAlign","middle");g.setAttribute("width","22%");g.className="fieldNames";Ay++;var R=document.createTextNode("Step"+Ay+" - Date/Time");g.appendChild(R);AJ.appendChild(g);var f=document.createElement("td");f.setAttribute("align","left");f.setAttribute("vAlign","middle");f.setAttribute("width","1%");f.className="fieldNames";var Al=document.createTextNode(":");f.appendChild(Al);AJ.appendChild(f);var e=document.createElement("td");e.setAttribute("align","left");e.setAttribute("vAlign","middle");e.setAttribute("width","40%");e.className="fieldNames";var X=document.createTextNode("Date");e.appendChild(X);var AN=document.createTextNode(" ");e.appendChild(AN);var W=document.createElement("input");W.setAttribute("size","8");W.setAttribute("id","ticket_date");e.appendChild(W);var r=document.createElement("img");r.setAttribute("src","images/cal1.jpg");r.setAttribute("align","center");r.setAttribute("width","20");r.setAttribute("height","20");r.onclick=Function('displayCalendar("ticket_date","dd/mm/yyyy",this)');e.appendChild(r);var X=document.createTextNode(" Time");e.appendChild(X);var V=document.createElement("input");V.setAttribute("size","8");V.setAttribute("id","time_field");V.onclick=Function('timeSelector("time_field")');var m=document.createElement("select");m.setAttribute("id","Thours");for(i=1;i<13;i++){var U=document.createElement("option");if(i<10){U.value="0"+i;U.text="0"+i}else{U.value=i;U.text=i}m.options.add(U,i-1)}e.appendChild(m);var H=document.createElement("select");H.setAttribute("id","Tminutes");for(i=1;i<61;i++){var U=document.createElement("option");if(i<10){U.value="0"+i;U.text="0"+i}else{U.value=i;U.text=i}H.options.add(U,i-1)}e.appendChild(H);var AP=document.createElement("select");AP.setAttribute("id","TAM_PM");var U=document.createElement("option");U.value="AM";U.text="AM";AP.options.add(U,0);var U=document.createElement("option");U.value="PM";U.text="PM";AP.options.add(U,1);e.appendChild(AP);AJ.appendChild(e);var c=document.createElement("td");c.setAttribute("align","left");c.setAttribute("vAlign","middle");c.className="myAdsEditDesp";c.setAttribute("id","timeSpace");var p=document.createTextNode("(Enter the date & time of the "+S+")");c.appendChild(p);AJ.appendChild(c);v.appendChild(AJ);if(S=="Movie"||S=="Concert"){var AI=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.className="fieldNames";Ay++;var AY=document.createTextNode("Step"+Ay+" - "+S+" Hall");Q.appendChild(AY);AI.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","middle");P.className="fieldNames";var Ai=document.createTextNode(":");P.appendChild(Ai);AI.appendChild(P);var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.className="fieldNames";var Ao=document.createElement("input");Ao.setAttribute("size","30");Ao.setAttribute("id","first_auto1");Ao.setAttribute("autocomplete","off");O.appendChild(Ao);var AF=document.createElement("div");AF.className="shadow";AF.setAttribute("id","shadow1");O.appendChild(AF);var AK=document.createElement("div");AK.className="output";AK.setAttribute("id","output1");O.appendChild(AK);AI.appendChild(O);var N=document.createElement("td");N.setAttribute("align","left");N.setAttribute("vAlign","middle");N.className="myAdsEditDesp";var G=document.createTextNode("(Enter the name of the "+S+" Hall)");N.appendChild(G);N.appendChild(G);AI.appendChild(N);v.appendChild(AI)}else{if(S=="Match"){var AI=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.className="fieldNames";Ay++;var AY=document.createTextNode("Step"+Ay+" - Venue");Q.appendChild(AY);AI.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","middle");P.className="fieldNames";var Ai=document.createTextNode(":");P.appendChild(Ai);AI.appendChild(P);var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.className="fieldNames";var Ao=document.createElement("input");Ao.setAttribute("size","30");Ao.setAttribute("id","first_auto1");Ao.setAttribute("autocomplete","off");O.appendChild(Ao);AI.appendChild(O);var N=document.createElement("td");N.setAttribute("align","left");N.setAttribute("vAlign","middle");N.className="myAdsEditDesp";var G=document.createTextNode("(Enter the match venue)");N.appendChild(G);N.appendChild(G);AI.appendChild(N);v.appendChild(AI)}}var AH=document.createElement("tr");var E=document.createElement("td");E.setAttribute("align","left");E.setAttribute("vAlign","middle");E.className="fieldNames";Ay++;var Aq=document.createTextNode("Step"+Ay+" - Locality");E.appendChild(Aq);AH.appendChild(E);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";var Ah=document.createTextNode(":");D.appendChild(Ah);AH.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="fieldNames";var Am=document.createElement("input");Am.setAttribute("size","20");Am.setAttribute("id","first_auto");Am.setAttribute("autocomplete","off");Am.setAttribute("name","autocomplete");Am.className="search";C.appendChild(Am);var AF=document.createElement("div");AF.className="shadow";AF.setAttribute("id","shadow");C.appendChild(AF);var AK=document.createElement("div");AK.className="output";AK.setAttribute("id","output");C.appendChild(AK);AH.appendChild(C);var B=document.createElement("td");B.setAttribute("align","left");B.setAttribute("vAlign","middle");B.className="myAdsEditDesp";var As=document.createTextNode("(Select the locality of the "+S+" Hall)");B.appendChild(As);AH.appendChild(B);v.appendChild(AH);var AG=document.createElement("tr");var Av=document.createElement("td");Av.setAttribute("align","left");Av.setAttribute("vAlign","middle");Av.className="fieldNames";Ay++;var A=document.createTextNode("Step"+Ay+" - Price");Av.appendChild(A);AG.appendChild(Av);var At=document.createElement("td");At.setAttribute("align","left");At.setAttribute("vAlign","middle");At.className="fieldNames";var Ag=document.createTextNode(":");At.appendChild(Ag);AG.appendChild(At);var Ar=document.createElement("td");Ar.setAttribute("align","left");Ar.setAttribute("vAlign","middle");Ar.className="fieldNames";var Ak=document.createElement("input");Ak.setAttribute("size","10");Ak.setAttribute("id","ticket_price");Ar.appendChild(Ak);AG.appendChild(Ar);var Ap=document.createElement("td");Ap.setAttribute("align","left");Ap.setAttribute("vAlign","middle");Ap.className="myAdsEditDesp";var AU=document.createTextNode("(Enter the price of your ticket)");Ap.appendChild(AU);AG.appendChild(Ap);v.appendChild(AG);var AE=document.createElement("tr");var Ae=document.createElement("td");Ae.setAttribute("align","left");Ae.setAttribute("vAlign","top");Ae.className="fieldNames";Ay++;var L=document.createTextNode("Step"+Ay+" - Description");Ae.appendChild(L);AE.appendChild(Ae);var Ac=document.createElement("td");Ac.setAttribute("align","left");Ac.setAttribute("vAlign","top");Ac.className="fieldNames";var Ad=document.createTextNode(":");Ac.appendChild(Ad);AE.appendChild(Ac);var Ab=document.createElement("td");Ab.colSpan=2;var Z=document.createElement("table");Z.width="100%";Z.border=0;Z.cellSpacing=0;Z.cellPadding=0;Z.setAttribute("align","center");var u=document.createElement("tbody");var AM=document.createElement("tr");var AX=document.createElement("td");AX.setAttribute("align","left");AX.setAttribute("vAlign","middle");AX.setAttribute("width","370");AX.className="fieldNames";var Af=document.createElement("textArea");Af.setAttribute("rows","7");Af.setAttribute("cols","55");Af.setAttribute("id","ticket_description");AX.appendChild(Af);AM.appendChild(AX);var AW=document.createElement("td");AW.setAttribute("align","left");AW.setAttribute("vAlign","top");AW.className="myAdsEditDesp";var s=document.createTextNode("(Enter a brief description of the arrangement & the type of ticket)");AW.appendChild(s);AM.appendChild(AW);u.appendChild(AM);Z.appendChild(u);Ab.appendChild(Z);AE.appendChild(Ab);v.appendChild(AE);var AD=document.createElement("tr");var AC=document.createElement("td");AC.setAttribute("align","right");AC.setAttribute("vAlign","middle");AC.colSpan=4;var AA=document.createElement("input");AA.setAttribute("type","button");AA.setAttribute("value","Back");AA.onclick=Function("postMarketAds()");AC.appendChild(AA);var AN=document.createTextNode(" ");AC.appendChild(AN);var h=document.createElement("input");h.setAttribute("type","button");h.setAttribute("value","Next");h.onclick=Function('validateTicketsPost("'+S+'","'+An+'")');if(An=="Edit"){h.setAttribute("value","Save");AA.setAttribute("value","Cancel");AA.onclick=Function("closeMarketWindow()")}AC.appendChild(h);AD.appendChild(AC);v.appendChild(AD);d.appendChild(v);Ax.appendChild(d);AZ.appendChild(Ax);o.appendChild(AZ);T.appendChild(o);F.appendChild(T);testT();if(S=="Movie"){x1_auto_init()}else{xauto_init()}}function validateTicketsPost(F,Q){var N=document.getElementById("ticket_title").value;var A=document.getElementById("first_auto2").value;var S=document.getElementById("ticket_date").value;var J=document.getElementById("Thours").value+":"+document.getElementById("Tminutes").value+":"+document.getElementById("TAM_PM").value;var H=document.getElementById("first_auto").value;var M=document.getElementById("first_auto1").value;var G=document.getElementById("ticket_price").value;var K=document.getElementById("ticket_description").value.replace(/\n/g," ");var O=document.getElementById("validation_info");while(O.hasChildNodes()){var B=O.firstChild;O.removeChild(B)}if(N==""){var E=document.createTextNode("Please Enter the title for your ad");O.appendChild(E)}else{if(K==""){var D=document.createTextNode("Please Enter your note");O.appendChild(D)}else{if(A=="Select"||A==""){if(F=="Match"){var L=document.createTextNode("Please Select Match type")}else{if(F=="Movie"){var L=document.createTextNode("Please Enter the Movie Name")}else{if(F=="Concert"){var L=document.createTextNode("Please Enter the Concert Name")}}}O.appendChild(L)}else{if(S==""){var U=document.createTextNode("Please Select a date");O.appendChild(U)}else{if(M==""){var P=document.createTextNode("Please Enter the Venue");O.appendChild(P)}else{if(H==""){var T=document.createTextNode("Please Enter Locality");O.appendChild(T)}else{if(G==""){var T=document.createTextNode("Please Mention a price for match ticket");O.appendChild(T)}else{if(IsNumeric(G)){var R=document.createTextNode("Please Enter Valid Vrice");O.appendChild(R)}else{if(Q=="PostAd"){var I=checkLoginNew();if(I==1){NewTicketPost(F)}else{NewPostAdsLogin("Tickets",F)}}else{if(Q=="Edit"){var C="title="+escape(N)+"&description="+escape(K)+"&movie_name="+escape(A)+"&date="+escape(S)+"&time="+escape(J)+"&price="+escape(G)+"&movie_hall="+escape(M)+"&location="+escape(H)+"&subcategory="+escape(F)+"&clid="+escape(clid);postEditTickets(C)}}}}}}}}}}}function NewTicketPost(E){var O=document.getElementById("ticket_title").value;var I=document.getElementById("first_auto2").value;var M=document.getElementById("ticket_date").value;var N=document.getElementById("Thours").value+":"+document.getElementById("Tminutes").value+":"+document.getElementById("TAM_PM").value;var L=document.getElementById("first_auto").value;var F=document.getElementById("first_auto1").value;var J=document.getElementById("ticket_price").value;var H=document.getElementById("ticket_description").value.replace(/\n/g," ");var K="Tickets";var D=E;var C="";var B=0;if(document.getElementById("market_post_email")){var C=document.getElementById("market_post_email").value}else{C="0"}if(document.getElementById("market_post_mobile")){B=document.getElementById("market_post_mobile").value}else{B=0}if(C!=""){show_loader();var A="Marketplace/post_tickets_listing.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewTicketPostListing;var G="title="+escape(O)+"&description="+escape(H)+"&movie_name="+escape(I)+"&date="+escape(M)+"&time="+escape(N)+"&price="+escape(J)+"&movie_hall="+escape(F)+"&location="+escape(L)+"&sub_category="+escape(D)+"&reply_email="+escape(C)+"&reply_mobile="+escape(B);request.send(G)}else{alert("Enter the complete details")}}function updateNewTicketPostListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function postAdPersonals(U,Ac){Rcategory="loc";Rsubcategory="loc";OnlyDisable();market_remove("AddsDisplayDiv");windowIsActive=true;var AM=document.getElementById("AddsDisplayDiv");var v=document.getElementById("write_reviewDiv1");AM.style.display="block";v.style.display="block";v.style.height="300px";AM.style.width="760px";v.style.width="780px";var E=AM;AM.style.background="#ffffff";E.setAttribute("align","center");var Ao=1;var W=document.createElement("table");W.width="95%";W.border=0;W.cellSpacing=0;W.cellPadding=0;W.setAttribute("align","center");var o=document.createElement("tbody");var AU=document.createElement("tr");var I=document.createElement("td");var I=document.createElement("td");I.setAttribute("align","left");I.setAttribute("vAlign","middle");I.className="myAdsValidation";I.colSpan=2;var N=document.createElement("div");N.setAttribute("id","validation_info");I.appendChild(N);AU.appendChild(I);var H=document.createElement("td");H.setAttribute("align","right");H.setAttribute("vAlign","middle");H.className="windowTitle";var J=document.createElement("img");J.setAttribute("src","images/close.jpg");J.onclick=Function("closeMarketWindow()");J.setAttribute("height","16");J.setAttribute("width","16");H.appendChild(J);o.appendChild(AU);var AT=document.createElement("tr");var An=document.createElement("td");An.colSpan=2;An.className="windowTitle";var Z=document.createElement("table");Z.width="100%";Z.border=0;Z.cellSpacing=0;Z.cellPadding=0;Z.setAttribute("align","center");var s=document.createElement("tbody");var AJ=document.createElement("tr");var AR=document.createElement("td");AR.setAttribute("align","left");AR.setAttribute("vAlign","middle");AR.className="fieldNames";var S=document.createTextNode("Step"+Ao+" - Ad Title");AR.appendChild(S);AJ.appendChild(AR);var AQ=document.createElement("td");AQ.setAttribute("align","left");AQ.setAttribute("vAlign","middle");AQ.setAttribute("width","1%");AQ.className="fieldNames";var Aa=document.createTextNode(":");AQ.appendChild(Aa);AJ.appendChild(AQ);var AP=document.createElement("td");AP.setAttribute("align","left");AP.setAttribute("vAlign","middle");AP.setAttribute("width","27%");AP.className="fieldNames";var Al=document.createElement("input");Al.setAttribute("size","30");Al.setAttribute("id","title_personal");AP.appendChild(Al);AJ.appendChild(AP);var AO=document.createElement("td");AO.setAttribute("align","left");AO.setAttribute("vAlign","middle");AO.className="myAdsEditDesp";var AL=document.createTextNode("(Enter a short title for your ad)");AO.appendChild(AL);AJ.appendChild(AO);s.appendChild(AJ);var AI=document.createElement("tr");var z=document.createElement("td");z.setAttribute("align","left");z.setAttribute("vAlign","middle");z.setAttribute("width","23%");z.className="fieldNames";Ao++;var h=document.createTextNode("Step"+Ao+" - Locality");z.appendChild(h);AI.appendChild(z);var x=document.createElement("td");x.setAttribute("align","left");x.setAttribute("vAlign","middle");x.className="fieldNames";var AZ=document.createTextNode(":");x.appendChild(AZ);AI.appendChild(x);var w=document.createElement("td");w.setAttribute("align","left");w.setAttribute("vAlign","middle");w.setAttribute("width","28%");w.className="fieldNames";var Ai=document.createElement("input");Ai.setAttribute("size","20");Ai.setAttribute("id","first_auto");Ai.setAttribute("autocomplete","off");Ai.setAttribute("name","autocomplete");Ai.className="search";w.appendChild(Ai);var AC=document.createElement("div");AC.className="shadow";AC.setAttribute("id","shadow");w.appendChild(AC);var AH=document.createElement("div");AH.className="output";AH.setAttribute("id","output");w.appendChild(AH);AI.appendChild(w);var u=document.createElement("td");u.setAttribute("align","left");u.setAttribute("vAlign","middle");u.className="myAdsEditDesp";var p=document.createTextNode("(Enter the loaclity name & select the best option)");u.appendChild(p);u.appendChild(p);AI.appendChild(u);s.appendChild(AI);var AG=document.createElement("tr");var d=document.createElement("td");d.setAttribute("align","left");d.setAttribute("vAlign","middle");d.className="fieldNames";Ao++;var AA=document.createTextNode("Step"+Ao+" - Your Age");d.appendChild(AA);AG.appendChild(d);var c=document.createElement("td");c.setAttribute("align","left");c.setAttribute("vAlign","middle");c.className="fieldNames";var AY=document.createTextNode(":");c.appendChild(AY);AG.appendChild(c);var b=document.createElement("td");b.setAttribute("align","left");b.setAttribute("vAlign","middle");b.className="fieldNames";var Ae=document.createElement("input");Ae.setAttribute("size","5");Ae.setAttribute("id","ageself_personal");b.appendChild(Ae);AG.appendChild(b);var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.className="myAdsEditDesp";var T=document.createTextNode("(Enter your age)");Y.appendChild(T);AG.appendChild(Y);s.appendChild(AG);var AF=document.createElement("tr");var R=document.createElement("td");R.setAttribute("align","left");R.setAttribute("vAlign","middle");R.className="fieldNames";Ao++;var AS=document.createTextNode("Step"+Ao+" - Partner's Age");R.appendChild(AS);AF.appendChild(R);var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.className="fieldNames";var AX=document.createTextNode(":");Q.appendChild(AX);AF.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","middle");P.className="fieldNames";var Ad=document.createElement("input");Ad.setAttribute("size","5");Ad.setAttribute("id","agepartner_personal");P.appendChild(Ad);AF.appendChild(P);var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.className="myAdsEditDesp";var F=document.createTextNode("(Enter your prospective partner's age)");O.appendChild(F);AF.appendChild(O);s.appendChild(AF);var AE=document.createElement("tr");var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","top");D.className="fieldNames";Ao++;var Af=document.createTextNode("Step"+Ao+" - Description");D.appendChild(Af);AE.appendChild(D);Ao++;var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","top");C.className="fieldNames";var AW=document.createTextNode(":");C.appendChild(AW);AE.appendChild(C);var A=document.createElement("td");A.colSpan=2;var X=document.createElement("table");X.width="100%";X.border=0;X.cellSpacing=0;X.cellPadding=0;X.setAttribute("align","center");var r=document.createElement("tbody");var AJ=document.createElement("tr");var AR=document.createElement("td");AR.setAttribute("align","left");AR.setAttribute("vAlign","middle");AR.setAttribute("width","370");AR.className="fieldNames";var Ab=document.createElement("textArea");Ab.setAttribute("rows","7");Ab.setAttribute("cols","55");Ab.setAttribute("id","descp_personal");AR.appendChild(Ab);AJ.appendChild(AR);var AQ=document.createElement("td");AQ.setAttribute("align","left");AQ.setAttribute("vAlign","top");AQ.className="myAdsEditDesp";var Ag=document.createTextNode("(Enter a brief description of yourself & your preferences)");AQ.appendChild(Ag);AJ.appendChild(AQ);r.appendChild(AJ);X.appendChild(r);A.appendChild(X);AE.appendChild(A);s.appendChild(AE);var AB=document.createElement("tr");var m=document.createElement("td");m.setAttribute("align","left");m.setAttribute("vAlign","middle");m.className="fieldNames";var q=document.createTextNode("Step "+Ao+" - Images");m.appendChild(q);AB.appendChild(m);var l=document.createElement("td");l.setAttribute("align","left");l.setAttribute("vAlign","middle");l.className="fieldNames";var AV=document.createTextNode(":");l.appendChild(AV);AB.appendChild(l);var g=document.createElement("td");g.setAttribute("align","left");g.setAttribute("vAlign","middle");g.setAttribute("id","Td_UploadFile");g.className="fieldNames";var AN=document.createElement("input");AN.setAttribute("type","file");AN.setAttribute("id","file");AN.setAttribute("name","userfile");g.appendChild(AN);var Ah=document.createElement("iframe");Ah.setAttribute("src","#");Ah.setAttribute("height","0");Ah.setAttribute("width","0");Ah.setAttribute("scrolling","no");Ah.setAttribute("id","");Ah.setAttribute("frameBorder","NO");Ah.frameBorder="0";AB.appendChild(g);var f=document.createElement("td");f.setAttribute("align","left");f.setAttribute("vAlign","middle");f.setAttribute("id","Td_UploadButton");f.className="myAdsEditDesp";var Ak=document.createElement("input");Ak.setAttribute("type","submit");Ak.setAttribute("value","Upload");Ak.setAttribute("id","upload_button");Ak.onclick=Function();f.appendChild(Ak);var AK=document.createTextNode(" ");f.appendChild(AK);var G=document.createTextNode("(Upload Images - Optional)");f.appendChild(G);AB.appendChild(f);s.appendChild(AB);var V=document.createElement("tr");var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","middle");M.className="fieldNames";V.appendChild(M);var L=document.createElement("td");L.setAttribute("align","left");L.setAttribute("vAlign","middle");L.className="fieldNames";V.appendChild(L);var K=document.createElement("td");var X=document.createElement("table");X.width="100%";X.border=0;X.cellSpacing=0;X.cellPadding=0;X.setAttribute("align","center");var r=document.createElement("tbody");var AJ=document.createElement("tr");var AR=document.createElement("td");AR.setAttribute("align","left");AR.setAttribute("vAlign","middle");AR.className="fieldNames";var B=document.createElement("select");B.setAttribute("size","3");B.setAttribute("id","new_img_select");AR.appendChild(B);AJ.appendChild(AR);var AQ=document.createElement("td");AQ.setAttribute("align","left");AQ.setAttribute("vAlign","middle");AQ.className="myAdsEditDesp";var Am=document.createElement("input");Am.setAttribute("type","button");Am.setAttribute("value","Remove Image");Am.onclick=Function('removeImage("new_img_select","'+Ac+'")');AQ.appendChild(Am);AJ.appendChild(AQ);r.appendChild(AJ);X.appendChild(r);K.appendChild(X);V.appendChild(K);s.appendChild(V);var AD=document.createElement("tr");var Aj=document.createElement("td");Aj.setAttribute("align","right");Aj.setAttribute("vAlign","middle");Aj.colSpan=4;var y=document.createElement("input");y.setAttribute("type","button");y.setAttribute("value","Back");y.onclick=Function("postMarketAds()");Aj.appendChild(y);var AK=document.createTextNode(" ");Aj.appendChild(AK);var e=document.createElement("input");e.setAttribute("type","button");e.setAttribute("value","Next");e.onclick=Function('validatePersonalPost("'+U+'","'+Ac+'")');if(Ac=="Edit"){e.setAttribute("value","Save");y.setAttribute("value","Cancel");y.onclick=Function("closeMarketWindow()")}Aj.appendChild(e);AD.appendChild(Aj);s.appendChild(AD);Z.appendChild(s);An.appendChild(Z);AT.appendChild(An);o.appendChild(AT);W.appendChild(o);E.appendChild(W);testT();xauto_init()}function validatePersonalPost(G,O){var P=document.getElementById("title_personal").value;var M=document.getElementById("descp_personal").value.replace(/\n/g,"@");var B=document.getElementById("ageself_personal").value;var E=document.getElementById("first_auto").value;var N=document.getElementById("agepartner_personal").value;var L=document.getElementById("validation_info");while(L.hasChildNodes()){var C=L.firstChild;L.removeChild(C)}if(P==""){var F=document.createTextNode("Please Enter the Title");L.appendChild(F)}else{if(E==""){var D=document.createTextNode("Please Specify your Locality");L.appendChild(D)}else{if(B==""){var R=document.createTextNode("Please Specify your Age");L.appendChild(R)}else{if(IsNumeric(B)){var H=document.createTextNode("Please Enter proper Age");L.appendChild(H)}else{if(B>120){var H=document.createTextNode("Please Enter proper Age");L.appendChild(H)}else{if(N==""){var A=document.createTextNode("Please Specify Partner's Age");L.appendChild(A)}else{if(IsNumeric(N)){var J=document.createTextNode("Please Enter proper Age");L.appendChild(J)}else{if(N>120){var J=document.createTextNode("Please Enter proper Age");L.appendChild(J)}else{if(M==""){var Q=document.createTextNode("Please Enter Descrpition");L.appendChild(Q)}else{if(O=="PostAd"){var I=checkLoginNew();if(I==1){NewPersonalsPost(G)}else{NewPostAdsLogin("Personals",G)}}else{if(O=="Edit"){var K=getSelectedImages();url1="description="+escape(M)+"&title="+escape(P)+"&age="+escape(B)+"&locality="+escape(E)+"&subcategory="+escape(G)+"&age_of_partner="+escape(N)+"&clid="+escape(clid)+K;postEditPersonals(url1)}}}}}}}}}}}}function NewPersonalsPost(G){var I=document.getElementById("title_personal").value;var C=document.getElementById("descp_personal").value.replace(/\n/g,"@");var N=document.getElementById("ageself_personal").value;var K=document.getElementById("first_auto").value;var H=document.getElementById("agepartner_personal").value;var L=document.getElementById("new_img_select");var J=L.options.length;var M="";var O="";for(i=0;i<J;i++){var B=L.options[i].text;var E=L.options[i].value;if(i==0){M=B;O=E}else{M=M+":"+B;O=O+":"+E}}var F="";var D=0;if(document.getElementById("market_post_email")){var F=document.getElementById("market_post_email").value}else{F="0"}if(document.getElementById("market_post_mobile")){D=document.getElementById("market_post_mobile").value}else{D=0}if(F!=""){show_loader();var A="Marketplace/post_personals_listing.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewPersonalstListing;url1="description="+escape(C)+"&title="+escape(I)+"&age="+escape(N)+"&locality="+escape(K)+"&subcategory="+escape(G)+"&age_of_partner="+escape(H)+"&reply_email="+escape(F)+"&reply_mobile="+escape(D)+"&imageName="+escape(M)+"&imageRandomName="+escape(O);request.send(url1)}else{alert("Enter the complete details")}}function updateNewPersonalstListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function postAdComputers(V,A3){Rcategory="Computers";Rsubcategory=V;OnlyDisable();market_remove("AddsDisplayDiv");windowIsActive=true;var Ae=document.getElementById("AddsDisplayDiv");var AF=document.getElementById("write_reviewDiv1");Ae.style.display="block";AF.style.display="block";Ae.style.width="810px";AF.style.height="405px";AF.style.width="830px";var H=Ae;Ae.style.background="#ffffff";H.setAttribute("align","center");var BG=1;var X=document.createElement("table");X.width="95%";X.border=0;X.cellSpacing=0;X.cellPadding=0;X.setAttribute("align","center");var v=document.createElement("tbody");var Ao=document.createElement("tr");var K=document.createElement("td");var K=document.createElement("td");K.setAttribute("align","left");K.setAttribute("vAlign","middle");K.className="myAdsValidation";K.colSpan=2;var O=document.createElement("div");O.setAttribute("id","validation_info");K.appendChild(O);Ao.appendChild(K);var J=document.createElement("td");J.setAttribute("align","right");J.setAttribute("vAlign","middle");J.className="windowTitle";var L=document.createElement("img");L.setAttribute("src","images/close.jpg");L.onclick=Function("closeMarketWindow()");L.setAttribute("height","16");L.setAttribute("width","16");J.appendChild(L);v.appendChild(Ao);var An=document.createElement("tr");var BF=document.createElement("td");BF.colSpan=2;var g=document.createElement("table");g.width="100%";g.border=0;g.cellSpacing=0;g.cellPadding=0;g.setAttribute("align","center");var AD=document.createElement("tbody");var Aa=document.createElement("tr");var Al=document.createElement("td");Al.setAttribute("align","left");Al.setAttribute("vAlign","middle");Al.setAttribute("width","22%");Al.className="fieldNames";var T=document.createTextNode("Step"+BG+" - Ad Title");Al.appendChild(T);Aa.appendChild(Al);var Ak=document.createElement("td");Ak.setAttribute("align","left");Ak.setAttribute("vAlign","middle");Ak.setAttribute("width","1%");Ak.className="fieldNames";var A1=document.createTextNode(":");Ak.appendChild(A1);Aa.appendChild(Ak);var Ai=document.createElement("td");Ai.setAttribute("align","left");Ai.setAttribute("vAlign","middle");Ai.setAttribute("width","27%");Ai.className="fieldNames";var BD=document.createElement("input");BD.setAttribute("size","30");BD.setAttribute("id","AEC_title");Ai.appendChild(BD);Aa.appendChild(Ai);var Ag=document.createElement("td");Ag.setAttribute("align","left");Ag.setAttribute("vAlign","middle");Ag.className="myAdsEditDesp";var Ac=document.createTextNode("(Enter a short title for your ad)");Ag.appendChild(Ac);Aa.appendChild(Ag);AD.appendChild(Aa);if(V=="Desktops"){var AZ=document.createElement("tr");var AJ=document.createElement("td");AJ.setAttribute("align","left");AJ.setAttribute("vAlign","middle");AJ.className="fieldNames";BG++;var r=document.createTextNode("Step"+BG+" - Type");AJ.appendChild(r);AZ.appendChild(AJ);var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","middle");AH.className="fieldNames";var Az=document.createTextNode(":");AH.appendChild(Az);AZ.appendChild(AH);var AG=document.createElement("td");AG.setAttribute("align","left");AG.setAttribute("vAlign","middle");AG.className="fieldNames";var AA=document.createElement("select");AA.setAttribute("id","desk_type_BA");AA.onchange=Function("checkDesktopType()");var e=document.createElement("option");e.value="Select";e.text="Select";AA.options.add(e,0);var c=document.createElement("option");c.value="Branded";c.text="Branded";AA.options.add(c,1);var b=document.createElement("option");b.value="Assembled";b.text="Assembled";AA.options.add(b,2);AG.appendChild(AA);AZ.appendChild(AG);var AE=document.createElement("td");AE.setAttribute("align","left");AE.setAttribute("vAlign","middle");AE.className="myAdsEditDesp";var y=document.createTextNode("(Select weather the desktop is Assembled or Branded)");AE.appendChild(y);AZ.appendChild(AE);AD.appendChild(AZ);var BH=document.createElement("tr");var x=document.createElement("td");x.colSpan=4;x.setAttribute("id","Branded");BH.appendChild(x);AD.appendChild(BH);var B=document.createElement("tr");var Af=document.createElement("td");Af.colSpan=4;Af.setAttribute("id","Assembled");B.appendChild(Af);AD.appendChild(B);BG++}else{if(V=="Laptops"||V=="Printers"||V=="Scanners"||V=="Monitors"||V=="Keyboard"||V=="Mouse"||V=="WebCams"){var AZ=document.createElement("tr");var AJ=document.createElement("td");AJ.setAttribute("align","left");AJ.setAttribute("vAlign","middle");AJ.className="fieldNames";BG++;var r=document.createTextNode("Step"+BG+" - Make  &  Model");AJ.appendChild(r);AZ.appendChild(AJ);var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","middle");AH.className="fieldNames";var Az=document.createTextNode(" : ");AH.appendChild(Az);AZ.appendChild(AH);var AG=document.createElement("td");AG.setAttribute("align","left");AG.setAttribute("vAlign","middle");AG.className="fieldNames";var BA=document.createElement("input");BA.setAttribute("size","30");BA.setAttribute("id","first_auto");BA.setAttribute("name","autocomplete");BA.setAttribute("autocomplete","off");BA.className="search";AG.appendChild(BA);var AT=document.createElement("div");AT.className="shadow";AT.setAttribute("id","shadow");AG.appendChild(AT);var AY=document.createElement("div");AY.className="output";AY.setAttribute("id","output");AG.appendChild(AY);AZ.appendChild(AG);var AE=document.createElement("td");AE.setAttribute("align","left");AE.setAttribute("vAlign","middle");AE.className="myAdsEditDesp";var y=document.createTextNode("(Enter the make & select the best option)");AE.appendChild(y);AZ.appendChild(AE);AD.appendChild(AZ)}}if(V=="Monitors"){var AW=document.createElement("tr");var S=document.createElement("td");S.setAttribute("align","left");S.setAttribute("vAlign","middle");S.className="fieldNames";BG++;var Am=document.createTextNode("Step"+BG+" - Type");S.appendChild(Am);AW.appendChild(S);var R=document.createElement("td");R.setAttribute("align","left");R.setAttribute("vAlign","middle");R.className="fieldNames";var Ax=document.createTextNode(":");R.appendChild(Ax);AW.appendChild(R);var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.className="fieldNames";var AQ=new Array("Select","Plasma","OLED","DLP","CRT");var Ad=AQ.length;var w=document.createElement("select");w.setAttribute("id","monitor_type");for(i=0;i<Ad;i++){var e=document.createElement("option");e.value=AQ[i];e.text=AQ[i];w.options.add(e,i)}Q.appendChild(w);AW.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","middle");P.className="myAdsEditDesp";var I=document.createTextNode("(Select your Monitor type)");P.appendChild(I);AW.appendChild(P);AD.appendChild(AW);var AV=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";BG++;var A4=document.createTextNode("Step"+BG+" - Size");G.appendChild(A4);AV.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.className="fieldNames";var Aw=document.createTextNode(":");F.appendChild(Aw);AV.appendChild(F);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";var A2=document.createElement("input");A2.setAttribute("size","30");A2.setAttribute("id","monitor_size");D.appendChild(A2);AV.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="myAdsEditDesp";var A7=document.createTextNode("(Enter your Monitor size in inches)");C.appendChild(A7);AV.appendChild(C);AD.appendChild(AV)}if(V=="Keyboard"||V=="Mouse"){var AX=document.createElement("tr");var m=document.createElement("td");m.setAttribute("align","left");m.setAttribute("vAlign","middle");m.className="fieldNames";BG++;var AL=document.createTextNode("Step"+BG+" - Type");m.appendChild(AL);AX.appendChild(m);var l=document.createElement("td");l.setAttribute("align","left");l.setAttribute("vAlign","middle");l.className="fieldNames";var Ay=document.createTextNode(":");l.appendChild(Ay);AX.appendChild(l);var h=document.createElement("td");h.setAttribute("align","left");h.setAttribute("vAlign","middle");h.className="fieldNames";var z=document.createElement("select");z.setAttribute("id","key_mouse_type");var e=document.createElement("option");e.value="Select";e.text="Select";z.options.add(e,0);var c=document.createElement("option");c.value="Wired";c.text="Wired";z.options.add(c,1);var b=document.createElement("option");b.value="Wireless";b.text="Wireless";z.options.add(b,2);h.appendChild(z);AX.appendChild(h);var f=document.createElement("td");f.setAttribute("align","left");f.setAttribute("vAlign","middle");f.className="myAdsEditDesp";var U=document.createTextNode("(Select the type - wired or wireless)");f.appendChild(U);AX.appendChild(f);AD.appendChild(AX)}var AV=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";BG++;var A4=document.createTextNode("Step"+BG+" - Condition");G.appendChild(A4);AV.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.className="fieldNames";var Aw=document.createTextNode(":");F.appendChild(Aw);AV.appendChild(F);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";var p=document.createElement("select");p.setAttribute("id","AEC_condition");var e=document.createElement("option");e.value="Select";e.text="Select";p.options.add(e,0);var c=document.createElement("option");c.value="New";c.text="New";p.options.add(c,1);var b=document.createElement("option");b.value="Used";b.text="Used";p.options.add(b,2);D.appendChild(p);AV.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="myAdsEditDesp";var A7=document.createTextNode("(Enter the condition of your product)");C.appendChild(A7);AV.appendChild(C);AD.appendChild(AV);var AU=document.createElement("tr");var BB=document.createElement("td");BB.setAttribute("align","left");BB.setAttribute("vAlign","middle");BB.className="fieldNames";BG++;var A=document.createTextNode("Step"+BG+" - Price");BB.appendChild(A);AU.appendChild(BB);var A9=document.createElement("td");A9.setAttribute("align","left");A9.setAttribute("vAlign","middle");A9.className="fieldNames";var Av=document.createTextNode(":");A9.appendChild(Av);AU.appendChild(A9);var A6=document.createElement("td");A6.setAttribute("align","left");A6.setAttribute("vAlign","middle");A6.className="fieldNames";var A0=document.createElement("input");A0.setAttribute("size","30");A0.setAttribute("id","AEC_price");A6.appendChild(A0);AU.appendChild(A6);var A5=document.createElement("td");A5.setAttribute("align","left");A5.setAttribute("vAlign","middle");A5.className="myAdsEditDesp";var Ah=document.createTextNode("(Enter your selling price)");A5.appendChild(Ah);AU.appendChild(A5);AD.appendChild(AU);var AS=document.createElement("tr");var At=document.createElement("td");At.setAttribute("align","left");At.setAttribute("vAlign","top");At.className="fieldNames";BG++;var M=document.createTextNode("Step"+BG+" - Description");At.appendChild(M);AS.appendChild(At);var Ar=document.createElement("td");Ar.setAttribute("align","left");Ar.setAttribute("vAlign","top");Ar.className="fieldNames";var As=document.createTextNode(":");Ar.appendChild(As);AS.appendChild(Ar);var Ap=document.createElement("td");Ap.colSpan=2;var d=document.createElement("table");d.width="100%";d.border=0;d.cellSpacing=0;d.cellPadding=0;d.setAttribute("align","center");var AC=document.createElement("tbody");var Aa=document.createElement("tr");var Al=document.createElement("td");Al.setAttribute("align","left");Al.setAttribute("vAlign","middle");Al.setAttribute("width","370");Al.className="fieldNames";var Au=document.createElement("textArea");Au.setAttribute("rows","6");Au.setAttribute("cols","55");Au.setAttribute("id","AEC_description");Al.appendChild(Au);Aa.appendChild(Al);var Ak=document.createElement("td");Ak.setAttribute("align","left");Ak.setAttribute("vAlign","top");Ak.className="myAdsEditDesp";var AB=document.createTextNode("(Enter a brief description of your product & terms of sale)");Ak.appendChild(AB);Aa.appendChild(Ak);AC.appendChild(Aa);d.appendChild(AC);Ap.appendChild(d);AS.appendChild(Ap);AD.appendChild(AS);var AR=document.createElement("tr");var AO=document.createElement("td");AO.setAttribute("align","left");AO.setAttribute("vAlign","middle");AO.className="fieldNames";BG++;var Z=document.createTextNode("Step"+BG+" - Images");AO.appendChild(Z);AR.appendChild(AO);var AN=document.createElement("td");AN.setAttribute("align","left");AN.setAttribute("vAlign","middle");AN.className="fieldNames";var Aq=document.createTextNode(":");AN.appendChild(Aq);AR.appendChild(AN);var AM=document.createElement("td");AM.setAttribute("align","left");AM.setAttribute("vAlign","middle");AM.setAttribute("id","Td_UploadFile");AM.className="fieldNames";var Aj=document.createElement("input");Aj.setAttribute("type","file");Aj.setAttribute("id","file");Aj.setAttribute("name","userfile");AM.appendChild(Aj);var A8=document.createElement("iframe");A8.setAttribute("src","#");A8.setAttribute("height","0");A8.setAttribute("width","0");A8.setAttribute("scrolling","no");A8.setAttribute("id","");A8.setAttribute("frameBorder","NO");A8.frameBorder="0";AR.appendChild(AM);var AK=document.createElement("td");AK.setAttribute("align","left");AK.setAttribute("vAlign","middle");AK.setAttribute("id","Td_UploadButton");AK.className="myAdsEditDesp";var BC=document.createElement("input");BC.setAttribute("type","submit");BC.setAttribute("value","Upload");BC.setAttribute("id","upload_button");BC.onclick=Function();AK.appendChild(BC);var Ab=document.createTextNode(" ");AK.appendChild(Ab);var Y=document.createTextNode("(Upload Photos of your product - Optional)");AK.appendChild(Y);AR.appendChild(AK);AD.appendChild(AR);var AP=document.createElement("tr");var u=document.createElement("td");u.setAttribute("align","left");u.setAttribute("vAlign","middle");u.className="fieldNames";AP.appendChild(u);var s=document.createElement("td");s.setAttribute("align","left");s.setAttribute("vAlign","middle");s.className="fieldNames";AP.appendChild(s);var q=document.createElement("td");var d=document.createElement("table");d.width="100%";d.border=0;d.cellSpacing=0;d.cellPadding=0;d.setAttribute("align","center");var AC=document.createElement("tbody");var Aa=document.createElement("tr");var Al=document.createElement("td");Al.setAttribute("align","left");Al.setAttribute("vAlign","middle");Al.className="fieldNames";var E=document.createElement("select");E.setAttribute("size","3");E.setAttribute("id","new_img_select");Al.appendChild(E);Aa.appendChild(Al);var Ak=document.createElement("td");Ak.setAttribute("align","left");Ak.setAttribute("vAlign","middle");Ak.className="myAdsEditDesp";var BE=document.createElement("input");BE.setAttribute("type","button");BE.setAttribute("value","Remove Image");BE.onclick=Function('removeImage("new_img_select","'+A3+'")');Ak.appendChild(BE);Aa.appendChild(Ak);AC.appendChild(Aa);d.appendChild(AC);q.appendChild(d);AP.appendChild(q);AD.appendChild(AP);var W=document.createElement("tr");var N=document.createElement("td");N.setAttribute("align","right");N.setAttribute("vAlign","middle");N.colSpan=4;var AI=document.createElement("input");AI.setAttribute("type","button");AI.setAttribute("value","Back");AI.onclick=Function("postMarketAds()");N.appendChild(AI);var Ab=document.createTextNode(" ");N.appendChild(Ab);var o=document.createElement("input");o.setAttribute("type","button");o.setAttribute("value","Next");o.onclick=Function('validateComputersPost("'+V+'","'+A3+'")');if(A3=="Edit"){o.setAttribute("value","Save");AI.setAttribute("value","Cancel");AI.onclick=Function("closeMarketWindow()")}N.appendChild(o);W.appendChild(N);AD.appendChild(W);g.appendChild(AD);BF.appendChild(g);An.appendChild(BF);v.appendChild(An);X.appendChild(v);H.appendChild(X);testT();if(V=="Laptops"||V=="Printers"||V=="Scanners"||V=="Monitors"||V=="Keyboard"||V=="Mouse"||V=="WebCams"){xauto_init()}}function validateComputersPost(K,c){var S=document.getElementById("AEC_title");var f=document.getElementById("AEC_condition");var G=document.getElementById("AEC_price");var P=document.getElementById("AEC_description").value.replace(/\n/g," ");var V=document.getElementById("validation_info");var C="";var T="";var Y="";var A="";var N="";var W="";var D="";var L="";var R="";var C="";var T="";var E="";var F="";var X="";var J="";var Q="";var b=false;while(V.hasChildNodes()){var B=V.firstChild;V.removeChild(B)}if(S.value==""){var I=document.createTextNode("Please Enter Title");V.appendChild(I)}else{if(G.value==""){var h=document.createTextNode("Please Enter the Price you Want to Sell it for");V.appendChild(h)}else{if(IsNumeric(G.value)){var g=document.createTextNode("Please Enter Valid Price");V.appendChild(g)}else{if(P==""){var e=document.createTextNode("Please Enter Description");V.appendChild(e)}else{if(f.value=="Select"){var e=document.createTextNode("Please Select conditon of the Product");V.appendChild(e)}else{if(K=="Desktops"){if(document.getElementById("desk_type_BA").value=="Select"){var e=document.createTextNode("Please Select Desktop Type");V.appendChild(e)}else{if(document.getElementById("AEC_condition").value=="Select"){var e=document.createTextNode("Please Select Desktop Condition");V.appendChild(e)}else{if(document.getElementById("desk_type_BA").value=="Branded"){if(document.getElementById("first_auto").value==""){var e=document.createTextNode("Please Enter the Desktop Make");V.appendChild(e)}else{b=true}}else{if(document.getElementById("desk_type_BA").value=="Assembled"){if(document.getElementById("RAM_type").value=="RAM Type"){var e=document.createTextNode("Please Select the Ram Type");V.appendChild(e)}else{if(document.getElementById("RAM_size").value=="RAM Size"){var e=document.createTextNode("Please Select the Ram Size");V.appendChild(e)}else{if(document.getElementById("HDD").value=="HardDisk Drive"){var e=document.createTextNode("Please Select the Hardisk Size");V.appendChild(e)}else{if(document.getElementById("CD_DVD_ROM").value=="Optical Drive"){var e=document.createTextNode("Please Select the Optical Drive");V.appendChild(e)}else{if(document.getElementById("desk_Processor").value=="Processor"){var e=document.createTextNode("Please Select the Processor Type");V.appendChild(e)}else{if(document.getElementById("Monitor_type").value=="Monitor Type"){var e=document.createTextNode("Please Select the Monitor Type");V.appendChild(e)}else{if(document.getElementById("Monitor_size").value=="Monitor Size"){var e=document.createTextNode("Please Select the Monitor Size");V.appendChild(e)}else{b=true}}}}}}}}}}}}else{if(K=="Laptops"||K=="Printers"||K=="Scanners"||K=="WebCams"){if(document.getElementById("first_auto").value==""){var e=document.createTextNode("Please Enter the "+K+" Make");V.appendChild(e)}else{b=true}}else{if(K=="Monitors"){if(document.getElementById("first_auto").value==""){var e=document.createTextNode("Please Enter the "+K+" Make");V.appendChild(e)}else{if(document.getElementById("monitor_size").value==""){var e=document.createTextNode("Please Select the Monitor Size");V.appendChild(e)}else{if(document.getElementById("monitor_type").value=="Select"){var e=document.createTextNode("Please Select the Monitor Type");V.appendChild(e)}else{b=true}}}}else{if(K=="Keyboard"||K=="Mouse"){if(document.getElementById("first_auto").value==""){var e=document.createTextNode("Please Enter the "+K+" Make");V.appendChild(e)}else{if(document.getElementById("key_mouse_type").value=="Select"){var e=document.createTextNode("Please Select the "+K+" Type");V.appendChild(e)}else{b=true}}}}}}}}}}}if(b==true){if(c=="PostAd"){var O=checkLoginNew();if(O==1){NewComputersPost(K)}else{NewPostAdsLogin("Computers",K)}}else{if(c=="Edit"){var U=getSelectedImages();if(K=="Monitor"){var Z=document.getElementById("first_auto").value;E=Z;C=document.getElementById("monitor_type").value;T=document.getElementById("monitor_size").value}else{if(K=="Keyboard"||K=="Mouse"){Y=document.getElementById("key_mouse_type").value;E=document.getElementById("first_auto").value}else{if(K=="Desktops"){if(document.getElementById("desk_type_BA").value=="Assembled"){A=document.getElementById("desk_type_BA").value;N=document.getElementById("RAM_type").value;W=document.getElementById("RAM_size").value;D=document.getElementById("desk_Processor").value;L=document.getElementById("CD_DVD_ROM").value;R=document.getElementById("HDD").value;C=document.getElementById("Monitor_type").value;monitor=document.getElementById("Monitor_size").value}else{if(document.getElementById("desk_type_BA").value=="Branded"){A=document.getElementById("desk_type_BA").value;var Z=document.getElementById("first_auto").value;E=Z;F=Z.substring(Z.indexOf(" "),Z.length)}}}else{if(K=="Laptops"||K=="Printers"||K=="Scanners"||K=="WebCams"){var Z=document.getElementById("first_auto").value;E=Z;F=""}}}}var M="Computers";var H=K;var d="";url1="title="+escape(S.value)+"&description="+escape(P)+"&make="+escape(E)+"&pstring="+escape(E)+"&model="+escape(F)+"&price="+escape(G.value)+"&subcategory="+escape(H)+"&category="+escape(M)+"&mob_condition="+escape(f.value)+"&tv_type="+escape(X)+"&tv_size="+escape(J)+"&cam_mp="+escape(Q)+"&mouse_key_type="+escape(Y)+"&subcategory2="+escape(d)+"&desk_type="+escape(A)+"&ram_type="+escape(N)+"&ram_size="+escape(W)+"&processor="+escape(D)+"&cd_dvd="+escape(L)+"&hdd="+escape(R)+"&monitor_type="+escape(C)+"&monitor="+escape(T)+"&clid="+escape(clid)+U;postEditComputers(url1)}}}}function NewComputersPost(L){var T=document.getElementById("AEC_title").value;var e=document.getElementById("AEC_condition").value;var G=document.getElementById("AEC_price").value;var Q=document.getElementById("AEC_description").value.replace(/\n/g,"~");var C="";var U="";var Y="";var B="";var O="";var V="";var D="";var M="";var S="";var E="";var H="";var Z="";var K="";var R="";var P=document.getElementById("new_img_select");var W=P.options.length;var X="";var g="";for(i=0;i<W;i++){var f=P.options[i].text;var A=P.options[i].value;if(i==0){X=f;g=A}else{X=X+":"+f;g=g+":"+A}}if(L=="Monitors"){var E=document.getElementById("first_auto").value;C=document.getElementById("monitor_type").value;U=document.getElementById("monitor_size").value}else{if(L=="Keyboard"||L=="Mouse"){Y=document.getElementById("key_mouse_type").value;E=document.getElementById("first_auto").value}else{if(L=="Desktops"){if(document.getElementById("desk_type_BA").value=="Assembled"){B=document.getElementById("desk_type_BA").value;O=document.getElementById("RAM_type").value;V=document.getElementById("RAM_size").value;D=document.getElementById("desk_Processor").value;M=document.getElementById("CD_DVD_ROM").value;S=document.getElementById("HDD").value;C=document.getElementById("Monitor_type").value;U=document.getElementById("Monitor_size").value}else{if(document.getElementById("desk_type_BA").value=="Branded"){B=document.getElementById("desk_type_BA").value;var c=document.getElementById("first_auto").value;E=c.substring(0,c.indexOf(" "));H=c.substring(c.indexOf(" "),c.length)}}}else{if(L=="Laptops"||L=="Printers"||L=="Scanners"||L=="WebCams"){var c=document.getElementById("first_auto").value;E=c;H=""}}}}var N="Computers";var J=L;var d="";var b="";var F=0;if(document.getElementById("market_post_email")){var b=document.getElementById("market_post_email").value}else{b="0"}if(document.getElementById("market_post_mobile")){F=document.getElementById("market_post_mobile").value}else{F=0}if(b!=""){show_loader();var I="Marketplace/post_aec_listing.php";request.open("POST",I,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewPostComputersListing;url1="title="+escape(T)+"&description="+escape(Q)+"&make="+escape(E)+"&model="+escape(H)+"&price="+escape(G)+"&subcategory="+escape(J)+"&category="+escape(N)+"&mob_condition="+escape(e)+"&tv_type="+escape(Z)+"&tv_size="+escape(K)+"&cam_mp="+escape(R)+"&mouse_key_type="+escape(Y)+"&subcategory2="+escape(d)+"&desk_type="+escape(B)+"&ram_type="+escape(O)+"&ram_size="+escape(V)+"&processor="+escape(D)+"&cd_dvd="+escape(M)+"&hdd="+escape(S)+"&monitor_type="+escape(C)+"&monitor="+escape(U)+"&reply_email="+escape(b)+"&reply_mobile="+escape(F)+"&imageName="+escape(X)+"&imageRandomName="+escape(g);request.send(url1)}else{alert("Please Enter the complete details")}}function updateNewPostComputersListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function checkDesktopType(){market_remove("Assembled");market_remove("Branded");if(document.getElementById("output")){outp=document.getElementById("output");while(outp.hasChildNodes()){noten=outp.firstChild;outp.removeChild(noten)}}if(document.getElementById("desk_type_BA").value=="Branded"){var B=document.createElement("table");var L=document.createElement("tbody");var e=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";var l=document.createTextNode("Step"+3+" - Make & Model");G.appendChild(l);e.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.className="fieldNames";var W=document.createTextNode(":");F.appendChild(W);e.appendChild(F);var E=document.createElement("td");E.setAttribute("align","left");E.setAttribute("vAlign","middle");E.className="fieldNames";var S=document.createElement("input");S.setAttribute("size","30");S.setAttribute("id","first_auto");S.setAttribute("name","autocomplete");S.setAttribute("autocomplete","off");S.className="search";E.appendChild(S);var C=document.createElement("div");C.className="shadow";C.setAttribute("id","shadow");E.appendChild(C);var H=document.createElement("div");H.className="output";H.setAttribute("id","output");E.appendChild(H);e.appendChild(E);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="myAdsEditDesp";var q=document.createTextNode("(Enter the make & select the best option)");D.appendChild(q);e.appendChild(D);L.appendChild(e);B.appendChild(L);document.getElementById("Branded").appendChild(B);xauto_init()}else{if(document.getElementById("desk_type_BA").value=="Assembled"){var B=document.createElement("table");var L=document.createElement("tbody");B.setAttribute("border","1");var b=document.createElement("tr");var R=document.createElement("td");R.setAttribute("align","left");R.setAttribute("vAlign","top");R.className="fieldNames";var o=document.createTextNode("Step"+3+"-Specifications");R.appendChild(o);b.appendChild(R);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","top");P.className="fieldNames";var U=document.createTextNode(":");P.appendChild(U);b.appendChild(P);var O=document.createElement("td");O.colSpan=2;var Q=document.createElement("table");Q.width="100%";Q.border=0;Q.cellSpacing=0;Q.cellPadding=0;Q.setAttribute("align","center");var A=document.createElement("tbody");var g=document.createElement("tr");var N=document.createElement("td");N.setAttribute("align","left");N.setAttribute("vAlign","middle");N.setAttribute("width","77%");var T=document.createElement("select");T.setAttribute("id","RAM_type");var m=document.createElement("option");m.value="RAM Type";m.text="RAM Type";T.options.add(m,0);var h=document.createElement("option");h.value="SDRAM";h.text="SDRAM";T.options.add(h,1);var f=document.createElement("option");f.value="DDR1";f.text="DDR1";T.options.add(f,2);N.appendChild(T);var p=document.createTextNode(" ");N.appendChild(p);var T=document.createElement("select");T.setAttribute("id","RAM_size");var m=document.createElement("option");m.value="RAM Size";m.text="RAM Size";T.options.add(m,0);var h=document.createElement("option");h.value="64MB";h.text="64MB";T.options.add(h,1);var f=document.createElement("option");f.value="128MB";f.text="128MB";T.options.add(f,2);var d=document.createElement("option");d.value="512MB";d.text="512MB";T.options.add(d,3);var c=document.createElement("option");c.value="1GB";c.text="1GB";T.options.add(c,4);var Z=document.createElement("option");Z.value="2GB";Z.text="2GB";T.options.add(Z,5);var Y=document.createElement("option");Y.value="More than 2GB";Y.text="More than 2GB";T.options.add(Y,6);N.appendChild(T);var p=document.createTextNode(" ");N.appendChild(p);var T=document.createElement("select");T.setAttribute("id","desk_Processor");var m=document.createElement("option");m.value="Processor";m.text="Processor";T.options.add(m,0);var h=document.createElement("option");h.value="Intel Core 2 Duo";h.text="Intel Core 2 Duo";T.options.add(h,1);var f=document.createElement("option");f.value="Intel Core 2 Quqd";f.text="Intel Core 2 Quqd";T.options.add(f,2);var d=document.createElement("option");d.value="Intel Core 2 Extreme";d.text="Intel Core 2 Extreme";T.options.add(d,3);var c=document.createElement("option");c.value="Intel Pentium 4";c.text="Intel Pentium 4";T.options.add(c,4);var Z=document.createElement("option");Z.value="Intel Celeron";Z.text="Intel Celeron";T.options.add(Z,5);var Y=document.createElement("option");Y.value="AMD Athlon 64 X2";Y.text="AMD Athlon 64 X2";T.options.add(Y,6);var X=document.createElement("option");X.value="AMD Athlon 64";X.text="AMD Athlon 64";T.options.add(X,7);var V=document.createElement("option");V.value="AMD Athlon Sempron";V.text="AMD Athlon Sempron";T.options.add(V,8);N.appendChild(T);var p=document.createTextNode(" ");N.appendChild(p);var T=document.createElement("select");T.setAttribute("id","CD_DVD_ROM");var m=document.createElement("option");m.value="Optical Drive";m.text="Optical Drive";T.options.add(m,0);var h=document.createElement("option");h.value="CD/DVD";h.text="CD/DVD";T.options.add(h,1);var f=document.createElement("option");f.value="CD ROM";f.text="CD ROM";T.options.add(f,2);N.appendChild(T);g.appendChild(N);var M=document.createElement("td");M.rowSpan=2;M.setAttribute("align","left");M.setAttribute("vAlign","top");M.className="myAdsEditDesp";var J=document.createTextNode("(Select the correct specifications applicable)");M.appendChild(J);g.appendChild(M);A.appendChild(g);var e=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","top");var T=document.createElement("select");T.setAttribute("id","HDD");var m=document.createElement("option");m.value="HardDisk Drive";m.text="HardDisk Drive";T.options.add(m,0);var h=document.createElement("option");h.value="40 GB";h.text="40 GB";T.options.add(h,1);var f=document.createElement("option");f.value="80 GB";f.text="80 GB";T.options.add(f,2);G.appendChild(T);var p=document.createTextNode(" ");G.appendChild(p);var T=document.createElement("select");T.setAttribute("id","Monitor_type");var K=new Array("Monitor Type","Plasma","OLED","DLP","CRT");var I=K.length;for(i=0;i<I;i++){var m=document.createElement("option");m.value=K[i];m.text=K[i];T.options.add(m,i)}G.appendChild(T);var p=document.createTextNode(" ");G.appendChild(p);var T=document.createElement("select");T.setAttribute("id","Monitor_size");var m=document.createElement("option");m.value="Monitor Size";m.text="Monitor Size";T.options.add(m,0);var h=document.createElement("option");h.value='15"';h.text='15"';T.options.add(h,1);var f=document.createElement("option");f.value='17"';f.text='17"';T.options.add(f,2);var d=document.createElement("option");d.value='21"';d.text='21"';T.options.add(d,3);G.appendChild(T);e.appendChild(G);e.appendChild(G);A.appendChild(e);Q.appendChild(A);O.appendChild(Q);b.appendChild(O);L.appendChild(b);B.appendChild(L);document.getElementById("Assembled").appendChild(B)}else{market_remove("Assembled");market_remove("Branded")}}}function PostAdEvents(AT){OnlyDisable();market_remove("AddsDisplayDiv");windowIsActive=true;var AF=document.getElementById("AddsDisplayDiv");var o=document.getElementById("write_reviewDiv1");AF.style.display="block";o.style.display="block";o.style.height="300px";AF.style.width="760px";o.style.width="780px";Rcategory="loc";Rsubcategory="loc";var D=AF;AF.style.background="#ffffff";D.setAttribute("align","center");var Ab=1;var P=document.createElement("table");P.width="100%";P.border=0;P.cellSpacing=0;P.cellPadding=0;P.setAttribute("align","center");var e=document.createElement("tbody");var AM=document.createElement("tr");var H=document.createElement("td");var H=document.createElement("td");H.setAttribute("align","left");H.setAttribute("vAlign","middle");H.className="myAdsValidation";H.colSpan=2;var J=document.createElement("div");J.setAttribute("id","validation_info");H.appendChild(J);AM.appendChild(H);var G=document.createElement("td");G.setAttribute("align","right");G.setAttribute("vAlign","middle");G.className="windowTitle";var I=document.createElement("img");I.setAttribute("src","images/close.jpg");I.onclick=Function("closeMarketWindow()");I.setAttribute("height","16");I.setAttribute("width","16");G.appendChild(I);e.appendChild(AM);var AL=document.createElement("tr");var Aa=document.createElement("td");Aa.colSpan=2;Aa.className="windowTitle";var W=document.createElement("table");W.width="100%";W.border=0;W.cellSpacing=0;W.cellPadding=0;W.setAttribute("align","center");var l=document.createElement("tbody");var AB=document.createElement("tr");var AJ=document.createElement("td");AJ.setAttribute("align","left");AJ.setAttribute("vAlign","middle");AJ.className="fieldNames";var O=document.createTextNode("Step"+Ab+" - Ad Title");AJ.appendChild(O);AB.appendChild(AJ);var AI=document.createElement("td");AI.setAttribute("align","left");AI.setAttribute("vAlign","middle");AI.setAttribute("width","1%");AI.className="fieldNames";var AQ=document.createTextNode(":");AI.appendChild(AQ);AB.appendChild(AI);var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","middle");AH.className="fieldNames";var AZ=document.createElement("input");AZ.setAttribute("size","30");AZ.setAttribute("id","title_event");AH.appendChild(AZ);AB.appendChild(AH);var AG=document.createElement("td");AG.setAttribute("align","left");AG.setAttribute("vAlign","middle");AG.className="myAdsEditDesp";var AD=document.createTextNode("(Enter a short title for your ad)");AG.appendChild(AD);AB.appendChild(AG);l.appendChild(AB);var AA=document.createElement("tr");var s=document.createElement("td");s.setAttribute("align","left");s.setAttribute("vAlign","middle");s.className="fieldNames";Ab++;var c=document.createTextNode("Step"+Ab+" - Event Name");s.appendChild(c);AA.appendChild(s);var q=document.createElement("td");q.setAttribute("align","left");q.setAttribute("vAlign","middle");q.className="fieldNames";var AP=document.createTextNode(":");q.appendChild(AP);AA.appendChild(q);var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","middle");p.className="fieldNames";var AX=document.createElement("input");AX.setAttribute("size","20");AX.setAttribute("id","name_event");p.appendChild(AX);AA.appendChild(p);var m=document.createElement("td");m.setAttribute("align","left");m.setAttribute("vAlign","middle");m.className="myAdsEditDesp";var f=document.createTextNode("(Enter the name of the event)");m.appendChild(f);m.appendChild(f);AA.appendChild(m);l.appendChild(AA);var y=document.createElement("tr");var Z=document.createElement("td");Z.setAttribute("align","left");Z.setAttribute("vAlign","middle");Z.setAttribute("width","22%");Z.className="fieldNames";Ab++;var O=document.createTextNode("Step"+Ab+" - Date/Time");Z.appendChild(O);y.appendChild(Z);var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.setAttribute("width","1%");Y.className="fieldNames";var AQ=document.createTextNode(":");Y.appendChild(AQ);y.appendChild(Y);var X=document.createElement("td");X.setAttribute("align","left");X.setAttribute("vAlign","middle");X.setAttribute("width","40%");X.className="fieldNames";var T=document.createTextNode("Date");X.appendChild(T);var AC=document.createTextNode(" ");X.appendChild(AC);var S=document.createElement("input");S.setAttribute("size","8");S.setAttribute("id","theDate");S.setAttribute("readonly",true);var g=document.createElement("img");g.setAttribute("src","images/cal1.jpg");g.setAttribute("align","center");g.setAttribute("width","20");g.setAttribute("height","20");g.onclick=Function('displayCalendar("theDate","dd/mm/yyyy",this)');X.appendChild(S);X.appendChild(g);var AC=document.createTextNode(" ");X.appendChild(AC);var AS=document.createTextNode("Time");X.appendChild(AS);var R=document.createElement("input");R.setAttribute("size","8");R.setAttribute("id","time_field");R.setAttribute("readonly",true);var d=document.createElement("select");d.setAttribute("id","Thours");for(i=1;i<13;i++){var Q=document.createElement("option");if(i<10){Q.value="0"+i;Q.text="0"+i}else{Q.value=i;Q.text=i}d.options.add(Q,i-1)}X.appendChild(d);var F=document.createElement("select");F.setAttribute("id","Tminutes");for(i=1;i<61;i++){var Q=document.createElement("option");if(i<10){Q.value="0"+i;Q.text="0"+i}else{Q.value=i;Q.text=i}F.options.add(Q,i-1)}X.appendChild(F);var AE=document.createElement("select");AE.setAttribute("id","TAM_PM");var Q=document.createElement("option");Q.value="AM";Q.text="AM";AE.options.add(Q,0);var Q=document.createElement("option");Q.value="PM";Q.text="PM";AE.options.add(Q,1);X.appendChild(AE);y.appendChild(X);var V=document.createElement("td");V.setAttribute("align","left");V.setAttribute("vAlign","middle");V.className="myAdsEditDesp";V.setAttribute("id","timeSpace");var f=document.createTextNode("(Enter the date & time of the event)");V.appendChild(f);y.appendChild(V);l.appendChild(y);var x=document.createElement("tr");var N=document.createElement("td");N.setAttribute("align","left");N.setAttribute("vAlign","middle");N.className="fieldNames";Ab++;var AK=document.createTextNode("Step"+Ab+" - Locality");N.appendChild(AK);x.appendChild(N);var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","middle");M.className="fieldNames";var AO=document.createTextNode(":");M.appendChild(AO);x.appendChild(M);var L=document.createElement("td");L.setAttribute("align","left");L.setAttribute("vAlign","middle");L.className="fieldNames";var AU=document.createElement("input");AU.setAttribute("size","25");AU.setAttribute("id","first_auto");AU.setAttribute("autocomplete","off");AU.setAttribute("name","autocomplete");AU.className="search";L.appendChild(AU);var u=document.createElement("div");u.className="shadow";u.setAttribute("id","shadow");L.appendChild(u);var z=document.createElement("div");z.className="output";z.setAttribute("id","output");L.appendChild(z);x.appendChild(L);var K=document.createElement("td");K.setAttribute("align","left");K.setAttribute("vAlign","middle");K.className="myAdsEditDesp";var E=document.createTextNode("(Enter the locality in which the event is taking place)");K.appendChild(E);x.appendChild(K);l.appendChild(x);var w=document.createElement("tr");var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","top");C.className="fieldNames";Ab++;var AV=document.createTextNode("Step"+Ab+" - Description");C.appendChild(AV);w.appendChild(C);var B=document.createElement("td");B.setAttribute("align","left");B.setAttribute("vAlign","top");B.className="fieldNames";var AN=document.createTextNode(":");B.appendChild(AN);w.appendChild(B);var A=document.createElement("td");A.colSpan=2;var U=document.createElement("table");U.width="100%";U.border=0;U.cellSpacing=0;U.cellPadding=0;U.setAttribute("align","center");var h=document.createElement("tbody");var AB=document.createElement("tr");var AJ=document.createElement("td");AJ.setAttribute("align","left");AJ.setAttribute("vAlign","middle");AJ.setAttribute("width","370");AJ.className="fieldNames";var AR=document.createElement("textArea");AR.setAttribute("rows","7");AR.setAttribute("cols","55");AR.setAttribute("id","descp_event");AJ.appendChild(AR);AB.appendChild(AJ);var AI=document.createElement("td");AI.setAttribute("align","left");AI.setAttribute("vAlign","top");AI.className="myAdsEditDesp";var AW=document.createTextNode("(Enter a brief description of the event & specify the address)");AI.appendChild(AW);AB.appendChild(AI);h.appendChild(AB);U.appendChild(h);A.appendChild(U);w.appendChild(A);l.appendChild(w);var v=document.createElement("tr");var AY=document.createElement("td");AY.setAttribute("align","right");AY.setAttribute("vAlign","middle");AY.colSpan=4;var r=document.createElement("input");r.setAttribute("type","button");r.setAttribute("value","Back");r.onclick=Function("postMarketAds()");AY.appendChild(r);var AC=document.createTextNode(" ");AY.appendChild(AC);var b=document.createElement("input");b.setAttribute("type","button");b.setAttribute("value","Next");b.onclick=Function('validateEventsPost("'+AT+'")');if(AT=="Edit"){b.setAttribute("value","Save");r.setAttribute("value","Cancel");r.onclick=Function("closeMarketWindow()")}AY.appendChild(b);v.appendChild(AY);l.appendChild(v);W.appendChild(l);Aa.appendChild(W);AL.appendChild(Aa);e.appendChild(AL);P.appendChild(e);D.appendChild(P);testT();xauto_init()}function validateEventsPost(Q){var N=document.getElementById("title_event");var J=document.getElementById("name_event");var D=document.getElementById("theDate");var K=document.getElementById("Thours").value+":"+document.getElementById("Tminutes").value+":"+document.getElementById("TAM_PM").value;var H=document.getElementById("descp_event").value.replace(/\n/g," ");var B=document.getElementById("first_auto");var G=document.getElementById("validation_info");while(G.hasChildNodes()){var O=G.firstChild;G.removeChild(O)}if(N.value==""){var I=document.createTextNode("Please Enter the title");G.appendChild(I)}else{if(J.value==""){var P=document.createTextNode("Please Enter the Name of the Event");G.appendChild(P)}else{if(D.value==""){var A=document.createTextNode("Please Enter Date");G.appendChild(A)}else{if(K.value==""){var C=document.createTextNode("Please Enter time Hrs");G.appendChild(C)}else{if(B.value==""){var F=document.createTextNode("Please Enter Locality");G.appendChild(F)}else{if(H==""){var E=document.createTextNode("Please Enter the Description");G.appendChild(E)}else{if(Q=="PostAd"){var M=checkLoginNew();if(M==1){NewPostEvents()}else{NewPostAdsLogin("Events","Events")}}else{if(Q=="Edit"){var L="event_name="+escape(J.value)+"&locality="+escape(B.value)+"&title="+escape(N.value)+"&time="+escape(K)+"&date="+escape(D.value)+"&address="+escape("")+"&description="+escape(H)+"&clid="+escape(clid);postEditEvents(L)}}}}}}}}}function NewPostEvents(){var J=document.getElementById("title_event").value;var I=document.getElementById("name_event").value;var F=document.getElementById("theDate").value;var E=document.getElementById("Thours").value+":"+document.getElementById("Tminutes").value+":"+document.getElementById("TAM_PM").value;var H=document.getElementById("descp_event").value.replace(/\n/g,"~");var D="";var B=document.getElementById("first_auto").value;category="Communities";subcategory="Events";var G="";var C=0;if(document.getElementById("market_post_email")){var G=document.getElementById("market_post_email").value}else{G="0"}if(document.getElementById("market_post_mobile")){C=document.getElementById("market_post_mobile").value}else{C=0}if(G!=""){show_loader();var A="Marketplace/post_events_listing.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewEventsPostListing;url1="event_name="+escape(I)+"&locality="+escape(B)+"&title="+escape(J)+"&time="+escape(E)+"&date="+escape(F)+"&address="+escape(D)+"&description="+escape(H)+"&reply_email="+escape(G)+"&reply_mobile="+escape(C);request.send(url1)}else{alert("Please Enter the complete details")}}function updateNewEventsPostListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function PostAdJobs(BJ,BI){OnlyDisable();market_remove("AddsDisplayDiv");var BX=document.getElementById("AddsDisplayDiv");var Af=document.getElementById("write_reviewDiv1");windowIsActive=true;BX.style.display="block";Af.style.display="block";BX.style.width="830px";Af.style.height="430px";Af.style.width="850px";var D=BX;BX.style.background="#ffffff";D.setAttribute("align","center");var Az=document.createElement("table");Az.width="95%";Az.border=0;Az.cellSpacing=0;Az.cellPadding=0;Az.setAttribute("align","center");var Bm=document.createElement("tbody");var Au=document.createElement("tr");var Bc=document.createElement("td");var Bc=document.createElement("td");Bc.setAttribute("align","left");Bc.setAttribute("vAlign","middle");Bc.className="myAdsValidation";Bc.colSpan=2;var Bt=document.createElement("div");Bt.setAttribute("id","validation_info");Bc.appendChild(Bt);Au.appendChild(Bc);var Ba=document.createElement("td");Ba.setAttribute("align","right");Ba.setAttribute("vAlign","middle");Ba.className="windowTitle";var Aj=document.createElement("img");Aj.setAttribute("src","images/close.jpg");Aj.onclick=Function("closeMarketWindow()");Aj.setAttribute("height","16");Aj.setAttribute("width","16");Ba.appendChild(Aj);Bm.appendChild(Au);var As=document.createElement("tr");var BL=document.createElement("td");BL.colSpan=2;BL.className="windowTitle";var Ae=document.createElement("table");Ae.width="100%";Ae.border=0;Ae.cellSpacing=0;Ae.cellPadding=0;Ae.setAttribute("align","center");var AZ=document.createElement("tbody");var Ay=document.createElement("tr");var d=document.createElement("td");d.setAttribute("align","left");d.setAttribute("vAlign","middle");d.setAttribute("width","23%");d.className="fieldNames";var Bs=document.createTextNode("Step1 - Job Title");d.appendChild(Bs);Ay.appendChild(d);var c=document.createElement("td");c.setAttribute("align","left");c.setAttribute("vAlign","middle");c.setAttribute("width","1%");c.className="fieldNames";var X=document.createTextNode(":");c.appendChild(X);Ay.appendChild(c);var b=document.createElement("td");b.colSpan=2;var AM=document.createElement("table");AM.width="100%";AM.border=0;AM.cellSpacing=0;AM.cellPadding=0;AM.setAttribute("align","center");var BG=document.createElement("tbody");var BV=document.createElement("tr");var AU=document.createElement("td");AU.setAttribute("align","left");AU.setAttribute("vAlign","middle");AU.setAttribute("width","60%");AU.className="fieldNames";var e=document.createElement("input");e.setAttribute("type","text");e.setAttribute("size","55");e.setAttribute("id","job_title");AU.appendChild(e);BV.appendChild(AU);var AF=document.createElement("td");AF.setAttribute("align","left");AF.setAttribute("vAlign","middle");AF.className="myAdsEditDesp";var Bg=document.createTextNode("(A short title for job)");AF.appendChild(Bg);BV.appendChild(AF);BG.appendChild(BV);AM.appendChild(BG);b.appendChild(AM);Ay.appendChild(b);AZ.appendChild(Ay);var Ax=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.className="fieldNames";var m=document.createTextNode("Step2 - Position");Q.appendChild(m);Ax.appendChild(Q);var N=document.createElement("td");N.setAttribute("align","left");N.setAttribute("vAlign","middle");N.className="fieldNames";var W=document.createTextNode(":");N.appendChild(W);Ax.appendChild(N);var K=document.createElement("td");K.setAttribute("align","left");K.setAttribute("vAlign","middle");K.setAttribute("width","25%");K.className="fieldNames";var A4=document.createElement("input");A4.setAttribute("type","text");A4.setAttribute("size","30");A4.setAttribute("id","job_designation");K.appendChild(A4);Ax.appendChild(K);var I=document.createElement("td");I.setAttribute("align","left");I.setAttribute("vAlign","middle");I.className="myAdsEditDesp";var Ap=document.createTextNode("(The Designation / Position for this requirement)");I.appendChild(Ap);Ax.appendChild(I);AZ.appendChild(Ax);var Aw=document.createElement("tr");var Br=document.createElement("td");Br.setAttribute("align","left");Br.setAttribute("vAlign","middle");Br.className="fieldNames";var Ad=document.createTextNode("Step3 -  Candidate Profile");Br.appendChild(Ad);Aw.appendChild(Br);var Bq=document.createElement("td");Bq.setAttribute("align","left");Bq.setAttribute("vAlign","middle");Bq.className="fieldNames";var V=document.createTextNode(":");Bq.appendChild(V);Aw.appendChild(Bq);var Bp=document.createElement("td");Bp.setAttribute("align","left");Bp.setAttribute("vAlign","middle");Bp.className="fieldNames";var Z=document.createElement("textarea");Z.setAttribute("rows","2");Z.setAttribute("cols","55");Z.setAttribute("id","job_candidate_profile");Bp.appendChild(Z);Aw.appendChild(Bp);var Bo=document.createElement("td");Bo.setAttribute("align","left");Bo.setAttribute("vAlign","middle");Bo.className="myAdsEditDesp";var y=document.createTextNode("(A short brief on the candidate profile)");Bo.appendChild(y);Aw.appendChild(Bo);AZ.appendChild(Aw);var Av=document.createElement("tr");var Bl=document.createElement("td");Bl.setAttribute("align","left");Bl.setAttribute("vAlign","middle");Bl.className="fieldNames";var BW=document.createTextNode("Step4 - Functional Area");Bl.appendChild(BW);Av.appendChild(Bl);var Bk=document.createElement("td");Bk.setAttribute("align","left");Bk.setAttribute("vAlign","middle");Bk.className="fieldNames";var U=document.createTextNode(":");Bk.appendChild(U);Av.appendChild(Bk);var Bj=document.createElement("td");Bj.colSpan=2;var AL=document.createElement("table");AL.width="100%";AL.border=0;AL.cellSpacing=0;AL.cellPadding=0;AL.setAttribute("align","center");var BF=document.createElement("tbody");var BU=document.createElement("tr");var AT=document.createElement("td");AT.setAttribute("align","left");AT.setAttribute("vAlign","middle");AT.setAttribute("width","27%");AT.className="fieldNames";var A3=document.createElement("select");var A1=new Array("Accounts / Finance / Tax / CS / Audit","Agent","Architecture / Interior Design","Banking / Insurance","Content / Journalism","Corporate Planning / Consulting","Engineering Design / R&D","Export / Import / Merchandising","Fashion / Garments / Merchandising","Guards / Security Services","Hotels / Restaurants","HR / Administration / IR","IT Software - Client Server","IT Software - Mainframe","IT Software - Middleware","IT Software - Mobile","IT Software - Other","IT Software - System Programming","IT Software - Telecom Software","IT Software- Application Programming / Maintenance","IT Software- DBA / Datawarehousing","IT Software- E-Commerce / Internet Technologies","IT Software- Embedded / EDA / VLSI / ASIC / Chip Design","IT Software- ERP / CRM","IT Software- Network Administration / Security","IT Software- QA & Testing","IT Software- Systems / EDP / MIS","IT- Hardware / Telecom / Technical Staff / Support","ITES / BPO / KPO / Customer Service / Operations","Legal","Marketing / Advertising / MR / PR","Packaging","Pharma / Biotech / Healthcare / Medical / R&D","Production / Maintenance / Quality","Purchase / Logistics / Supply Chain","Sales / BD","Secretary / Front Office / Data Entry","Self Employed / Consultants","Site Engineering / Project Management","Teaching / Education","Ticketing / Travel / Airlines","Top Management","TV / Films / Production","Web / Graphic Design / Visualiser","Other");var Ah=A1.length;A1.sort();var A3=document.createElement("select");A3.setAttribute("id","job_functionalarea");A3.style.width="12em";var G=document.createElement("option");G.value="Functional Area";G.text="Functional Area";A3.options.add(G,0);for(i=0;i<Ah;i++){var F=document.createElement("option");F.value=A1[i];F.text=A1[i];A3.options.add(F,i+1)}AT.appendChild(A3);BU.appendChild(AT);var AE=document.createElement("td");AE.setAttribute("align","left");AE.setAttribute("vAlign","middle");AE.setAttribute("width","23%");AE.className="fieldNames";var A2=document.createElement("select");A2.setAttribute("id","job_role");A2.style.width="10em";var G=document.createElement("option");G.value="Candidate Role";G.text="Candidate Role";A2.options.add(G,0);var s=new Array("Fresher","Graduate Trainee / Management Trainee","Tool Room","Paint Shop","Press Shop","Weld Shop","Service Manager/ Engineer","Spares Manager/ Engineer","Floor Supervisor","Workshop Manager","Maintenance","Technician","Foreman","Draughtsman","Assembler","Safety Officer/ Engineer","Chief Engineer","Tech/ Engg - Manager","Production Manager/ Engineer","Process Manager/ Engineer","Design Manager/ Engineer","Plant Head/ Factory Manager","Automotive Engineer","Aviation Engineer","Chemical Engineer","Civil Engineer","Electrical Engineer","Electronics/ Instrumentation Engineer","Environmental Engineer","Industrial Engineering","Marine Engineer","Mechanical Engineer","Mines Engineer","Projects","Product Manager","Packaging","Customer Service/ Tech Support","Lab Staff","Research Assistant","Data Management/ Statistics","Research Scientist","R & D Manager","Technical Writer","Quality Assurance/ Control","Quality Assurance - Manager","Store Keeper/ Warehouse Assistant","Inventory Control Manager/ Materials Manager","Materials - Head/ GM","Vendor Development Manager","Commercial - Manager","VP/ GM - Commercial","VP/GM - R & D (Production & Engg)","VP/ GM - Quality","VP / GM - Design (Production & Engg)","VP/ GM - Engg/ Production","External Consultant","Other Production/ Engineering/ R&D");var Ah=s.length;s.sort();for(i=0;i<Ah;i++){var F=document.createElement("option");F.value=s[i];F.text=s[i];A2.options.add(F,i+1)}AE.appendChild(A2);BU.appendChild(AE);var u=document.createElement("td");u.setAttribute("align","left");u.setAttribute("vAlign","top");u.className="myAdsEditDesp";var C=document.createTextNode("(Functional Area & the role the candidate will play in that area)");u.appendChild(C);BU.appendChild(u);BF.appendChild(BU);AL.appendChild(BF);Bj.appendChild(AL);Av.appendChild(Bj);AZ.appendChild(Av);var At=document.createElement("tr");var Bf=document.createElement("td");Bf.setAttribute("align","left");Bf.setAttribute("vAlign","middle");Bf.className="fieldNames";var E=document.createTextNode("Step5 - Location");Bf.appendChild(E);At.appendChild(Bf);var Be=document.createElement("td");Be.setAttribute("align","left");Be.setAttribute("vAlign","middle");Be.className="fieldNames";var S=document.createTextNode(":");Be.appendChild(S);At.appendChild(Be);var Bd=document.createElement("td");Bd.setAttribute("align","left");Bd.setAttribute("vAlign","middle");Bd.className="fieldNames";var AN=document.createElement("select");AN.setAttribute("id","job_location");AN.style.width="10em";var G=document.createElement("option");G.value="Indian Location";G.text="Indian Location";AN.options.add(G,0);var A9=new Array("Ahmedabad","Bangalore","Chennai","Delhi","Gurgaon","Hyderabad","Kolkata","Mumbai","Noida","Pune","Agartala","Agra","Ahmednagar","Aizawal","Ajmer","Aligarh","Allahabad","Ambala","Amritsar","Anand","Ankleshwar","Asansol","Aurangabad","Bahgalpur","Bareilly","Baroda","Belgaum","Bellary","Bharuch","Bhatinda","Bhavnagar","Bhilaigarh","Bhopal","Bhubaneshwar","Bhuj","Bidar","Bilaspur","Bokaro","Calicut","Chandigarh","Coimbatore","Cuttack","Dalhousie","Daman","Dehradun","Dhanbad","Dharamsala","Dharwad","Dispur","Durgapur","Ernakulam","Erode","Faizabad","Faridabad","Gandhinagar","Gangtok","Ghaziabad","Goa","Gorakhpur","Gulbarga","Guntur","Guwahati","Gwalior","Haldia","Hisar","Hosur","Hubli","Imphal","Indore","Itanagar","Jabalpur","Jaipur","Jaisalmer","Jalandhar","Jalgaon","Jammu","Jamnagar","Jamshedpur","Jodhpur","Kakinada","Kandla","Kannur","Kanpur","Karnal","Kavaratti","Kharagpur","Kochi","Kohima","Kolar","Kolhapur","Kollam","Kota","Kottayam","Kulu/Manali","Kurnool","Kurukshetra","Lucknow","Ludhiana","Madurai","Mangalore","Mathura","Meerut","Mohali","Moradabad","Mysore","Nagercoil","Nagpur","Nasik","Nellore","Nizamabad","Ooty","Pallakad","Panipat","Paradeep","Pathankot","Patiala","Patna","Pondicherry","Porbandar","Port Blair","Puri","Quilon","Raipur","Rajamundry","Rajkot","Ranchi","Rohtak","Roorkee","Rourkela","Salem","Shillong","Shimla","Sholapur","Silchar","Siliguri","Silvassa","Srinagar","Surat","Thanjavur","Thrissur","Tirunalveli","Tirupati","Tiruvananthapuram","Trichy","Tuticorin","Udaipur","Ujjain","Vadodara","Valsad","Vapi","Varanasi","Vellore","Vijayawada","Visakhapatnam","Warangal","Other India");var Ah=A9.length;A9.sort();for(i=0;i<Ah;i++){var F=document.createElement("option");F.value=A9[i];F.text=A9[i];AN.options.add(F,i+1)}Bd.appendChild(AN);At.appendChild(Bd);var Bb=document.createElement("td");Bb.setAttribute("align","left");Bb.setAttribute("vAlign","middle");Bb.className="myAdsEditDesp";var BP=document.createTextNode("(The Job Location)");Bb.appendChild(BP);At.appendChild(Bb);AZ.appendChild(At);var Ar=document.createElement("tr");var BR=document.createElement("td");BR.setAttribute("align","left");BR.setAttribute("vAlign","middle");BR.className="fieldNames";var x=document.createTextNode("Step6 - Salary");BR.appendChild(x);Ar.appendChild(BR);var BO=document.createElement("td");BO.setAttribute("align","left");BO.setAttribute("vAlign","middle");BO.className="fieldNames";var P=document.createTextNode(":");BO.appendChild(P);Ar.appendChild(BO);var BM=document.createElement("td");BM.colSpan=2;var AK=document.createElement("table");AK.width="100%";AK.border=0;AK.cellSpacing=0;AK.cellPadding=0;AK.setAttribute("align","center");var BE=document.createElement("tbody");var BT=document.createElement("tr");var AS=document.createElement("td");AS.setAttribute("align","left");AS.setAttribute("vAlign","middle");AS.setAttribute("width","14%");AS.className="fieldNames";var R=document.createElement("select");R.setAttribute("id","job_salaryLacs");var G=document.createElement("option");G.value="In Lacs";G.text="In Lacs";R.options.add(G,0);for(i=0;i<100;i++){var F=document.createElement("option");if(i<10){F.value=i;F.text="0"+i}else{F.value=i;F.text=i}R.options.add(F,i+1)}AS.appendChild(R);BT.appendChild(AS);var AD=document.createElement("td");AD.setAttribute("align","left");AD.setAttribute("vAlign","middle");AD.setAttribute("width","20%");AD.className="fieldNames";var O=document.createElement("select");O.setAttribute("id","job_salaryThousands");var G=document.createElement("option");G.value="In Thousands";G.text="In Thousands";O.options.add(G,0);for(i=0;i<100;i++){var F=document.createElement("option");if(i<10){F.value=i;F.text="0"+i}else{F.value=i;F.text=i}O.options.add(F,i+1)}AD.appendChild(O);BT.appendChild(AD);var r=document.createElement("td");r.setAttribute("align","left");r.setAttribute("vAlign","top");r.className="myAdsEditDesp";var AV=document.createTextNode("(The annual salary range)");r.appendChild(AV);BT.appendChild(r);BE.appendChild(BT);AK.appendChild(BE);BM.appendChild(AK);Ar.appendChild(BM);AZ.appendChild(Ar);var Ao=document.createElement("tr");var A7=document.createElement("td");A7.setAttribute("align","left");A7.setAttribute("vAlign","middle");A7.className="fieldNames";var Ag=document.createTextNode("Step7 - Experience");A7.appendChild(Ag);Ao.appendChild(A7);var A6=document.createElement("td");A6.setAttribute("align","left");A6.setAttribute("vAlign","middle");A6.className="fieldNames";var M=document.createTextNode(":");A6.appendChild(M);Ao.appendChild(A6);var A5=document.createElement("td");A5.colSpan=2;var AJ=document.createElement("table");AJ.width="100%";AJ.border=0;AJ.cellSpacing=0;AJ.cellPadding=0;AJ.setAttribute("align","center");var BD=document.createElement("tbody");var BS=document.createElement("tr");var AR=document.createElement("td");AR.setAttribute("align","left");AR.setAttribute("vAlign","middle");AR.setAttribute("width","16%");AR.className="fieldNames";var w=document.createElement("select");w.setAttribute("id","job_min_workexp");var G=document.createElement("option");G.value="Minimum Years";G.text="Minimum Years";w.options.add(G,0);for(i=0;i<30;i++){var F=document.createElement("option");if(i<10){F.value=i;F.text="0"+i}else{F.value=i;F.text=i}w.options.add(F,i+1)}AR.appendChild(w);BS.appendChild(AR);var AC=document.createElement("td");AC.setAttribute("align","left");AC.setAttribute("vAlign","middle");AC.setAttribute("width","16%");AC.className="fieldNames";var v=document.createElement("select");v.setAttribute("id","job_max_workexp");var G=document.createElement("option");G.value="Maximum Years";G.text="Maximum Years";v.options.add(G,0);for(i=0;i<30;i++){var F=document.createElement("option");if(i<10){F.value=i;F.text="0"+i}else{F.value=i;F.text=i}v.options.add(F,i+1)}AC.appendChild(v);BS.appendChild(AC);var q=document.createElement("td");q.setAttribute("align","left");q.setAttribute("vAlign","top");q.className="myAdsEditDesp";var f=document.createTextNode("(The minimum and maximum work experience)");q.appendChild(f);BS.appendChild(q);BD.appendChild(BS);AJ.appendChild(BD);A5.appendChild(AJ);Ao.appendChild(A5);AZ.appendChild(Ao);var An=document.createElement("tr");var Am=document.createElement("td");Am.setAttribute("align","left");Am.setAttribute("vAlign","middle");Am.className="fieldNames";var BY=document.createTextNode("Step8 - Qualification");Am.appendChild(BY);An.appendChild(Am);var Ak=document.createElement("td");Ak.setAttribute("align","left");Ak.setAttribute("vAlign","middle");Ak.className="fieldNames";var J=document.createTextNode(":");Ak.appendChild(J);An.appendChild(Ak);var Ai=document.createElement("td");Ai.colSpan=2;var AI=document.createElement("table");AI.width="100%";AI.border=0;AI.cellSpacing=0;AI.cellPadding=0;AI.setAttribute("align","center");var BC=document.createElement("tbody");var BQ=document.createElement("tr");var AQ=document.createElement("td");AQ.setAttribute("align","left");AQ.setAttribute("vAlign","middle");AQ.setAttribute("width","16%");AQ.className="fieldNames";var Ab=document.createElement("select");Ab.setAttribute("id","UGCourse");Ab.style.width="10em";var G=document.createElement("option");G.value="Graduate";G.text="Graduate";Ab.options.add(G,0);var Ac=new Array("Not Pursuing Graduation","B.A","B.Arch","BCA","B.B.A","B.Com","B.Ed","BDS","BHM","B.Pharma","B.Sc","B.Tech/B.E.","LLB","MBBS","Diploma","BVSC","Other");var Ah=Ac.length;Ac.sort();var G=document.createElement("option");G.value="Graduate";G.text="Graduate";Ab.options.add(G,0);for(i=0;i<Ah;i++){var F=document.createElement("option");F.value=Ac[i];F.text=Ac[i];Ab.options.add(F,i+1)}AQ.appendChild(Ab);BQ.appendChild(AQ);var AB=document.createElement("td");AB.setAttribute("align","left");AB.setAttribute("vAlign","middle");AB.setAttribute("width","21%");AB.className="fieldNames";var AY=document.createElement("select");AY.setAttribute("id","PGCourse");AY.style.width="10em";var G=document.createElement("option");G.value="Post Graduate";G.text="Post Graduate";AY.options.add(G,0);var h=new Array("Not Pursuing Post Graduation","CA","CS","ICWA","Integrated PG","LLM","M.A","M.Arch","M.Com","M.Ed","M.Pharma","M.Sc","M.Tech","MBA/PGDM","MCA","MS","PG Diploma","MVSC","MCM","Other");var Ah=h.length;h.sort();for(i=0;i<Ah;i++){var F=document.createElement("option");F.value=h[i];F.text=h[i];AY.options.add(F,i+1)}AB.appendChild(AY);BQ.appendChild(AB);var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","top");p.className="myAdsEditDesp";var Bi=document.createTextNode("(The undergraduate & graduate qualification)");p.appendChild(Bi);BQ.appendChild(p);BC.appendChild(BQ);AI.appendChild(BC);Ai.appendChild(AI);An.appendChild(Ai);AZ.appendChild(An);var Al=document.createElement("tr");var Aa=document.createElement("td");Aa.setAttribute("align","left");Aa.setAttribute("vAlign","middle");Aa.className="fieldNames";var L=document.createTextNode("Step9 - Company Name");Aa.appendChild(L);Al.appendChild(Aa);var AX=document.createElement("td");AX.setAttribute("align","left");AX.setAttribute("vAlign","middle");AX.className="fieldNames";var H=document.createTextNode(":");AX.appendChild(H);Al.appendChild(AX);var AW=document.createElement("td");AW.colSpan=2;var AH=document.createElement("table");AH.width="100%";AH.border=0;AH.cellSpacing=0;AH.cellPadding=0;AH.setAttribute("align","center");var BB=document.createElement("tbody");var BN=document.createElement("tr");var AP=document.createElement("td");AP.setAttribute("align","left");AP.setAttribute("vAlign","middle");AP.setAttribute("width","34%");AP.className="fieldNames";var Y=document.createElement("input");Y.setAttribute("size","30");Y.setAttribute("id","job_company_name");AP.appendChild(Y);BN.appendChild(AP);var AA=document.createElement("td");AA.setAttribute("align","left");AA.setAttribute("vAlign","middle");AA.setAttribute("width","16%");AA.className="fieldNames";var g=new Array("Accounting/Taxation/Finance","Advertising/PR/MR/Events","Agriculture/Dairy","Architecture/Interior Designing","Auto/Auto Ancillary","Banking/Financial Services/Broking","BPO/ITES/CRM/Transcription","Chemicals/PetroChemical/Plastic/Rubber","Construction/Engineering/Cement/Metals","Consumer Durables","Courier/Transportation/Freight","Defence/Government","Education/Teaching/Training","Export/Import","Fertilizers/Pesticides","FMCG/Foods/Beverage","Fresher/Trainee","Gems & Jewellery","Hotels/Restaurants/Airlines/Travel","Industrial Products/Heavy Machinery","Insurance","IT-Software/Software Services","IT-Hardware & Networking","Telcom/ISP","Legal","Media/Dotcom/Entertainment","Medical/Healthcare/Hospital","NGO/Social Services","Office Equipment/Automation","Oil and Gas/Power/Infrastructure/Energy","Paper","Pharma/Biotech/Clinical Research","Printing/Packaging","Real Estate/Property","Recruitment/Employment Firm","Retailing","Security/Law Enforcement","Semiconductors/Electronics","Shipping/Marine","Textiles/Garments/Accessories","Tyres","Other");var Ah=g.length;g.sort();var BH=document.createElement("select");BH.setAttribute("id","job_industry");BH.style.width="12em";var G=document.createElement("option");G.value="Industry";G.text="Industry";BH.options.add(G,0);for(i=0;i<Ah;i++){var F=document.createElement("option");F.value=g[i];F.text=g[i];BH.options.add(F,i+1)}AA.appendChild(BH);BN.appendChild(AA);var o=document.createElement("td");o.setAttribute("align","left");o.setAttribute("vAlign","top");o.className="myAdsEditDesp";var A0=document.createTextNode("(Company name & the industry it is based in)");o.appendChild(A0);BN.appendChild(o);BB.appendChild(BN);AH.appendChild(BB);AW.appendChild(AH);Al.appendChild(AW);AZ.appendChild(Al);var B=document.createElement("tr");var Bw=document.createElement("td");Bw.setAttribute("align","left");Bw.setAttribute("vAlign","middle");Bw.className="fieldNames";var Aq=document.createTextNode("Step10 - Company Info");Bw.appendChild(Aq);B.appendChild(Bw);var Bv=document.createElement("td");Bv.setAttribute("align","left");Bv.setAttribute("vAlign","middle");Bv.className="fieldNames";var Bh=document.createTextNode(":");Bv.appendChild(Bh);B.appendChild(Bv);var Bu=document.createElement("td");Bu.colSpan=2;var AG=document.createElement("table");AG.width="100%";AG.border=0;AG.cellSpacing=0;AG.cellPadding=0;AG.setAttribute("align","center");var BA=document.createElement("tbody");var BK=document.createElement("tr");var AO=document.createElement("td");AO.setAttribute("align","left");AO.setAttribute("vAlign","middle");AO.setAttribute("width","60%");AO.className="fieldNames";var A8=document.createElement("textArea");A8.setAttribute("rows","3");A8.setAttribute("cols","55");A8.setAttribute("id","job_company_profile");AO.appendChild(A8);BK.appendChild(AO);var z=document.createElement("td");z.setAttribute("align","left");z.setAttribute("vAlign","middle");z.className="myAdsEditDesp";var Bg=document.createTextNode("(A short company profile)");z.appendChild(Bg);BK.appendChild(z);BA.appendChild(BK);AG.appendChild(BA);Bu.appendChild(AG);B.appendChild(Bu);AZ.appendChild(B);var A=document.createElement("tr");var Bn=document.createElement("td");Bn.setAttribute("align","right");Bn.setAttribute("vAlign","middle");Bn.colSpan=4;var BZ=document.createElement("input");BZ.setAttribute("type","button");BZ.setAttribute("value","Back");BZ.onclick=Function("postMarketAds()");Bn.appendChild(BZ);var l=document.createTextNode(" ");Bn.appendChild(l);var T=document.createElement("input");T.setAttribute("type","button");T.setAttribute("value","Next");T.onclick=Function('validateJobsPost("'+BI+'")');if(BI=="Edit"){T.setAttribute("value","Save");BZ.setAttribute("value","Cancel");BZ.onclick=Function("closeMarketWindow()")}Bn.appendChild(T);A.appendChild(Bn);AZ.appendChild(A);Ae.appendChild(AZ);BL.appendChild(Ae);As.appendChild(BL);Bm.appendChild(As);Az.appendChild(Bm);D.appendChild(Az);testT()}function validateJobsPost(T){var Q=document.getElementById("job_title").value;var J=document.getElementById("job_designation").value;var M=document.getElementById("job_candidate_profile").value.replace(/\n/g,"~");var D=document.getElementById("job_functionalarea").value;var b=document.getElementById("job_role").value;var P=document.getElementById("job_location").value;var L=document.getElementById("job_salaryLacs").value;var R=document.getElementById("job_salaryThousands").value;var Y=document.getElementById("job_max_workexp").value;var X=document.getElementById("job_min_workexp").value;var K=document.getElementById("UGCourse").value;var U=document.getElementById("PGCourse").value;var O=document.getElementById("job_company_name").value;var H=document.getElementById("job_industry").value;var B=document.getElementById("job_company_profile").value.replace(/\n/g,"~");var E=document.getElementById("validation_info");while(E.hasChildNodes()){var C=E.firstChild;E.removeChild(C)}if(Q==""){var S=document.createTextNode("Please Enter the Title for the Job");E.appendChild(S)}else{if(J==""){var S=document.createTextNode("Please Enter the Job Designation /Position ");E.appendChild(S)}else{if(M==""){var G=document.createTextNode("Please Enter the Candidate Profile");E.appendChild(G)}else{if(D=="Functional Area"){var W=document.createTextNode("Please Select the Functional Area");E.appendChild(W)}else{if(b=="Candidate Role"){var Z=document.createTextNode("Please Select your Role");E.appendChild(Z)}else{if(P=="Indian Location"){var Z=document.createTextNode("Please Select the Job Location");E.appendChild(Z)}else{if(L=="In Lacs"){var A=document.createTextNode("Please Select Salary in Lacs");E.appendChild(A)}else{if(R=="In Thousands"){var Z=document.createTextNode("Please Select Salary in Thousand");E.appendChild(Z)}else{if(X=="Minimum Years"){var A=document.createTextNode("Please Select Minimum Work Experience");E.appendChild(A)}else{if(Y=="Maximum Years"){var Z=document.createTextNode("Please Select Maximum Work Experience");E.appendChild(Z)}else{if(parseInt(X)>=parseInt(Y)){var Z=document.createTextNode("Maximum Work Experience should be Greater than Minimum");E.appendChild(Z)}else{if(K=="Graduate"){var A=document.createTextNode("Please Select Ug Qualification");E.appendChild(A)}else{if(K=="Post Graduate"){var A=document.createTextNode("Please Select Pg qualification");E.appendChild(A)}else{if(O==""){var V=document.createTextNode("Please Enter the Company Name");E.appendChild(V)}else{if(H=="Industry"){var N=document.createTextNode("Please Select the Industry");E.appendChild(N)}else{if(B==""){var G=document.createTextNode("Please Enter the Company Profile");E.appendChild(G)}else{if(T=="PostAd"){var I=checkLoginNew();if(I==1){NewJobPost()}else{NewPostAdsLogin("Jobs","Jobs")}}else{if(T=="Edit"){var F="candidate_position="+escape(J)+"&candidate_profile="+escape(M)+"&company_name="+escape(O)+"&company_profile="+escape(B)+"&functional_area="+escape(D)+"&industry="+escape(H)+"&role="+escape(b)+"&job_title="+escape(Q)+"&job_description="+escape(Q)+"&salary_Lacs="+escape(L)+"&salary_Thousands="+escape(R)+"&work_exp_max="+escape(Y)+"&work_exp_min="+escape(X)+"&ug_qualification="+escape(K)+"&pg_qualification="+escape(U)+"&location="+escape(P)+"&clid="+escape(clid);postEditJobs(F)}}}}}}}}}}}}}}}}}}}function NewJobPost(){var L=document.getElementById("job_title").value;var F=document.getElementById("job_designation").value;var I=document.getElementById("job_candidate_profile").value;var B=document.getElementById("job_functionalarea").value;var E=document.getElementById("job_industry").value;var R=document.getElementById("job_role").value;var H=document.getElementById("job_salaryLacs").value;var M=document.getElementById("job_salaryThousands").value;var Q=document.getElementById("job_max_workexp").value;var P=document.getElementById("job_min_workexp").value;var G=document.getElementById("UGCourse").value;var N=document.getElementById("PGCourse").value;var K=document.getElementById("job_location").value;var J=document.getElementById("job_company_name").value;var A=document.getElementById("job_company_profile").value.replace(/\n/g,"~");var O="";var C=0;if(document.getElementById("market_post_email")){var O=document.getElementById("market_post_email").value}else{O="0"}if(document.getElementById("market_post_mobile")){C=document.getElementById("market_post_mobile").value}else{C=0}if(O!=""){show_loader();var D="Marketplace/post_jobs_listing.php";request.open("POST",D,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");url1="functional_area="+escape(B)+"&industry="+escape(E)+"&role="+escape(R)+"&job_title="+escape(L)+"&job_description="+escape(L)+"&candidate_position="+escape(F)+"&salary_Lacs="+escape(H)+"&salary_Thousands="+escape(M)+"&work_exp_max="+escape(Q)+"&work_exp_min="+escape(P)+"&ug_qualification="+escape(G)+"&pg_qualification="+escape(N)+"&location="+escape(K)+"&candidate_profile="+escape(I)+"&company_name="+escape(J)+"&company_profile="+escape(A)+"&reply_email="+escape(O)+"&reply_mobile="+escape(C);request.onreadystatechange=updateNewJobPost;request.send(url1)}else{alert("Enter the complete details")}}function updateNewJobPost(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function PostAdResume(V){OnlyDisable();market_remove("AddsDisplayDiv");market_remove("address_inner_div");var Af=document.getElementById("AddsDisplayDiv");var AI=document.getElementById("write_reviewDiv1");Af.style.display="block";AI.style.display="block";Af.style.width="830px";AI.style.height="430px";AI.style.width="850px";Af.style.background="#ffffff";var F=Af;F.setAttribute("align","center");var BN=1;var Y=document.createElement("table");Y.width="98%";Y.border=0;Y.cellSpacing=0;Y.cellPadding=0;Y.setAttribute("align","center");var x=document.createElement("tbody");var Aq=document.createElement("tr");var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","middle");M.className="myAdsValidation";M.setAttribute("id","validation_info");var N=document.createElement("img");N.setAttribute("src","images/close.jpg");N.onclick=Function("closeAcountWindow()");N.setAttribute("height","16");N.setAttribute("width","16");Aq.appendChild(M);x.appendChild(Aq);var Ap=document.createElement("tr");var BL=document.createElement("td");BL.colSpan=2;BL.className="windowTitle";var m=document.createElement("table");m.width="100%";m.border=0;m.cellSpacing=0;m.cellPadding=0;m.setAttribute("align","center");var AF=document.createElement("tbody");var Aa=document.createElement("tr");var An=document.createElement("td");An.setAttribute("align","left");An.setAttribute("vAlign","middle");An.setAttribute("width","24%");An.className="fieldNames";var S=document.createTextNode("Step"+BN+" - Name");An.appendChild(S);Aa.appendChild(An);var Am=document.createElement("td");Am.setAttribute("align","left");Am.setAttribute("vAlign","middle");Am.setAttribute("width","2%");Am.className="fieldNames";var Az=document.createTextNode(":");Am.appendChild(Az);Aa.appendChild(Am);var Ak=document.createElement("td");Ak.setAttribute("align","left");Ak.setAttribute("vAlign","middle");Ak.setAttribute("width","26%");var BF=document.createElement("input");BF.setAttribute("size","30");BF.setAttribute("id","resume_name");Ak.appendChild(BF);Aa.appendChild(Ak);var Ai=document.createElement("td");Ai.setAttribute("align","left");Ai.setAttribute("vAlign","middle");Ai.className="myAdsEditDesp";var Ac=document.createTextNode("(Enter your full name)");Ai.appendChild(Ac);Aa.appendChild(Ai);AF.appendChild(Aa);var AZ=document.createElement("tr");var AL=document.createElement("td");AL.setAttribute("align","left");AL.setAttribute("vAlign","middle");AL.className="fieldNames";BN++;var s=document.createTextNode("Step"+BN+" - Email");AL.appendChild(s);AZ.appendChild(AL);var AK=document.createElement("td");AK.setAttribute("align","left");AK.setAttribute("vAlign","middle");AK.className="fieldNames";var Ay=document.createTextNode(":");AK.appendChild(Ay);AZ.appendChild(AK);var AJ=document.createElement("td");AJ.setAttribute("align","left");AJ.setAttribute("vAlign","middle");var BB=document.createElement("input");BB.setAttribute("size","30");BB.setAttribute("id","resume_email");AJ.appendChild(BB);AZ.appendChild(AJ);var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","middle");AH.className="myAdsEditDesp";var AB=document.createTextNode("(Enter your email address)");AH.appendChild(AB);AZ.appendChild(AH);AF.appendChild(AZ);var AY=document.createElement("tr");var q=document.createElement("td");q.setAttribute("align","left");q.setAttribute("vAlign","middle");q.className="fieldNames";BN++;var AN=document.createTextNode("Step"+BN+" - Mobile");q.appendChild(AN);AY.appendChild(q);var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","middle");p.className="fieldNames";var Ax=document.createTextNode(":");p.appendChild(Ax);AY.appendChild(p);var o=document.createElement("td");o.setAttribute("align","left");o.setAttribute("vAlign","middle");var A4=document.createElement("input");A4.setAttribute("size","30");A4.setAttribute("id","resume_mobile");o.appendChild(A4);AY.appendChild(o);var l=document.createElement("td");l.setAttribute("align","left");l.setAttribute("vAlign","middle");l.className="myAdsEditDesp";var T=document.createTextNode("(Enter your mobile number)");l.appendChild(T);AY.appendChild(l);AF.appendChild(AY);var AY=document.createElement("tr");var q=document.createElement("td");q.setAttribute("align","left");q.setAttribute("vAlign","middle");q.className="fieldNames";BN++;var AN=document.createTextNode("Step"+BN+" - Location");q.appendChild(AN);AY.appendChild(q);var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","middle");p.className="fieldNames";var Ax=document.createTextNode(":");p.appendChild(Ax);AY.appendChild(p);var o=document.createElement("td");o.setAttribute("align","left");o.setAttribute("vAlign","middle");var A4=document.createElement("input");A4.setAttribute("size","30");A4.setAttribute("id","resume_location");o.appendChild(A4);AY.appendChild(o);var l=document.createElement("td");l.setAttribute("align","left");l.setAttribute("vAlign","middle");l.className="myAdsEditDesp";var T=document.createTextNode("(Enter your preferred location for job)");l.appendChild(T);AY.appendChild(l);AF.appendChild(AY);var AX=document.createElement("tr");var R=document.createElement("td");R.setAttribute("align","left");R.setAttribute("vAlign","middle");R.className="fieldNames";BN++;var Ao=document.createTextNode("Step"+BN+" - Experience");R.appendChild(Ao);AX.appendChild(R);var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.className="fieldNames";var Av=document.createTextNode(":");Q.appendChild(Av);AX.appendChild(Q);var P=document.createElement("td");P.colSpan=2;var c=document.createElement("table");c.width="100%";c.border=0;c.cellSpacing=0;c.cellPadding=0;c.setAttribute("align","center");var z=document.createElement("tbody");var J=document.createElement("tr");var BQ=document.createElement("td");BQ.setAttribute("align","left");BQ.setAttribute("vAlign","middle");BQ.setAttribute("width","13%");var BE=document.createElement("select");BE.setAttribute("id","resume_years");var b=document.createElement("option");b.value="Years";b.text="Years";BE.options.add(b,0);for(i=0;i<30;i++){var b=document.createElement("option");if(i<10){b.value=i;b.text="0"+i}else{b.value=i;b.text=i}BE.options.add(b,i+1)}BQ.appendChild(BE);J.appendChild(BQ);var A2=document.createElement("td");A2.setAttribute("align","left");A2.setAttribute("vAlign","middle");A2.setAttribute("width","22%");var BD=document.createElement("select");BD.setAttribute("id","resume_months");var b=document.createElement("option");b.value="Months";b.text="Months";BD.options.add(b,0);for(i=0;i<13;i++){var b=document.createElement("option");if(i<10){b.value=i;b.text="0"+i}else{b.value=i;b.text=i}BD.options.add(b,i+1)}A2.appendChild(BD);J.appendChild(A2);var Aj=document.createElement("td");Aj.setAttribute("align","left");Aj.setAttribute("vAlign","top");Aj.className="myAdsEditDesp";var G=document.createTextNode("(Select your total work experience)");Aj.appendChild(G);J.appendChild(Aj);z.appendChild(J);c.appendChild(z);P.appendChild(c);AX.appendChild(P);AF.appendChild(AX);var AW=document.createElement("tr");var E=document.createElement("td");E.setAttribute("align","left");E.setAttribute("vAlign","middle");E.className="fieldNames";BN++;var A6=document.createTextNode("Step"+BN+" - Salary");E.appendChild(A6);AW.appendChild(E);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";var Au=document.createTextNode(":");D.appendChild(Au);AW.appendChild(D);var C=document.createElement("td");C.colSpan=2;var Z=document.createElement("table");Z.width="100%";Z.border=0;Z.cellSpacing=0;Z.cellPadding=0;Z.setAttribute("align","center");var y=document.createElement("tbody");var I=document.createElement("tr");var BO=document.createElement("td");BO.setAttribute("align","left");BO.setAttribute("vAlign","middle");BO.setAttribute("width","14%");var BI=document.createElement("select");BI.setAttribute("id","resume_lacs");var b=document.createElement("option");b.value="In Lacs";b.text="In Lacs";BI.options.add(b,0);for(i=0;i<100;i++){var b=document.createElement("option");if(i<10){b.value=i;b.text="0"+i}else{b.value=i;b.text=i}BI.options.add(b,i+1)}BO.appendChild(BI);I.appendChild(BO);var A1=document.createElement("td");A1.setAttribute("align","left");A1.setAttribute("vAlign","middle");A1.setAttribute("width","21%");var BH=document.createElement("select");BH.setAttribute("id","resume_thousands");var b=document.createElement("option");b.value="In Thousands";b.text="In Thousands";BH.options.add(b,0);for(i=0;i<100;i++){var b=document.createElement("option");if(i<10){b.value=i;b.text="0"+i}else{b.value=i;b.text=i}BH.options.add(b,i+1)}A1.appendChild(BH);I.appendChild(A1);var Ah=document.createElement("td");Ah.setAttribute("align","left");Ah.setAttribute("vAlign","top");Ah.className="myAdsEditDesp";var A9=document.createTextNode("(Select your annual salary)");Ah.appendChild(A9);I.appendChild(Ah);y.appendChild(I);Z.appendChild(y);C.appendChild(Z);AW.appendChild(C);AF.appendChild(AW);var AV=document.createElement("tr");var BC=document.createElement("td");BC.setAttribute("align","left");BC.setAttribute("vAlign","middle");BC.className="fieldNames";BN++;var B=document.createTextNode("Step"+BN+" - Functional Area");BC.appendChild(B);AV.appendChild(BC);var BA=document.createElement("td");BA.setAttribute("align","left");BA.setAttribute("vAlign","middle");BA.className="fieldNames";var At=document.createTextNode(":");BA.appendChild(At);AV.appendChild(BA);var A8=document.createElement("td");A8.colSpan=2;var c=document.createElement("table");c.width="100%";c.border=0;c.cellSpacing=0;c.cellPadding=0;c.setAttribute("align","center");var z=document.createElement("tbody");var J=document.createElement("tr");var BQ=document.createElement("td");BQ.setAttribute("align","left");BQ.setAttribute("vAlign","middle");BQ.setAttribute("width","26%");var AD=new Array("Accounts / Finance / Tax / CS / Audit","Agent","Architecture / Interior Design","Banking / Insurance","Content / Journalism","Corporate Planning / Consulting","Engineering Design / R&D","Export / Import / Merchandising","Fashion / Garments / Merchandising","Guards / Security Services","Hotels / Restaurants","HR / Administration / IR","IT Software - Client Server","IT Software - Mainframe","IT Software - Middleware","IT Software - Mobile","IT Software - Other","IT Software - System Programming","IT Software - Telecom Software","IT Software- Application Programming / Maintenance","IT Software- DBA / Datawarehousing","IT Software- E-Commerce / Internet Technologies","IT Software- Embedded / EDA / VLSI / ASIC / Chip Design","IT Software- ERP / CRM","IT Software- Network Administration / Security","IT Software- QA & Testing","IT Software- Systems / EDP / MIS","IT- Hardware / Telecom / Technical Staff / Support","ITES / BPO / KPO / Customer Service / Operations","Legal","Marketing / Advertising / MR / PR","Packaging","Pharma / Biotech / Healthcare / Medical / R&D","Production / Maintenance / Quality","Purchase / Logistics / Supply Chain","Sales / BD","Secretary / Front Office / Data Entry","Self Employed / Consultants","Site Engineering / Project Management","Teaching / Education","Ticketing / Travel / Airlines","Top Management","TV / Films / Production","Web / Graphic Design / Visualiser","Other");var Ae=AD.length;AD.sort();var BK=document.createElement("select");BK.setAttribute("id","resume_functional_area");BK.style.width="12em";var h=document.createElement("option");h.value="Functional Area";h.text="Functional Area";BK.options.add(h,0);for(i=0;i<Ae;i++){var g=document.createElement("option");g.value=AD[i];g.text=AD[i];BK.options.add(g,i+1)}BQ.appendChild(BK);J.appendChild(BQ);var A2=document.createElement("td");A2.setAttribute("align","left");A2.setAttribute("vAlign","middle");A2.setAttribute("width","16%");var L=new Array("Accounting/Taxation/Finance","Advertising/PR/MR/Events","Agriculture/Dairy","Architecture/Interior Designing","Auto/Auto Ancillary","Banking/Financial Services/Broking","BPO/ITES/CRM/Transcription","Chemicals/PetroChemical/Plastic/Rubber","Construction/Engineering/Cement/Metals","Consumer Durables","Courier/Transportation/Freight","Defence/Government","Education/Teaching/Training","Export/Import","Fertilizers/Pesticides","FMCG/Foods/Beverage","Fresher/Trainee","Gems & Jewellery","Hotels/Restaurants/Airlines/Travel","Industrial Products/Heavy Machinery","Insurance","IT-Software/Software Services","IT-Hardware & Networking","Telcom/ISP","Legal","Media/Dotcom/Entertainment","Medical/Healthcare/Hospital","NGO/Social Services","Office Equipment/Automation","Oil and Gas/Power/Infrastructure/Energy","Paper","Pharma/Biotech/Clinical Research","Printing/Packaging","Real Estate/Property","Recruitment/Employment Firm","Retailing","Security/Law Enforcement","Semiconductors/Electronics","Shipping/Marine","Textiles/Garments/Accessories","Tyres","Other");var Ae=L.length;L.sort();var BJ=document.createElement("select");BJ.setAttribute("id","resume_industry");BJ.style.width="12em";var h=document.createElement("option");h.value="Industry";h.text="Industry";BJ.options.add(h,0);for(i=0;i<Ae;i++){var g=document.createElement("option");g.value=L[i];g.text=L[i];BJ.options.add(g,i+1)}A2.appendChild(BJ);J.appendChild(A2);var Aj=document.createElement("td");Aj.setAttribute("align","left");Aj.setAttribute("vAlign","top");Aj.className="myAdsEditDesp";var G=document.createTextNode("(Select your Functional Area & Industry)");Aj.appendChild(G);J.appendChild(Aj);z.appendChild(J);c.appendChild(z);A8.appendChild(c);AV.appendChild(A8);AF.appendChild(AV);var AU=document.createElement("tr");var An=document.createElement("td");An.setAttribute("align","left");An.setAttribute("vAlign","middle");An.setAttribute("width","23%");An.className="fieldNames";BN++;var S=document.createTextNode("Step"+BN+" - Key Skills");An.appendChild(S);AU.appendChild(An);var Am=document.createElement("td");Am.setAttribute("align","left");Am.setAttribute("vAlign","middle");Am.setAttribute("width","1%");Am.className="fieldNames";var Az=document.createTextNode(":");Am.appendChild(Az);AU.appendChild(Am);var Ak=document.createElement("td");Ak.colSpan=2;var d=document.createElement("table");d.width="100%";d.border=0;d.cellSpacing=0;d.cellPadding=0;d.setAttribute("align","center");var AA=document.createElement("tbody");var K=document.createElement("tr");var BS=document.createElement("td");BS.setAttribute("align","left");BS.setAttribute("vAlign","middle");BS.setAttribute("width","62%");var BG=document.createElement("textArea");BG.setAttribute("rows","3");BG.setAttribute("cols","55");BG.setAttribute("id","resume_skills");BS.appendChild(BG);K.appendChild(BS);var A3=document.createElement("td");A3.setAttribute("align","left");A3.setAttribute("vAlign","middle");A3.className="myAdsEditDesp";var Ac=document.createTextNode("(Enter you Key Skills)");A3.appendChild(Ac);K.appendChild(A3);AA.appendChild(K);d.appendChild(AA);Ak.appendChild(d);AU.appendChild(Ak);AF.appendChild(AU);var AS=document.createElement("tr");var AQ=document.createElement("td");AQ.setAttribute("align","left");AQ.setAttribute("vAlign","middle");AQ.setAttribute("width","23%");AQ.className="fieldNames";BN++;var S=document.createTextNode("Step"+BN+" - Resume Title");AQ.appendChild(S);AS.appendChild(AQ);var AP=document.createElement("td");AP.setAttribute("align","left");AP.setAttribute("vAlign","middle");AP.setAttribute("width","1%");AP.className="fieldNames";var As=document.createTextNode(":");AP.appendChild(As);AS.appendChild(AP);var AO=document.createElement("td");AO.setAttribute("align","left");AO.setAttribute("vAlign","middle");AO.setAttribute("width","25%");var Al=document.createElement("input");Al.setAttribute("size","30");Al.setAttribute("id","resume_title");AO.appendChild(Al);AS.appendChild(AO);var AM=document.createElement("td");AM.setAttribute("align","left");AM.setAttribute("vAlign","middle");AM.className="myAdsEditDesp";var e=document.createTextNode("(Enter your Resume Title)");AM.appendChild(e);AS.appendChild(AM);AF.appendChild(AS);var AR=document.createElement("tr");var v=document.createElement("td");v.setAttribute("align","left");v.setAttribute("vAlign","middle");v.className="fieldNames";BN++;var AC=document.createTextNode("Step"+BN+"  - Qualification");v.appendChild(AC);AR.appendChild(v);var u=document.createElement("td");u.setAttribute("align","left");u.setAttribute("vAlign","middle");u.className="fieldNames";var Ar=document.createTextNode(":");u.appendChild(Ar);AR.appendChild(u);var r=document.createElement("td");r.colSpan=2;var X=document.createElement("table");X.width="100%";X.border=0;X.cellSpacing=0;X.cellPadding=0;X.setAttribute("align","center");var w=document.createElement("tbody");var H=document.createElement("tr");var BM=document.createElement("td");BM.setAttribute("align","left");BM.setAttribute("vAlign","middle");BM.setAttribute("width","16%");var Ad=new Array("Not Pursuing Graduation","B.A","B.Arch","BCA","B.B.A","B.Com","B.Ed","BDS","BHM","B.Pharma","B.Sc","B.Tech/B.E.","LLB","MBBS","Diploma","BVSC","Other");var Ae=Ad.length;Ad.sort();var BR=document.createElement("select");BR.setAttribute("id","resume_graduate");BR.style.width="10em";var h=document.createElement("option");h.value="Graduate";h.text="Graduate";BR.options.add(h,0);for(i=0;i<Ae;i++){var g=document.createElement("option");g.value=Ad[i];g.text=Ad[i];BR.options.add(g,i+1)}BM.appendChild(BR);H.appendChild(BM);var A0=document.createElement("td");A0.setAttribute("align","left");A0.setAttribute("vAlign","middle");A0.setAttribute("width","21%");var AT=new Array("Not Pursuing Post Graduation","CA","CS","ICWA","Integrated PG","LLM","M.A","M.Arch","M.Com","M.Ed","M.Pharma","M.Sc","M.Tech","MBA/PGDM","MCA","MS","PG Diploma","MVSC","MCM","Other");var Ae=AT.length;AT.sort();var BP=document.createElement("select");BP.setAttribute("id","resume_postgraduate");BP.style.width="10em";var h=document.createElement("option");h.value="Post Graduate";h.text="Post Graduate";BP.options.add(h,0);for(i=0;i<Ae;i++){var g=document.createElement("option");g.value=AT[i];g.text=AT[i];BP.options.add(g,i+1)}A0.appendChild(BP);H.appendChild(A0);var Ag=document.createElement("td");Ag.setAttribute("align","left");Ag.setAttribute("vAlign","middle");Ag.setAttribute("width","17%");var A7=new Array("Not Pursuing Doctorate","Ph.D/Doctorate","MPHIL","Other");var Ae=A7.length;A7.sort();var BP=document.createElement("select");BP.setAttribute("id","resume_doctorate");BP.style.width="10em";var h=document.createElement("option");h.value="Doctorate";h.text="Doctorate";BP.options.add(h,0);for(i=0;i<Ae;i++){var f=document.createElement("option");f.value=A7[i];f.text=A7[i];BP.options.add(f,i+1)}Ag.appendChild(BP);H.appendChild(Ag);var AE=document.createElement("td");AE.setAttribute("align","left");AE.setAttribute("vAlign","top");AE.className="myAdsEditDesp";var e=document.createTextNode("(Select your qualifications)");AE.appendChild(e);H.appendChild(AE);w.appendChild(H);X.appendChild(w);r.appendChild(X);AR.appendChild(r);AF.appendChild(AR);var W=document.createElement("tr");var An=document.createElement("td");An.setAttribute("align","left");An.setAttribute("vAlign","middle");An.setAttribute("width","23%");An.className="fieldNames";BN++;var S=document.createTextNode("Step"+BN+" - Upload Resume");An.appendChild(S);W.appendChild(An);var Am=document.createElement("td");Am.setAttribute("align","left");Am.setAttribute("vAlign","middle");Am.setAttribute("width","1%");Am.className="fieldNames";var Az=document.createTextNode(":");Am.appendChild(Az);W.appendChild(Am);var Ak=document.createElement("td");Ak.colSpan=2;var d=document.createElement("table");d.width="100%";d.border=0;d.cellSpacing=0;d.cellPadding=0;d.setAttribute("align","center");var AA=document.createElement("tbody");var K=document.createElement("tr");var BS=document.createElement("td");BS.setAttribute("align","left");BS.setAttribute("vAlign","middle");BS.setAttribute("width","45%");BS.setAttribute("id","Td_UploadFile");var O=document.createElement("input");O.setAttribute("type","file");O.setAttribute("id","file");O.setAttribute("name","userfile");BS.appendChild(O);var Ab=document.createTextNode(" ");BS.appendChild(Ab);var A5=document.createElement("input");A5.setAttribute("type","submit");A5.setAttribute("value","Upload Resume");A5.setAttribute("id","upload_button");A5.onclick=Function();K.appendChild(BS);var Aw=document.createElement("td");Aw.setAttribute("align","left");Aw.setAttribute("vAlign","middle");Aw.setAttribute("id","Td_UploadButton");Aw.appendChild(A5);K.appendChild(Aw);var A3=document.createElement("td");A3.setAttribute("align","left");A3.setAttribute("vAlign","middle");A3.className="myAdsEditDesp";var Ac=document.createTextNode("(Upload your Word format resume)");A3.appendChild(Ac);K.appendChild(A3);AA.appendChild(K);d.appendChild(AA);Ak.appendChild(d);W.appendChild(Ak);AF.appendChild(W);var U=document.createElement("tr");var A=document.createElement("td");A.setAttribute("align","right");A.setAttribute("vAlign","middle");A.colSpan=4;var AG=document.createElement("input");AG.setAttribute("type","button");AG.setAttribute("value","< Back");AG.onclick=Function("postMarketAds()");A.appendChild(AG);var Ab=document.createTextNode(" ");A.appendChild(Ab);var A5=document.createElement("input");A5.setAttribute("type","button");A5.setAttribute("value","Next >");A5.onclick=Function("validateResumePost()");A.appendChild(A5);U.appendChild(A);AF.appendChild(U);m.appendChild(AF);BL.appendChild(m);Ap.appendChild(BL);x.appendChild(Ap);Y.appendChild(x);F.appendChild(Y);makeTrue();testT()}function validateResumePost(){var c=document.getElementById("resume_name");var P=document.getElementById("resume_email");var I=document.getElementById("resume_location");var D=document.getElementById("resume_mobile");var A=document.getElementById("resume_years");var J=document.getElementById("resume_months");var E=document.getElementById("resume_lacs");var G=document.getElementById("resume_thousands");var N=document.getElementById("resume_functional_area");var K=document.getElementById("resume_industry");var b=document.getElementById("resume_skills");var L=document.getElementById("resume_title");var W=document.getElementById("resume_graduate");var X=document.getElementById("resume_postgraduate");var R=document.getElementById("resume_doctorate");var Z=document.getElementById("file");var Q=document.getElementById("validation_info");while(Q.hasChildNodes()){var B=Q.firstChild;Q.removeChild(B)}if(c.value==""){var C=document.createTextNode("Please enter your name");Q.appendChild(C)}else{if(P.value==""){var C=document.createTextNode("Please enter your email address");Q.appendChild(C)}else{if(D.value==""){var C=document.createTextNode("Please enter your mobile");Q.appendChild(C)}else{if(I.value==""){var S=document.createTextNode("Please enter your prefered location");Q.appendChild(S)}else{if(A.value=="Years"){var O=document.createTextNode("Please enter your experience in Years");Q.appendChild(O)}else{if(J.value=="Months"){var F=document.createTextNode("Please enter your experience Months");Q.appendChild(F)}else{if(E.value=="In Lacs"){var M=document.createTextNode("Please enter your salary in lacs");Q.appendChild(M)}else{if(G.value=="In Thousands"){var M=document.createTextNode("Please enter your salary thousands");Q.appendChild(M)}else{if(N.value=="Functional Area"){var V=document.createTextNode("Please select your functional area");Q.appendChild(V)}else{if(K.value=="Industry"){var U=document.createTextNode("Please select your industry");Q.appendChild(U)}else{if(b.value==""){var T=document.createTextNode("Please mention your key skills");Q.appendChild(T)}else{if(L.value==""){var H=document.createTextNode("Please mention a title for your resume");Q.appendChild(H)}else{if(W.value=="Graduate"){var Y=document.createTextNode("Mention your basic qualification");Q.appendChild(Y)}else{if(X.value=="Post Graduate"){var Y=document.createTextNode("Mention your Post Graduate qualification");Q.appendChild(Y)}else{if(R.value=="Doctorate"){var Y=document.createTextNode("Mention your Doctorate qualification");Q.appendChild(Y)}else{NewPostAdsLogin("Jobs","Resume")}}}}}}}}}}}}}}}}function NewResumePost(K){var U=document.getElementById("resume_name").value;var O=document.getElementById("resume_email").value;var H=document.getElementById("resume_location").value;var B=document.getElementById("resume_mobile").value;var A=document.getElementById("resume_years").value;var I=document.getElementById("resume_months").value;var C=document.getElementById("resume_lacs").value;var E=document.getElementById("resume_thousands").value;var N=document.getElementById("resume_functional_area").value;var J=document.getElementById("resume_industry").value;var T=document.getElementById("resume_skills").value;var M=document.getElementById("resume_title").value;var R=document.getElementById("resume_graduate").value;var S=document.getElementById("resume_postgraduate").value;var P=document.getElementById("resume_doctorate").value;var L="Jobs";var G="Resume";var Q=document.getElementById("market_post_email").value;var D=0;if(document.getElementById("market_post_mobile")){D=document.getElementById("market_post_mobile").value}else{D=0}if(Q!=""){show_loader();var F="Marketplace/post_resume_listing.php";request.open("POST",F,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewPostResumeListing;if(clid){url1="person_name="+escape(U)+"&email="+escape(O)+"&mobile="+escape(B)+"&location="+escape(H)+"&tot_exp_years="+escape(A)+"&tot_exp_mnths="+escape(I)+"&ctc_lacs="+escape(C)+"&ctc_K="+escape(E)+"&func_area="+escape(N)+"&industry="+escape(J)+"&key_skills="+escape(T)+"&resume_title="+escape(M)+"&ug="+escape(R)+"&pg="+escape(S)+"&ppg="+escape(P)+"&clid="+escape(clid)}else{url1="person_name="+escape(U)+"&email="+escape(O)+"&mobile="+escape(B)+"&location="+escape(H)+"&tot_exp_years="+escape(A)+"&tot_exp_mnths="+escape(I)+"&ctc_lacs="+escape(C)+"&ctc_K="+escape(E)+"&func_area="+escape(N)+"&industry="+escape(J)+"&key_skills="+escape(T)+"&resume_title="+escape(M)+"&ug="+escape(R)+"&pg="+escape(S)+"&ppg="+escape(P)+"&clid="}request.send(url1)}else{alert("Enter the complete details")}}function updateNewPostResumeListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;closeMarketWindow();show_classified("null","null",0);update_log_box();hide_loader()}}}function validateResumeUpdate(){var c=document.getElementById("resume_name");var P=document.getElementById("resume_email");var I=document.getElementById("resume_location");var D=document.getElementById("resume_mobile");var A=document.getElementById("resume_years");var J=document.getElementById("resume_months");var E=document.getElementById("resume_lacs");var G=document.getElementById("resume_thousands");var N=document.getElementById("resume_functional_area");var K=document.getElementById("resume_industry");var b=document.getElementById("resume_skills");var L=document.getElementById("resume_title");var W=document.getElementById("resume_graduate");var X=document.getElementById("resume_postgraduate");var R=document.getElementById("resume_doctorate");var Z=document.getElementById("file");var Q=document.getElementById("validation_info");while(Q.hasChildNodes()){var B=Q.firstChild;Q.removeChild(B)}if(c.value==""){var C=document.createTextNode("Please enter your name");Q.appendChild(C)}else{if(P.value==""){var C=document.createTextNode("Please enter your email address");Q.appendChild(C)}else{if(D.value==""){var C=document.createTextNode("Please enter your mobile");Q.appendChild(C)}else{if(I.value==""){var S=document.createTextNode("Please enter your prefered location");Q.appendChild(S)}else{if(A.value=="Years"){var O=document.createTextNode("Please enter your experience in Years");Q.appendChild(O)}else{if(J.value=="Months"){var F=document.createTextNode("Please enter your experience Months");Q.appendChild(F)}else{if(E.value=="In Lacs"){var M=document.createTextNode("Please enter your salary in lacs");Q.appendChild(M)}else{if(G.value=="In Thousands"){var M=document.createTextNode("Please enter your salary thousands");Q.appendChild(M)}else{if(N.value=="Functional Area"){var V=document.createTextNode("Please select your functional area");Q.appendChild(V)}else{if(K.value=="Industry"){var U=document.createTextNode("Please select your industry");Q.appendChild(U)}else{if(b.value==""){var T=document.createTextNode("Please mention your key skills");Q.appendChild(T)}else{if(L.value==""){var H=document.createTextNode("Please mention a title for your resume");Q.appendChild(H)}else{if(W.value=="Graduate"){var Y=document.createTextNode("Mention your basic qualification");Q.appendChild(Y)}else{if(X.value=="Post Graduate"){var Y=document.createTextNode("Mention your Post Graduate qualification");Q.appendChild(Y)}else{if(R.value=="Doctorate"){var Y=document.createTextNode("Mention your Doctorate qualification");Q.appendChild(Y)}else{NewResumeUpdate("Resume")}}}}}}}}}}}}}}}}function NewResumeUpdate(J){var S=document.getElementById("resume_name").value;var N=document.getElementById("resume_email").value;var G=document.getElementById("resume_location").value;var B=document.getElementById("resume_mobile").value;var A=document.getElementById("resume_years").value;var H=document.getElementById("resume_months").value;var C=document.getElementById("resume_lacs").value;var D=document.getElementById("resume_thousands").value;var M=document.getElementById("resume_functional_area").value;var I=document.getElementById("resume_industry").value;var R=document.getElementById("resume_skills").value;var L=document.getElementById("resume_title").value;var P=document.getElementById("resume_graduate").value;var Q=document.getElementById("resume_postgraduate").value;var O=document.getElementById("resume_doctorate").value;var K="Jobs";var F="Resume";show_loader();var E="Marketplace/Update_resume_listing.php";request.open("POST",E,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewUpdateResumeListing;if(clid){url1="person_name="+escape(S)+"&email="+escape(N)+"&mobile="+escape(B)+"&location="+escape(G)+"&tot_exp_years="+escape(A)+"&tot_exp_mnths="+escape(H)+"&ctc_lacs="+escape(C)+"&ctc_K="+escape(D)+"&func_area="+escape(M)+"&industry="+escape(I)+"&key_skills="+escape(R)+"&resume_title="+escape(L)+"&ug="+escape(P)+"&pg="+escape(Q)+"&ppg="+escape(O)+"&clid="+escape(clid)}else{url1="person_name="+escape(S)+"&email="+escape(N)+"&mobile="+escape(B)+"&location="+escape(G)+"&tot_exp_years="+escape(A)+"&tot_exp_mnths="+escape(H)+"&ctc_lacs="+escape(C)+"&ctc_K="+escape(D)+"&func_area="+escape(M)+"&industry="+escape(I)+"&key_skills="+escape(R)+"&resume_title="+escape(L)+"&ug="+escape(P)+"&pg="+escape(Q)+"&ppg="+escape(O)+"&clid="}request.send(url1)}function updateNewUpdateResumeListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;closeMarketWindow();show_classified("null","null",0);update_log_box();hide_loader()}}}function PostAdProperty(e,BC){windowIsActive=true;OnlyDisable();market_remove("AddsDisplayDiv");var Am=document.getElementById("AddsDisplayDiv");var AS=document.getElementById("write_reviewDiv1");Am.style.display="block";AS.style.display="block";Am.style.width="735px";AS.style.height="455px";AS.style.width="755px";var H=Am;Am.style.background="#ffffff";H.setAttribute("align","center");var BY=1;var g=document.createElement("table");g.width="95%";g.border=0;g.cellSpacing=0;g.cellPadding=0;g.setAttribute("align","center");var AD=document.createElement("tbody");var Ax=document.createElement("tr");var L=document.createElement("td");var L=document.createElement("td");L.setAttribute("align","left");L.setAttribute("vAlign","middle");L.className="myAdsValidation";L.colSpan=2;var V=document.createElement("div");V.setAttribute("id","validation_info");L.appendChild(V);Ax.appendChild(L);var K=document.createElement("td");K.setAttribute("align","right");K.setAttribute("vAlign","middle");K.className="windowTitle";var N=document.createElement("img");N.setAttribute("src","images/close.jpg");N.onclick=Function("closeMarketWindow()");N.setAttribute("height","16");N.setAttribute("width","16");K.appendChild(N);AD.appendChild(Ax);var Aw=document.createElement("tr");var BT=document.createElement("td");BT.colSpan=2;BT.className="windowTitle";var s=document.createElement("table");s.width="100%";s.border=0;s.cellSpacing=0;s.cellPadding=0;s.setAttribute("align","center");var AP=document.createElement("tbody");var Aj=document.createElement("tr");var Au=document.createElement("td");Au.setAttribute("align","left");Au.setAttribute("vAlign","middle");Au.className="fieldNames";var b=document.createTextNode("Step"+BY+" - Ad Title");Au.appendChild(b);Aj.appendChild(Au);var As=document.createElement("td");As.setAttribute("align","left");As.setAttribute("vAlign","middle");As.setAttribute("width","1%");As.className="fieldNames";var BA=document.createTextNode(":");As.appendChild(BA);Aj.appendChild(As);var Ar=document.createElement("td");Ar.setAttribute("align","left");Ar.setAttribute("vAlign","middle");Ar.setAttribute("width","29%");Ar.className="fieldNames";var BO=document.createElement("input");BO.setAttribute("size","30");BO.setAttribute("id","property_title");Ar.appendChild(BO);Aj.appendChild(Ar);var Ap=document.createElement("td");Ap.setAttribute("align","left");Ap.setAttribute("vAlign","middle");Ap.className="myAdsEditDesp";var Al=document.createTextNode("(A short title for your ad)");Ap.appendChild(Al);Aj.appendChild(Ap);AP.appendChild(Aj);if(e=="Apartments"||e=="Independent House"||e=="Office Space"||e=="Retail Space"){var Ai=document.createElement("tr");var AW=document.createElement("td");AW.setAttribute("align","left");AW.setAttribute("vAlign","middle");AW.className="fieldNames";BY++;var AA=document.createTextNode("Step"+BY+" - Area");AW.appendChild(AA);Ai.appendChild(AW);var AU=document.createElement("td");AU.setAttribute("align","left");AU.setAttribute("vAlign","middle");AU.className="fieldNames";var A8=document.createTextNode(":");AU.appendChild(A8);Ai.appendChild(AU);var AT=document.createElement("td");AT.setAttribute("align","left");AT.setAttribute("vAlign","middle");AT.className="fieldNames";var BK=document.createElement("input");BK.setAttribute("size","30");BK.setAttribute("id","property_built_area");AT.appendChild(BK);Ai.appendChild(AT);var AR=document.createElement("td");AR.setAttribute("align","left");AR.setAttribute("vAlign","middle");AR.className="myAdsEditDesp";var AE=document.createTextNode("(The built up area of your property)");AR.appendChild(AE);Ai.appendChild(AR);AP.appendChild(Ai)}else{if(e=="Land"){var Ai=document.createElement("tr");var AW=document.createElement("td");AW.setAttribute("align","left");AW.setAttribute("vAlign","middle");AW.className="fieldNames";BY++;var AA=document.createTextNode("Step"+BY+" - Area");AW.appendChild(AA);Ai.appendChild(AW);var AU=document.createElement("td");AU.setAttribute("align","left");AU.setAttribute("vAlign","middle");AU.className="fieldNames";var A8=document.createTextNode(":");AU.appendChild(A8);Ai.appendChild(AU);var AT=document.createElement("td");AT.setAttribute("align","left");AT.setAttribute("vAlign","middle");AT.className="fieldNames";var BK=document.createElement("input");BK.setAttribute("size","30");BK.setAttribute("id","property_land_area");AT.appendChild(BK);Ai.appendChild(AT);var AR=document.createElement("td");AR.setAttribute("align","left");AR.setAttribute("vAlign","middle");AR.className="myAdsEditDesp";var AE=document.createTextNode("(The area of your property)");AR.appendChild(AE);Ai.appendChild(AR);AP.appendChild(Ai)}}var Ah=document.createElement("tr");var w=document.createElement("td");w.setAttribute("align","left");w.setAttribute("vAlign","middle");w.className="fieldNames";BY++;var AX=document.createTextNode("Step"+BY+" - Transaction");w.appendChild(AX);Ah.appendChild(w);var v=document.createElement("td");v.setAttribute("align","left");v.setAttribute("vAlign","middle");v.className="fieldNames";var A7=document.createTextNode(":");v.appendChild(A7);Ah.appendChild(v);var u=document.createElement("td");u.setAttribute("align","left");u.setAttribute("vAlign","middle");u.className="fieldNames";var AF=document.createElement("select");AF.setAttribute("id","transaction_type");var q=document.createElement("option");q.value="Select";q.text="Select";AF.options.add(q,0);var o=document.createElement("option");o.value="Sell";o.text="Sell";AF.options.add(o,1);var m=document.createElement("option");m.value="Lease";m.text="Lease";AF.options.add(m,2);u.appendChild(AF);Ah.appendChild(u);var r=document.createElement("td");r.setAttribute("align","left");r.setAttribute("vAlign","middle");r.className="myAdsEditDesp";var c=document.createTextNode("(The kind of transaction you are interested)");r.appendChild(c);Ah.appendChild(r);AP.appendChild(Ah);if(e=="Apartments"||e=="Office Space"){var Ag=document.createElement("tr");var Z=document.createElement("td");Z.setAttribute("align","left");Z.setAttribute("vAlign","middle");Z.setAttribute("width","22%");Z.className="fieldNames";BY++;var Av=document.createTextNode("Step"+BY+" - Floor");Z.appendChild(Av);Ag.appendChild(Z);var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.className="fieldNames";var A6=document.createTextNode(":");Y.appendChild(A6);Ag.appendChild(Y);var X=document.createElement("td");X.setAttribute("align","left");X.setAttribute("vAlign","middle");X.className="fieldNames";var BD=document.createElement("input");BD.setAttribute("size","30");BD.setAttribute("id","property_on_floor");X.appendChild(BD);Ag.appendChild(X);var W=document.createElement("td");W.setAttribute("align","left");W.setAttribute("vAlign","middle");W.className="myAdsEditDesp";var I=document.createTextNode("(The floor on which this property is located)");W.appendChild(I);Ag.appendChild(W);AP.appendChild(Ag)}else{if(e=="Independent House"||e=="Retail Space"){var Ag=document.createElement("tr");var Z=document.createElement("td");Z.setAttribute("align","left");Z.setAttribute("vAlign","middle");Z.setAttribute("width","22%");Z.className="fieldNames";BY++;var Av=document.createTextNode("Step"+BY+" - Floors");Z.appendChild(Av);Ag.appendChild(Z);var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.className="fieldNames";var A6=document.createTextNode(":");Y.appendChild(A6);Ag.appendChild(Y);var X=document.createElement("td");X.setAttribute("align","left");X.setAttribute("vAlign","middle");X.className="fieldNames";var BD=document.createElement("input");BD.setAttribute("size","30");BD.setAttribute("id","property_no_of_floors");X.appendChild(BD);Ag.appendChild(X);var W=document.createElement("td");W.setAttribute("align","left");W.setAttribute("vAlign","middle");W.className="myAdsEditDesp";var I=document.createTextNode("(How many floors does this property have)");W.appendChild(I);Ag.appendChild(W);AP.appendChild(Ag)}else{if(e=="Land"){var Ag=document.createElement("tr");var Z=document.createElement("td");Z.setAttribute("align","left");Z.setAttribute("vAlign","middle");Z.className="fieldNames";BY++;var Av=document.createTextNode("Step"+BY+" - Electric Supply");Z.appendChild(Av);Ag.appendChild(Z);var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.className="fieldNames";var A6=document.createTextNode(":");Y.appendChild(A6);Ag.appendChild(Y);var X=document.createElement("td");X.setAttribute("align","left");X.setAttribute("vAlign","middle");X.className="fieldNames";var BN=document.createElement("select");BN.setAttribute("id","property_electricity");var q=document.createElement("option");q.value="Select";q.text="Select";BN.options.add(q,0);var o=document.createElement("option");o.value="Phase1";o.text="Phase1";BN.options.add(o,1);var m=document.createElement("option");m.value="Phase2";m.text="Phase2";BN.options.add(m,2);X.appendChild(BN);Ag.appendChild(X);var W=document.createElement("td");W.setAttribute("align","left");W.setAttribute("vAlign","middle");W.className="myAdsEditDesp";var I=document.createTextNode("(Select the type of electric supply available)");W.appendChild(I);Ag.appendChild(W);AP.appendChild(Ag)}}}if(e=="Apartments"||e=="Independent House"){var Af=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";BY++;var BE=document.createTextNode("Step"+BY+" - Rooms");G.appendChild(BE);Af.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.className="fieldNames";var A5=document.createTextNode(":");F.appendChild(A5);Af.appendChild(F);var D=document.createElement("td");D.colSpan=2;var Ao=document.createElement("table");Ao.width="100%";Ao.border=0;Ao.cellSpacing=0;Ao.cellPadding=0;Ao.setAttribute("align","center");var AM=document.createElement("tbody");var BZ=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.setAttribute("width","19%");Q.className="fieldNames";var BR=document.createElement("select");BR.setAttribute("id","property_bedrooms");var q=document.createElement("option");q.value="Bedrooms";q.text="Bedrooms";BR.options.add(q,0);for(i=0;i<11;i++){var o=document.createElement("option");o.value=i;o.text=i;BR.options.add(o,i+1)}Q.appendChild(BR);BZ.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","middle");P.setAttribute("width","20%");P.className="fieldNames";var BQ=document.createElement("select");BQ.setAttribute("id","property_bathrooms");var q=document.createElement("option");q.value="Bathrooms";q.text="Bathrooms";BQ.options.add(q,0);for(i=0;i<11;i++){var o=document.createElement("option");o.value=i;o.text=i;BQ.options.add(o,i+1)}P.appendChild(BQ);BZ.appendChild(P);var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","top");O.className="myAdsEditDesp";var Aq=document.createTextNode("(How many Bedrooms and Bathrooms does this property have)");O.appendChild(Aq);BZ.appendChild(O);AM.appendChild(BZ);Ao.appendChild(AM);D.appendChild(Ao);Af.appendChild(D);AP.appendChild(Af)}else{if(e=="Office Space"){var Ae=document.createElement("tr");var BL=document.createElement("td");BL.setAttribute("align","left");BL.setAttribute("vAlign","middle");BL.className="fieldNames";BY++;var B=document.createTextNode("Step"+BY+" - Capacity");BL.appendChild(B);Ae.appendChild(BL);var BJ=document.createElement("td");BJ.setAttribute("align","left");BJ.setAttribute("vAlign","middle");BJ.className="fieldNames";var A4=document.createTextNode(":");BJ.appendChild(A4);Ae.appendChild(BJ);var BH=document.createElement("td");BH.setAttribute("align","left");BH.setAttribute("vAlign","middle");BH.className="fieldNames";var A9=document.createElement("input");A9.setAttribute("size","30");A9.setAttribute("id","office_seating_capacity");BH.appendChild(A9);Ae.appendChild(BH);var BF=document.createElement("td");BF.setAttribute("align","left");BF.setAttribute("vAlign","middle");BF.className="myAdsEditDesp";var I=document.createTextNode("(The seating capacity of this office)");BF.appendChild(I);Ae.appendChild(BF);AP.appendChild(Ae)}else{if(e=="Retail Space"){var Af=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";BY++;var BE=document.createTextNode("Step"+BY+" - Visibilty");G.appendChild(BE);Af.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.className="fieldNames";var A5=document.createTextNode(":");F.appendChild(A5);Af.appendChild(F);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";var AK=document.createElement("input");AK.setAttribute("type","radio");AK.setAttribute("name","frontView");AK.setAttribute("value","yes");AK.setAttribute("id","frontage_yes");AK.className="check_box";D.appendChild(AK);var BX=document.createTextNode("Yes");D.appendChild(BX);var AJ=document.createElement("input");AJ.setAttribute("type","radio");AJ.setAttribute("name","frontView");AJ.setAttribute("value","no");AJ.setAttribute("id","frontage_no");AJ.className="check_box";AJ.onclick=function(){this.checked=true;AK.checked=false};AK.onclick=function(){this.checked=true;AJ.checked=false};D.appendChild(AJ);var BW=document.createTextNode("No");D.appendChild(BW);Af.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="myAdsEditDesp";var BG=document.createTextNode("(The frontage visibility from street)");C.appendChild(BG);Af.appendChild(C);AP.appendChild(Af)}else{if(e=="Land"){var Af=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";BY++;var BE=document.createTextNode("Step"+BY+" - Water Supply");G.appendChild(BE);Af.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.className="fieldNames";var A5=document.createTextNode(":");F.appendChild(A5);Af.appendChild(F);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";var BR=document.createElement("select");BR.setAttribute("id","water_supply");var q=document.createElement("option");q.value="Select";q.text="Select";BR.options.add(q,0);var o=document.createElement("option");o.value="Muncipal";o.text="Muncipal";BR.options.add(o,1);var m=document.createElement("option");m.value="Well";m.text="Well";BR.options.add(m,2);D.appendChild(BR);Af.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="myAdsEditDesp";var BG=document.createTextNode("(Select the type of water supply available)");C.appendChild(BG);Af.appendChild(C);AP.appendChild(Af)}}}}if(e=="Apartments"||e=="Independent House"){var Ae=document.createElement("tr");var BL=document.createElement("td");BL.setAttribute("align","left");BL.setAttribute("vAlign","middle");BL.className="fieldNames";BY++;var B=document.createTextNode("Step"+BY+" - Parking");BL.appendChild(B);Ae.appendChild(BL);var BJ=document.createElement("td");BJ.setAttribute("align","left");BJ.setAttribute("vAlign","middle");BJ.className="fieldNames";var A4=document.createTextNode(":");BJ.appendChild(A4);Ae.appendChild(BJ);var BH=document.createElement("td");BH.setAttribute("align","left");BH.setAttribute("vAlign","middle");BH.className="fieldNames";var A9=document.createElement("input");A9.setAttribute("size","30");A9.setAttribute("id","property_car_park");BH.appendChild(A9);Ae.appendChild(BH);var BF=document.createElement("td");BF.setAttribute("align","left");BF.setAttribute("vAlign","middle");BF.className="myAdsEditDesp";var I=document.createTextNode("(How many parking spots does this property have)");BF.appendChild(I);Ae.appendChild(BF);AP.appendChild(Ae)}else{if(e=="Office Space"){var Af=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";BY++;var BE=document.createTextNode("Step"+BY+" - Restrooms");G.appendChild(BE);Af.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.className="fieldNames";var A5=document.createTextNode(":");F.appendChild(A5);Af.appendChild(F);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";var BB=document.createElement("input");BB.setAttribute("size","30");BB.setAttribute("id","office_restroom");D.appendChild(BB);Af.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="myAdsEditDesp";var BG=document.createTextNode("(How many Restrooms does this office have)");C.appendChild(BG);Af.appendChild(C);AP.appendChild(Af)}else{if(e=="Retail Space"){var Ae=document.createElement("tr");var BL=document.createElement("td");BL.setAttribute("align","left");BL.setAttribute("vAlign","middle");BL.className="fieldNames";BY++;var B=document.createTextNode("Step"+BY+" - Width");BL.appendChild(B);Ae.appendChild(BL);var BJ=document.createElement("td");BJ.setAttribute("align","left");BJ.setAttribute("vAlign","middle");BJ.className="fieldNames";var A4=document.createTextNode(":");BJ.appendChild(A4);Ae.appendChild(BJ);var BH=document.createElement("td");BH.setAttribute("align","left");BH.setAttribute("vAlign","middle");BH.className="fieldNames";var A9=document.createElement("input");A9.setAttribute("size","30");A9.setAttribute("id","frontage_width");BH.appendChild(A9);Ae.appendChild(BH);var BF=document.createElement("td");BF.setAttribute("align","left");BF.setAttribute("vAlign","middle");BF.className="myAdsEditDesp";var I=document.createTextNode("(The frontage width in feet)");BF.appendChild(I);Ae.appendChild(BF);AP.appendChild(Ae)}else{if(e=="Land"){var Ae=document.createElement("tr");var BL=document.createElement("td");BL.setAttribute("align","left");BL.setAttribute("vAlign","middle");BL.setAttribute("width","27%");BL.className="fieldNames";BY++;var B=document.createTextNode("Step"+BY+" - Land Cultivation");BL.appendChild(B);Ae.appendChild(BL);var BJ=document.createElement("td");BJ.setAttribute("align","left");BJ.setAttribute("vAlign","middle");BJ.className="fieldNames";var A4=document.createTextNode(":");BJ.appendChild(A4);Ae.appendChild(BJ);var BH=document.createElement("td");BH.setAttribute("align","left");BH.setAttribute("vAlign","middle");BH.className="fieldNames";var AQ=document.createElement("input");AQ.setAttribute("type","radio");AQ.setAttribute("name","landCultivation");AQ.setAttribute("value","yes");AQ.setAttribute("id","land_cultivation_yes");AQ.className="check_box";BH.appendChild(AQ);var AH=document.createTextNode("Yes");BH.appendChild(AH);var AO=document.createElement("input");AO.setAttribute("type","radio");AO.setAttribute("name","landCultivation");AO.setAttribute("value","no");AO.setAttribute("id","land_cultivation_no");AO.className="check_box";AO.onclick=function(){this.checked=true;AQ.checked=false};AQ.onclick=function(){this.checked=true;AO.checked=false};BH.appendChild(AO);var AG=document.createTextNode("No");BH.appendChild(AG);Ae.appendChild(BH);var BF=document.createElement("td");BF.setAttribute("align","left");BF.setAttribute("vAlign","middle");BF.className="myAdsEditDesp";var I=document.createTextNode("(Is the land under cultivation)");BF.appendChild(I);Ae.appendChild(BF);AP.appendChild(Ae)}}}}var Ad=document.createElement("tr");var A3=document.createElement("td");A3.setAttribute("align","left");A3.setAttribute("vAlign","middle");A3.className="fieldNames";BY++;var T=document.createTextNode("Step"+BY+" - Price");A3.appendChild(T);Ad.appendChild(A3);var A1=document.createElement("td");A1.setAttribute("align","left");A1.setAttribute("vAlign","middle");A1.className="fieldNames";var A2=document.createTextNode(":");A1.appendChild(A2);Ad.appendChild(A1);var Az=document.createElement("td");Az.colSpan=2;var Ao=document.createElement("table");Ao.width="100%";Ao.border=0;Ao.cellSpacing=0;Ao.cellPadding=0;Ao.setAttribute("align","center");var AM=document.createElement("tbody");var BZ=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.setAttribute("width","16%");Q.className="fieldNames";var BV=document.createElement("select");BV.setAttribute("id","property_price_cr");var q=document.createElement("option");q.value="Crores";q.text="Crores";BV.options.add(q,0);for(i=0;i<100;i++){var o=document.createElement("option");if(i<10){o.value=i;o.text="0"+i}else{o.value=i;o.text=i}BV.options.add(o,i+1)}Q.appendChild(BV);BZ.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","middle");P.setAttribute("width","13%");P.className="fieldNames";var BU=document.createElement("select");BU.setAttribute("id","property_price_lacs");var q=document.createElement("option");q.value="Lacs";q.text="Lacs";BU.options.add(q,0);for(i=0;i<100;i++){var o=document.createElement("option");if(i<10){o.value=i;o.text="0"+i}else{o.value=i;o.text=i}BU.options.add(o,i+1)}P.appendChild(BU);BZ.appendChild(P);var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.setAttribute("width","21%");O.className="fieldNames";var BS=document.createElement("select");BS.setAttribute("id","property_price_thousands");var q=document.createElement("option");q.value="Thousands";q.text="Thousands";BS.options.add(q,0);for(i=0;i<100;i++){var o=document.createElement("option");if(i<10){o.value=i;o.text="0"+i}else{o.value=i;o.text=i}BS.options.add(o,i+1)}O.appendChild(BS);BZ.appendChild(O);var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","top");M.className="myAdsEditDesp";var AL=document.createTextNode("(Price you would like to sell/rent)");M.appendChild(AL);BZ.appendChild(M);AM.appendChild(BZ);Ao.appendChild(AM);Az.appendChild(Ao);Ad.appendChild(Az);AP.appendChild(Ad);var Ac=document.createElement("tr");var Aa=document.createElement("td");Aa.setAttribute("align","left");Aa.setAttribute("vAlign","top");Aa.className="fieldNames";BY++;var l=document.createTextNode("Step"+BY+" - Description");Aa.appendChild(l);Ac.appendChild(Aa);var AZ=document.createElement("td");AZ.setAttribute("align","left");AZ.setAttribute("vAlign","top");AZ.className="fieldNames";var A0=document.createTextNode(":");AZ.appendChild(A0);Ac.appendChild(AZ);var AY=document.createElement("td");AY.colSpan=2;var p=document.createElement("table");p.width="100%";p.border=0;p.cellSpacing=0;p.cellPadding=0;p.setAttribute("align","center");var AN=document.createElement("tbody");var Aj=document.createElement("tr");var Au=document.createElement("td");Au.setAttribute("align","left");Au.setAttribute("vAlign","middle");Au.setAttribute("width","370");Au.className="fieldNames";var At=document.createElement("textArea");At.setAttribute("rows","6");At.setAttribute("cols","55");At.setAttribute("id","property_description");Au.appendChild(At);Aj.appendChild(Au);var As=document.createElement("td");As.setAttribute("align","left");As.setAttribute("vAlign","top");As.className="myAdsEditDesp";var h=document.createTextNode("(Enter a brief description of the Property/Amenities & terms of sale)");As.appendChild(h);Aj.appendChild(As);AN.appendChild(Aj);p.appendChild(AN);AY.appendChild(p);Ac.appendChild(AY);AP.appendChild(Ac);var Ab=document.createElement("tr");var AC=document.createElement("td");AC.setAttribute("align","left");AC.setAttribute("vAlign","middle");AC.className="fieldNames";BY++;var AI=document.createTextNode("Step"+BY+" - Images");AC.appendChild(AI);Ab.appendChild(AC);var AB=document.createElement("td");AB.setAttribute("align","left");AB.setAttribute("vAlign","middle");AB.className="fieldNames";var Ay=document.createTextNode(":");AB.appendChild(Ay);Ab.appendChild(AB);var z=document.createElement("td");z.setAttribute("align","left");z.setAttribute("vAlign","middle");z.setAttribute("id","Td_UploadFile");z.className="fieldNames";var An=document.createElement("input");An.setAttribute("type","file");An.setAttribute("id","file");An.setAttribute("name","userfile");z.appendChild(An);var BI=document.createElement("iframe");BI.setAttribute("src","#");BI.setAttribute("height","0");BI.setAttribute("width","0");BI.setAttribute("scrolling","no");BI.setAttribute("id","");BI.setAttribute("frameBorder","NO");BI.frameBorder="0";z.appendChild(BI);Ab.appendChild(z);var y=document.createElement("td");y.setAttribute("align","left");y.setAttribute("vAlign","middle");y.setAttribute("id","Td_UploadButton");y.className="myAdsEditDesp";var BM=document.createElement("input");BM.setAttribute("type","submit");BM.setAttribute("value","Upload");BM.setAttribute("id","upload_button");BM.onclick=Function();y.appendChild(BM);var Ak=document.createTextNode(" ");y.appendChild(Ak);var J=document.createTextNode("(Upload Photos - Optional)");y.appendChild(J);Ab.appendChild(y);AP.appendChild(Ab);var f=document.createElement("tr");var U=document.createElement("td");U.setAttribute("align","left");U.setAttribute("vAlign","middle");U.className="fieldNames";f.appendChild(U);var S=document.createElement("td");S.setAttribute("align","left");S.setAttribute("vAlign","middle");S.className="fieldNames";f.appendChild(S);var R=document.createElement("td");var p=document.createElement("table");p.width="100%";p.border=0;p.cellSpacing=0;p.cellPadding=0;p.setAttribute("align","center");var AN=document.createElement("tbody");var Aj=document.createElement("tr");var Au=document.createElement("td");Au.setAttribute("align","left");Au.setAttribute("vAlign","middle");Au.className="fieldNames";var E=document.createElement("select");E.setAttribute("size","3");E.setAttribute("id","new_img_select");Au.appendChild(E);Aj.appendChild(Au);var As=document.createElement("td");As.setAttribute("align","left");As.setAttribute("vAlign","middle");As.className="myAdsEditDesp";var BP=document.createElement("input");BP.setAttribute("type","button");BP.setAttribute("value","Remove Image");BP.onclick=Function('removeImage("new_img_select","'+BC+'")');As.appendChild(BP);Aj.appendChild(As);AN.appendChild(Aj);p.appendChild(AN);R.appendChild(p);f.appendChild(R);AP.appendChild(f);var d=document.createElement("tr");var A=document.createElement("td");A.setAttribute("align","right");A.setAttribute("vAlign","middle");A.colSpan=4;var AV=document.createElement("input");AV.setAttribute("type","button");AV.setAttribute("value","Back");AV.onclick=Function("postMarketAds()");A.appendChild(AV);var Ak=document.createTextNode(" ");A.appendChild(Ak);var x=document.createElement("input");x.setAttribute("type","button");x.setAttribute("value","Next");x.onclick=Function('validateNewProperty("'+e+'","'+BC+'")');if(BC=="Edit"){x.setAttribute("value","Save");AV.setAttribute("value","Cancel");AV.onclick=Function("closeMarketWindow()")}A.appendChild(x);d.appendChild(A);AP.appendChild(d);s.appendChild(AP);BT.appendChild(s);Aw.appendChild(BT);AD.appendChild(Aw);g.appendChild(AD);H.appendChild(g);testT()}function validateNewProperty(G,O){var N=document.getElementById("property_title").value;var C=document.getElementById("property_price_cr").value;var K=document.getElementById("property_price_lacs").value;var F=document.getElementById("property_price_thousands").value;var A=document.getElementById("property_description").value.replace(/\n/g," ");var B=document.getElementById("transaction_type").value;var M=document.getElementById("validation_info");var D="Properties";while(M.hasChildNodes()){var L=M.firstChild;M.removeChild(L)}if(N==""){var J=document.createTextNode("Please Enter Title for your Ad");M.appendChild(J)}else{if(A==""){var J=document.createTextNode("Please Enter brief Description about your Property");M.appendChild(J)}else{if(B=="Select"){var I=document.createTextNode("Please Select the type of transaction");M.appendChild(I)}else{if(C=="Crores"){var J=document.createTextNode("Please Select the Price in Crores");M.appendChild(J)}else{if(K=="Lacs"){var I=document.createTextNode("Please Select the Price in Lacs");M.appendChild(I)}else{if(F=="Thousands"){var I=document.createTextNode("Please Select the Price in Thousands");M.appendChild(I)}else{if(G=="Apartments"){if(document.getElementById("property_built_area").value==""){var J=document.createTextNode("Please Enter Property Builtup Area");M.appendChild(J)}else{if(document.getElementById("property_on_floor").value==""){var J=document.createTextNode("Please Enter on which Floor your Property is Located");M.appendChild(J)}else{if(IsNumeric(document.getElementById("property_on_floor").value)){var E=document.createTextNode("Please Enter Valid No of Floors");M.appendChild(E)}else{if(document.getElementById("property_car_park").value==""){var J=document.createTextNode("Please Enter Number of Car Parking Available");M.appendChild(J)}else{if(IsNumeric(document.getElementById("property_car_park").value)){var E=document.createTextNode("Please Enter Valid No of Car Parkings");M.appendChild(E)}else{if(document.getElementById("property_bedrooms").value=="Bedrooms"){var I=document.createTextNode("Please Select the Number of Bedrooms ");M.appendChild(I)}else{if(document.getElementById("property_bathrooms").value=="Bathrooms"){var I=document.createTextNode("Please Select the Number of Bathrooms");M.appendChild(I)}else{if(O=="PostAd"){show_loader();var H=checkLoginNew();closeMarketWindow();if(H==1){NewPostProperty(G)}else{NewPostAdsLogin(D,G)}}else{if(O=="Edit"){makeEditPropertyUrl(G)}}}}}}}}}}else{if(G=="Independent House"){if(document.getElementById("property_built_area").value==""){var J=document.createTextNode("Please Enter Property Builtup Area");M.appendChild(J)}else{if(document.getElementById("property_no_of_floors").value==""){var J=document.createTextNode("Please Enter how many Floors your Property has");M.appendChild(J)}else{if(IsNumeric(document.getElementById("property_no_of_floors").value)){var E=document.createTextNode("Please Enter Valid No of Floors");M.appendChild(E)}else{if(document.getElementById("property_car_park").value==""){var J=document.createTextNode("Please Enter Number of Car Parking available");M.appendChild(J)}else{if(IsNumeric(document.getElementById("property_car_park").value)){var E=document.createTextNode("Please Enter Valid No of Car Parkings");M.appendChild(E)}else{if(document.getElementById("property_bedrooms").value=="Bedrooms"){var I=document.createTextNode("Please Select the Number of Bedrooms ");M.appendChild(I)}else{if(document.getElementById("property_bathrooms").value=="Bathrooms"){var I=document.createTextNode("Please Select the Number of Bathrooms ");M.appendChild(I)}else{if(O=="PostAd"){show_loader();var H=checkLoginNew();closeMarketWindow();if(H==1){NewPostProperty(G)}else{NewPostAdsLogin(D,G)}}else{if(O=="Edit"){makeEditPropertyUrl(G)}}}}}}}}}}else{if(G=="Office Space"){if(document.getElementById("property_built_area").value==""){var J=document.createTextNode("Please Enter Office Builtup Area");M.appendChild(J)}else{if(document.getElementById("property_on_floor").value==""){var J=document.createTextNode("Please Enter how many Floors your Office has");M.appendChild(J)}else{if(IsNumeric(document.getElementById("property_on_floor").value)){var E=document.createTextNode("Please Enter Valid No of Floors");M.appendChild(E)}else{if(document.getElementById("office_seating_capacity").value==""){var J=document.createTextNode("Please Enter how many Seating Capacity your Office has");M.appendChild(J)}else{if(IsNumeric(document.getElementById("office_seating_capacity").value)){var E=document.createTextNode("Please Enter Valid Seating Capacity");M.appendChild(E)}else{if(document.getElementById("office_restroom").value==""){var J=document.createTextNode("Please Enter how many Restrooms your Office has");M.appendChild(J)}else{if(IsNumeric(document.getElementById("office_restroom").value)){var E=document.createTextNode("Please Enter Valid Restrooms");M.appendChild(E)}else{if(O=="PostAd"){show_loader();var H=checkLoginNew();closeMarketWindow();if(H==1){NewPostProperty(G)}else{NewPostAdsLogin(D,G)}}else{if(O=="Edit"){makeEditPropertyUrl(G)}}}}}}}}}}else{if(G=="Retail Space"){if(document.getElementById("property_no_of_floors").value==""){var J=document.createTextNode("Please Enter how many Floors your Property has");M.appendChild(J)}if(IsNumeric(document.getElementById("property_no_of_floors").value)){var J=document.createTextNode("Please Enter Valid Floors your Property has");M.appendChild(J)}else{if(document.getElementById("frontage_width").value==""){var J=document.createTextNode("Please Enter Frontage Width");M.appendChild(J)}else{if(IsNumeric(document.getElementById("frontage_width").value)){var J=document.createTextNode("Please Enter Valid Frontage Width");M.appendChild(J)}else{if(document.getElementById("frontage_yes").checked==false&&document.getElementById("frontage_no").checked==false){var J=document.createTextNode("Please Select the Frontage Visibility");M.appendChild(J)}else{if(O=="PostAd"){show_loader();var H=checkLoginNew();closeMarketWindow();if(H==1){NewPostProperty(G)}else{NewPostAdsLogin(D,G)}}else{if(O=="Edit"){makeEditPropertyUrl(G)}}}}}}}else{if(G=="Land"){if(document.getElementById("property_land_area").value==""){var I=document.createTextNode("Please Enter your Land Area");M.appendChild(I)}else{if(document.getElementById("property_electricity").value=="Select"){var I=document.createTextNode("Please Select the Type of Electricity Supply ");M.appendChild(I)}else{if(document.getElementById("water_supply").value=="Select"){var I=document.createTextNode("Please Select the Type of Water Supply ");M.appendChild(I)}else{if(document.getElementById("land_cultivation_no").checked==false&&document.getElementById("land_cultivation_yes").checked==false){var I=document.createTextNode("Please Select Weather the Land is Under Cultivaion or No ");M.appendChild(I)}else{if(O=="PostAd"){show_loader();var H=checkLoginNew();closeMarketWindow();if(H==1){NewPostProperty(G)}else{NewPostAdsLogin(D,G)}}else{if(O=="Edit"){makeEditPropertyUrl(G)}}}}}}}else{if(G=="Others"){if(O=="PostAd"){show_loader();var H=checkLoginNew();closeMarketWindow();if(H==1){NewPostProperty("Others")}else{NewPostAdsLogin(D,G)}}else{if(O=="Edit"){makeEditPropertyUrl("Others")}}}}}}}}}}}}}}}function makeEditPropertyUrl(F){var g=document.getElementById("property_title").value;var c=document.getElementById("property_price_cr").value;var Q=document.getElementById("property_price_lacs").value;var W=document.getElementById("property_price_thousands").value;var H=document.getElementById("property_description").value.replace(/\n/g," ");var B=document.getElementById("transaction_type").value;var V=c+":"+Q+":"+W;var J="0";var M="0";var X="0";var C="0";var G="0";var I="0";var O="0";var L;var R;var S="0";var P;var U;var d;var b="0";var N="No";var T="No";var E="No";var K=document.getElementById("new_img_select");var Y=K.options.length;var Z="";var f="";for(i=0;i<Y;i++){var e=K.options[i].text;var A=K.options[i].value;if(i==0){Z=e;f=A}else{Z=Z+":"+e;f=f+":"+A}}if(F=="Apartments"){J=document.getElementById("property_built_area").value;M=document.getElementById("property_on_floor").value;X=document.getElementById("property_car_park").value;C=document.getElementById("property_bedrooms").value;G=document.getElementById("property_bathrooms").value}else{if(F=="Independent House"){J=document.getElementById("property_built_area").value;O=document.getElementById("property_no_of_floors").value;X=document.getElementById("property_car_park").value;C=document.getElementById("property_bedrooms").value;G=document.getElementById("property_bathrooms").value}else{if(F=="Office Space"){J=document.getElementById("property_built_area").value;M=document.getElementById("property_on_floor").value;I=document.getElementById("office_seating_capacity").value;S=document.getElementById("office_restroom").value}else{if(F=="Retail Space"){O=document.getElementById("property_no_of_floors").value;b=document.getElementById("frontage_width").value;P=document.getElementById("frontage_yes");U=document.getElementById("frontage_no");if(P.checked==true){d="Yes"}else{d="No"}}else{if(F=="Land"){J=document.getElementById("property_land_area").value;L=document.getElementById("property_electricity").value;R=document.getElementById("water_supply").value;N=document.getElementById("land_cultivation_yes");T=document.getElementById("land_cultivation_no");if(N.checked==true){E="Yes"}else{E="No"}}else{if(F=="Others"){}}}}}}var D="list_subcategory="+escape(F)+"&title="+escape(g)+"&tran_type="+escape(B)+"&description="+escape(H)+"&area="+escape(J)+"&bedroom="+escape(C)+"&bathroom="+escape(G)+"&property_on_floor="+escape(M)+"&no_of_floors="+escape(O)+"&no_of_parking="+escape(X)+"&price="+escape(V)+"&seating_capacity="+escape(I)+"&no_of_restrooms="+escape(S)+"&front_area_visible="+escape(d)+"&front_area_width="+escape(b)+"&electricity_supply="+escape(L)+"&water_supply="+escape(R)+"&land_cultivation="+escape(E)+"&imageName="+escape(Z)+"&imageRandomName="+escape(f)+"&clid="+escape(clid);postEditProperty(D)}function NewPostProperty(H){var m=document.getElementById("property_title").value;var f=document.getElementById("property_price_cr").value;var S=document.getElementById("property_price_lacs").value;var Y=document.getElementById("property_price_thousands").value;var J=document.getElementById("property_description").value.replace(/\n/g," ");var B=document.getElementById("transaction_type").value;var X=f+":"+S+":"+Y;var L="0";var O="0";var Z="0";var D="0";var I="0";var K="0";var Q="0";var N;var T;var U="0";var R;var W;var g;var d="0";var P="No";var V="No";var G="No";var M=document.getElementById("new_img_select");var b=M.options.length;var c="";var l="";for(i=0;i<b;i++){var h=M.options[i].text;var A=M.options[i].value;if(i==0){c=h;l=A}else{c=c+":"+h;l=l+":"+A}}if(H=="Apartments"){L=document.getElementById("property_built_area").value;O=document.getElementById("property_on_floor").value;Z=document.getElementById("property_car_park").value;D=document.getElementById("property_bedrooms").value;I=document.getElementById("property_bathrooms").value}else{if(H=="Independent House"){L=document.getElementById("property_built_area").value;Q=document.getElementById("property_no_of_floors").value;Z=document.getElementById("property_car_park").value;D=document.getElementById("property_bedrooms").value;I=document.getElementById("property_bathrooms").value}else{if(H=="Office Space"){L=document.getElementById("property_built_area").value;O=document.getElementById("property_on_floor").value;K=document.getElementById("office_seating_capacity").value;U=document.getElementById("office_restroom").value}else{if(H=="Retail Space"){Q=document.getElementById("property_no_of_floors").value;d=document.getElementById("frontage_width").value;R=document.getElementById("frontage_yes");W=document.getElementById("frontage_no");if(R.checked==true){g="Yes"}else{g="No"}}else{if(H=="Land"){L=document.getElementById("property_land_area").value;N=document.getElementById("property_electricity").value;T=document.getElementById("water_supply").value;P=document.getElementById("land_cultivation_yes");V=document.getElementById("land_cultivation_no");if(P.checked==true){G="Yes"}else{G="No"}}else{if(H=="Others"){}}}}}}var e="";var E=0;if(document.getElementById("market_post_email")){var e=document.getElementById("market_post_email").value}else{e="0"}if(document.getElementById("market_post_mobile")){E=document.getElementById("market_post_mobile").value}else{E=0}if(e!=""){show_loader();var F="Marketplace/post_property_listing.php";request.open("POST",F,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewPostProperty;var C="list_subcategory="+escape(H)+"&title="+escape(m)+"&tran_type="+escape(B)+"&description="+escape(J)+"&area="+escape(L)+"&bedroom="+escape(D)+"&bathroom="+escape(I)+"&property_on_floor="+escape(O)+"&no_of_floors="+escape(Q)+"&no_of_parking="+escape(Z)+"&price="+escape(X)+"&seating_capacity="+escape(K)+"&no_of_restrooms="+escape(U)+"&front_area_visible="+escape(g)+"&front_area_width="+escape(d)+"&electricity_supply="+escape(N)+"&water_supply="+escape(T)+"&land_cultivation="+escape(G)+"&lat="+escape(lat)+"&lon="+escape(lon)+"&reply_email="+escape(e)+"&reply_mobile="+escape(E)+"&imageName="+escape(c)+"&imageRandomName="+escape(l);request.send(C)}else{alert("Enter the complete details")}}function updateNewPostProperty(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function NewPostAddress(H,T){windowIsActive="Address";Rcategory="loc";Rcategory1="loc";Rsubcategory="loc_4";Rsubcategory1="loc_5";market_remove("address_inner_div");var W=document.getElementById("address_inner_div");var D=document.getElementById("address_outer_div");document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";W.style.display="block";D.style.display="block";D.style.width="500px";D.style.height="350px";D.style.width="520px";D.style.paddingTop="0px";var Z=W;W.style.background="#ffffff";Z.setAttribute("align","center");var P=document.createElement("table");P.width="100%";P.border=0;P.cellSpacing=0;P.cellPadding=0;P.setAttribute("align","center");var u=document.createElement("tbody");var O=document.createElement("tr");var S=document.createElement("td");var S=document.createElement("td");S.setAttribute("align","left");S.setAttribute("vAlign","middle");S.className="myAdsValidation";var AG=document.createElement("div");AG.setAttribute("id","Address_validation_info");S.appendChild(AG);O.appendChild(S);var Q=document.createElement("td");Q.setAttribute("align","right");Q.setAttribute("vAlign","middle");var m=document.createElement("img");m.setAttribute("src","images/close.jpg");m.onclick=Function("closeMarketWindow()");m.setAttribute("height","16");m.setAttribute("width","16");O.appendChild(Q);u.appendChild(O);var O=document.createElement("tr");var S=document.createElement("td");var S=document.createElement("td");S.setAttribute("align","left");S.setAttribute("vAlign","middle");S.className="fieldNames";var AC=document.createTextNode("Please enter the address of the property below, this will help us pinpoint its proximities to points of intrests such as Railway Stations, Schools etc.");S.appendChild(AC);O.appendChild(S);var Q=document.createElement("td");Q.setAttribute("align","right");Q.setAttribute("vAlign","middle");var m=document.createElement("img");m.setAttribute("src","images/close.jpg");m.onclick=Function("closeMarketWindow()");m.setAttribute("height","16");m.setAttribute("width","16");O.appendChild(Q);u.appendChild(O);var N=document.createElement("tr");var C=document.createElement("td");C.colSpan=2;var f=document.createElement("table");f.width="100%";f.border=0;f.cellSpacing=0;f.cellPadding=0;f.setAttribute("align","center");var B=document.createElement("tbody");var x=document.createElement("tr");var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","top");Y.setAttribute("height","30px");Y.setAttribute("width","30%");Y.className="fieldNames";var F=document.createTextNode("Flat No./Unit No.");Y.appendChild(F);x.appendChild(Y);var X=document.createElement("td");X.setAttribute("align","left");X.setAttribute("vAlign","top");X.setAttribute("width","70%");var l=document.createElement("input");l.setAttribute("size","30");l.setAttribute("id","market_post_flat");X.appendChild(l);x.appendChild(X);B.appendChild(x);var w=document.createElement("tr");var K=document.createElement("td");K.setAttribute("align","left");K.setAttribute("vAlign","top");K.setAttribute("height","30px");K.className="fieldNames";var F=document.createTextNode("Building Name : ");K.appendChild(F);w.appendChild(K);var J=document.createElement("td");J.setAttribute("align","left");J.setAttribute("vAlign","top");var h=document.createElement("input");h.setAttribute("size","30");h.setAttribute("id","market_post_building");J.appendChild(h);w.appendChild(J);B.appendChild(w);var v=document.createElement("tr");var AB=document.createElement("td");AB.setAttribute("align","left");AB.setAttribute("vAlign","top");AB.setAttribute("height","30px");AB.className="fieldNames";var F=document.createTextNode("Street Name : ");AB.appendChild(F);v.appendChild(AB);var AA=document.createElement("td");AA.setAttribute("align","left");AA.setAttribute("vAlign","top");var U=document.createElement("input");U.setAttribute("size","30");U.setAttribute("id","market_post_street");AA.appendChild(U);v.appendChild(AA);B.appendChild(v);var s=document.createElement("tr");var d=document.createElement("td");d.setAttribute("align","left");d.setAttribute("vAlign","top");d.setAttribute("height","30px");d.className="fieldNames";var F=document.createTextNode("Area : ");d.appendChild(F);s.appendChild(d);var b=document.createElement("td");b.setAttribute("align","left");b.setAttribute("vAlign","top");var R=document.createElement("input");R.setAttribute("size","30");R.setAttribute("id","first_auto");R.setAttribute("name","autocomplete");R.setAttribute("autocomplete","off");R.className="search";var G=document.createElement("div");G.className="shadow";G.setAttribute("id","shadow");b.appendChild(G);var L=document.createElement("div");L.className="output";L.setAttribute("id","output");b.appendChild(L);b.appendChild(R);s.appendChild(b);B.appendChild(s);var q=document.createElement("tr");var AF=document.createElement("td");AF.setAttribute("align","left");AF.setAttribute("vAlign","top");AF.setAttribute("height","30px");AF.className="fieldNames";var F=document.createTextNode("Landmark : ");AF.appendChild(F);q.appendChild(AF);var AD=document.createElement("td");AD.setAttribute("align","left");AD.setAttribute("vAlign","top");var E=document.createElement("input");E.setAttribute("size","30");E.setAttribute("id","market_post_landmark");AD.appendChild(E);q.appendChild(AD);B.appendChild(q);var o=document.createElement("tr");var g=document.createElement("td");g.setAttribute("align","left");g.setAttribute("height","30px");g.className="fieldNames";var F=document.createTextNode("city :");g.appendChild(F);var A=document.createElement("input");A.setAttribute("size","10");A.setAttribute("id","first_auto1");A.setAttribute("autocomplete","off");A.setAttribute("name","autocomplete_city");A.className="search";g.appendChild(A);var G=document.createElement("div");G.className="shadow";G.setAttribute("id","shadow1");g.appendChild(G);var L=document.createElement("div");L.className="output";L.setAttribute("id","output1");g.appendChild(L);o.appendChild(g);var e=document.createElement("td");e.setAttribute("align","left");e.setAttribute("vAlign","top");e.className="fieldNames";var z=document.createTextNode("State: Maharashtra");e.appendChild(z);var y=document.createTextNode(" Pincode:");e.appendChild(y);var c=document.createElement("input");c.setAttribute("size","10");c.setAttribute("id","market_post_pincode");e.appendChild(c);o.appendChild(e);B.appendChild(o);var r=document.createElement("tr");var M=document.createElement("td");M.setAttribute("align","center");M.setAttribute("vAlign","middle");M.colSpan=4;var V=document.createElement("input");V.setAttribute("type","button");V.setAttribute("value","< Back");V.onclick=Function('ShowPropertyWindow("'+T+'")');M.appendChild(V);var AE=document.createTextNode(" ");M.appendChild(AE);var AE=document.createTextNode(" ");M.appendChild(AE);var I=document.createElement("input");I.setAttribute("type","button");I.setAttribute("value","Next");I.onclick=Function('validateNewAddressPost("'+H+'","'+T+'")');M.appendChild(I);var AE=document.createTextNode(" ");M.appendChild(AE);var p=document.createElement("input");p.setAttribute("type","button");p.setAttribute("value","Skip");p.onclick=function(){show_loader();lat=0;lon=0;var AH=checkLoginNew();closeMarketWindow();if(AH==1){if(H=="Properties"){NewPostProperty(T)}else{if(H=="Housing"){NewPostHousing(T)}else{alert("Eror in Category ")}}}else{NewPostAdsLogin(H,T)}};M.appendChild(p);r.appendChild(M);B.appendChild(r);f.appendChild(B);C.appendChild(f);N.appendChild(C);u.appendChild(N);P.appendChild(u);Z.appendChild(P);testT();x_auto_init()}var lat=0;var lon=0;function validateNewAddressPost(category,subcategory){var property_flat=document.getElementById("market_post_flat").value;var property_street=document.getElementById("market_post_street").value;var property_building=document.getElementById("market_post_building").value;var property_area=document.getElementById("first_auto").value;var property_landmark=document.getElementById("market_post_landmark").value;var property_city=document.getElementById("first_auto1").value;var property_pincode=document.getElementById("market_post_pincode").value;var property_state="Maharashtra";Rcategory="loc";Rsubcategory="loc_4";Rcategory1="loc";Rsubcategory1="loc_5";var property_info=document.getElementById("Address_validation_info");while(property_info.hasChildNodes()){var firstChild=property_info.firstChild;property_info.removeChild(firstChild)}if(property_building==""){var info_building=document.createTextNode("Please Enter building name");property_info.appendChild(info_building)}else{if(property_area==""){var info_area=document.createTextNode("Please Enter the Area");property_info.appendChild(info_area)}else{if(property_flat==""){var info_flat=document.createTextNode("Please Enter Flat No");property_info.appendChild(info_flat)}else{if(property_city==""){var info_city=document.createTextNode("Please Enter the City");property_info.appendChild(info_city)}else{if(property_pincode==""){var info_pincode=document.createTextNode("Please Enter Pincode");property_info.appendChild(info_pincode)}else{if(IsNumeric(property_pincode)){var info_price_no=document.createTextNode("Please Enter Valid Pincode");property_info.appendChild(info_price_no)}else{var property_flat=document.getElementById("market_post_flat").value;var property_street=document.getElementById("market_post_street").value;var property_building=document.getElementById("market_post_building").value;var property_area=document.getElementById("first_auto1").value;var property_landmark=document.getElementById("market_post_landmark").value;var property_city=document.getElementById("first_auto").value;var property_pincode=document.getElementById("market_post_pincode").value;var property_state="Maharashtra";var url="uploading/geocoder.php";request1.open("POST",url,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=function(){if(request1.readyState==4){if(request1.status==200){var response=request1.responseText;alert("Geocoder response="+request1.responseText);if(response!=500&&response!=601&&response!=602&&response!=603&&response!=610&&eval("("+response+")")){var jsonData=eval("("+response+")");if(jsonData.addresses.address.length>0){lon=jsonData.addresses.address[0].lon;lat=jsonData.addresses.address[0].lat}hide_loader()}else{alert("address not located");hide_loader()}show_loader();var testLogin=checkLoginNew();closeMarketWindow();if(testLogin==1){if(category=="Properties"){NewPostProperty(subcategory)}else{if(category=="Housing"){NewPostHousing(subcategory)}else{alert("Eror in Category ")}}}else{NewPostAdsLogin(category,subcategory)}}}};show_loader();url1="unit_no="+escape(property_flat)+"&building_name="+escape(property_building)+"&street_name="+escape(property_street)+"&city="+escape(property_city)+"&area_name="+escape(property_area)+"&pincode="+escape(property_pincode)+"&landmark="+escape(property_landmark)+"&state="+escape(property_state);request1.send(url1)}}}}}}}function WaitForGeocoding(){closeMarketWindow();market_remove("email_inner_div");var C=getPageSize();var F=document.getElementById("overlay");F.style.height=(C[1]+"px");F.style.display="block";F.className="overlay_alphacube";var E=document.getElementById("overlayiframe");E.style.height=(C[1]+"px");E.style.display="block";var B=document.getElementById("email_inner_div");var D=document.getElementById("email_outer_div");document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";B.style.display="block";D.style.display="block";B.style.background="#ffffff";B.style.align="center";D.style.height="150px";D.style.width="230px";B.style.width="210px";D.style.paddingTop="0px";var G=document.createElement("img");G.setAttribute("src","images/ajax-loader.gif");var A=document.createElement("font");A.className="fieldNames";A.appendChild(document.createTextNode("Locating Your Address.."));B.appendChild(A);B.appendChild(document.createElement("br"));B.appendChild(document.createElement("br"));B.appendChild(G)}function PostAdApplianceElectronics(BA,U,Aw){Rcategory=BA;Rsubcategory=U;windowIsActive=true;OnlyDisable();market_remove("AddsDisplayDiv");document.getElementById("AddsDisplayDiv").style.display="block";document.getElementById("write_reviewDiv1").style.display="block";document.getElementById("AddsDisplayDiv").style.width="810px";document.getElementById("write_reviewDiv1").style.height="405px";document.getElementById("write_reviewDiv1").style.width="830px";var G=document.getElementById("AddsDisplayDiv");document.getElementById("AddsDisplayDiv").style.background="#ffffff";G.setAttribute("align","center");var BB=1;var W=document.createElement("table");W.width="95%";W.border=0;W.cellSpacing=0;W.cellPadding=0;W.setAttribute("align","center");var s=document.createElement("tbody");var Ah=document.createElement("tr");var J=document.createElement("td");var J=document.createElement("td");J.setAttribute("align","left");J.setAttribute("vAlign","middle");J.className="myAdsValidation";J.setAttribute("id","validation_info");var N=document.createElement("img");N.setAttribute("src","images/title_my_ads_edit.jpg");Ah.appendChild(J);var I=document.createElement("td");I.setAttribute("align","right");I.setAttribute("vAlign","middle");I.className="windowTitle";var K=document.createElement("img");K.setAttribute("src","images/close.jpg");K.onclick=Function("closeMarketWindow()");K.setAttribute("height","16");K.setAttribute("width","16");Ah.appendChild(I);s.appendChild(Ah);var Ag=document.createElement("tr");var A9=document.createElement("td");A9.colSpan=2;var f=document.createElement("table");f.width="100%";f.border=0;f.cellSpacing=0;f.cellPadding=0;f.setAttribute("align","center");var z=document.createElement("tbody");var AV=document.createElement("tr");var Ae=document.createElement("td");Ae.setAttribute("align","left");Ae.setAttribute("vAlign","middle");Ae.setAttribute("width","24%");Ae.className="fieldNames";var S=document.createTextNode("Step"+BB+" - Ad Title");Ae.appendChild(S);AV.appendChild(Ae);var Ad=document.createElement("td");Ad.setAttribute("align","left");Ad.setAttribute("vAlign","middle");Ad.setAttribute("width","1%");Ad.className="fieldNames";var Au=document.createTextNode(":");Ad.appendChild(Au);AV.appendChild(Ad);var Ab=document.createElement("td");Ab.setAttribute("align","left");Ab.setAttribute("vAlign","middle");Ab.setAttribute("width","27%");Ab.className="fieldNames";var A7=document.createElement("input");A7.setAttribute("size","30");A7.setAttribute("id","AEC_title");Ab.appendChild(A7);AV.appendChild(Ab);var AZ=document.createElement("td");AZ.setAttribute("align","left");AZ.setAttribute("vAlign","middle");AZ.className="myAdsEditDesp";var AX=document.createTextNode("(Enter a short title for your ad)");AZ.appendChild(AX);AV.appendChild(AZ);z.appendChild(AV);var AU=document.createElement("tr");var AE=document.createElement("td");AE.setAttribute("align","left");AE.setAttribute("vAlign","middle");AE.className="fieldNames";BB++;var p=document.createTextNode("Step"+BB+" - Make & Model");AE.appendChild(p);AU.appendChild(AE);var AC=document.createElement("td");AC.setAttribute("align","left");AC.setAttribute("vAlign","middle");AC.className="fieldNames";var As=document.createTextNode(":");AC.appendChild(As);AU.appendChild(AC);var AB=document.createElement("td");AB.setAttribute("align","left");AB.setAttribute("vAlign","middle");AB.className="fieldNames";var A4=document.createElement("input");A4.setAttribute("size","30");A4.setAttribute("id","first_auto");A4.setAttribute("autocomplete","off");A4.setAttribute("name","first_auto");A4.className="search";AB.appendChild(A4);var AO=document.createElement("div");AO.className="shadow";AO.setAttribute("id","shadow");AB.appendChild(AO);var AT=document.createElement("div");AT.className="output";AT.setAttribute("id","output");AB.appendChild(AT);AU.appendChild(AB);var AA=document.createElement("td");AA.setAttribute("align","left");AA.setAttribute("vAlign","middle");AA.className="myAdsEditDesp";var v=document.createTextNode("(Enter the make & select the best option)");AA.appendChild(v);AU.appendChild(AA);z.appendChild(AU);var AS=document.createElement("tr");var l=document.createElement("td");l.setAttribute("align","left");l.setAttribute("vAlign","middle");l.className="fieldNames";BB++;var AG=document.createTextNode("Step"+BB+" - Condition");l.appendChild(AG);AS.appendChild(l);var h=document.createElement("td");h.setAttribute("align","left");h.setAttribute("vAlign","middle");h.className="fieldNames";var Ar=document.createTextNode(":");h.appendChild(Ar);AS.appendChild(h);var g=document.createElement("td");g.setAttribute("align","left");g.setAttribute("vAlign","middle");g.className="fieldNames";var w=document.createElement("select");w.setAttribute("id","AEC_condition");var d=document.createElement("option");d.value="Select";d.text="Select";w.options.add(d,0);var b=document.createElement("option");b.value="New";b.text="New";w.options.add(b,1);var Z=document.createElement("option");Z.value="Used";Z.text="Used";w.options.add(Z,2);g.appendChild(w);AS.appendChild(g);var e=document.createElement("td");e.setAttribute("align","left");e.setAttribute("vAlign","middle");e.className="myAdsEditDesp";var T=document.createTextNode("(Enter the condition of your product)");e.appendChild(T);AS.appendChild(e);z.appendChild(AS);if(U=="Cameras"){var AR=document.createElement("tr");var R=document.createElement("td");R.setAttribute("align","left");R.setAttribute("vAlign","middle");R.className="fieldNames";BB++;var Af=document.createTextNode("Step"+BB+" - Megapixels");R.appendChild(Af);AR.appendChild(R);var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.className="fieldNames";var Aq=document.createTextNode(":");Q.appendChild(Aq);AR.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","middle");P.className="fieldNames";var Ax=document.createElement("input");Ax.setAttribute("size","30");Ax.setAttribute("id","camera_mp");P.appendChild(Ax);AR.appendChild(P);var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.className="myAdsEditDesp";var H=document.createTextNode("(Enter the number of megapixels)");O.appendChild(H);AR.appendChild(O);z.appendChild(AR)}else{if(U=="Televisions"){var AR=document.createElement("tr");var R=document.createElement("td");R.setAttribute("align","left");R.setAttribute("vAlign","middle");R.className="fieldNames";BB++;var Af=document.createTextNode("Step"+BB+" - Type");R.appendChild(Af);AR.appendChild(R);var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.className="fieldNames";var Aq=document.createTextNode(":");Q.appendChild(Aq);AR.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","middle");P.className="fieldNames";var u=document.createElement("select");u.setAttribute("id","tv_type");var AL=new Array("Select","Plasma","OLED","DLP","CRT");var AY=AL.length;for(i=0;i<AY;i++){var d=document.createElement("option");d.value=AL[i];d.text=AL[i];u.options.add(d,i)}P.appendChild(u);AR.appendChild(P);var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.className="myAdsEditDesp";var H=document.createTextNode("(Enter your TV type)");O.appendChild(H);AR.appendChild(O);z.appendChild(AR);var AQ=document.createElement("tr");var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.className="fieldNames";BB++;var Ay=document.createTextNode("Step"+BB+" - Size");F.appendChild(Ay);AQ.appendChild(F);var E=document.createElement("td");E.setAttribute("align","left");E.setAttribute("vAlign","middle");E.className="fieldNames";var Ap=document.createTextNode(":");E.appendChild(Ap);AQ.appendChild(E);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="fieldNames";var Av=document.createElement("input");Av.setAttribute("size","30");Av.setAttribute("id","tv_size");C.appendChild(Av);AQ.appendChild(C);var B=document.createElement("td");B.setAttribute("align","left");B.setAttribute("vAlign","middle");B.className="myAdsEditDesp";var A1=document.createTextNode("(Enter your TV size in inches)");B.appendChild(A1);AQ.appendChild(B);z.appendChild(AQ)}}var AP=document.createElement("tr");var A5=document.createElement("td");A5.setAttribute("align","left");A5.setAttribute("vAlign","middle");A5.className="fieldNames";BB++;var A=document.createTextNode("Step"+BB+" - Price");A5.appendChild(A);AP.appendChild(A5);var A3=document.createElement("td");A3.setAttribute("align","left");A3.setAttribute("vAlign","middle");A3.className="fieldNames";var Ao=document.createTextNode(":");A3.appendChild(Ao);AP.appendChild(A3);var A0=document.createElement("td");A0.setAttribute("align","left");A0.setAttribute("vAlign","middle");A0.className="fieldNames";var At=document.createElement("input");At.setAttribute("size","30");At.setAttribute("id","AEC_price");A0.appendChild(At);AP.appendChild(A0);var Az=document.createElement("td");Az.setAttribute("align","left");Az.setAttribute("vAlign","middle");Az.className="myAdsEditDesp";var Aa=document.createTextNode("(Enter your selling price)");Az.appendChild(Aa);AP.appendChild(Az);z.appendChild(AP);var AN=document.createElement("tr");var Am=document.createElement("td");Am.setAttribute("align","left");Am.setAttribute("vAlign","top");Am.className="fieldNames";BB++;var L=document.createTextNode("Step"+BB+" - Description");Am.appendChild(L);AN.appendChild(Am);var Ak=document.createElement("td");Ak.setAttribute("align","left");Ak.setAttribute("vAlign","top");Ak.className="fieldNames";var Al=document.createTextNode(":");Ak.appendChild(Al);AN.appendChild(Ak);var Ai=document.createElement("td");Ai.colSpan=2;var c=document.createElement("table");c.width="100%";c.border=0;c.cellSpacing=0;c.cellPadding=0;c.setAttribute("align","center");var y=document.createElement("tbody");var AV=document.createElement("tr");var Ae=document.createElement("td");Ae.setAttribute("align","left");Ae.setAttribute("vAlign","middle");Ae.setAttribute("width","370");Ae.className="fieldNames";var An=document.createElement("textArea");An.setAttribute("rows","6");An.setAttribute("cols","55");An.setAttribute("id","AEC_description");Ae.appendChild(An);AV.appendChild(Ae);var Ad=document.createElement("td");Ad.setAttribute("align","left");Ad.setAttribute("vAlign","top");Ad.className="myAdsEditDesp";var x=document.createTextNode("(Enter a brief description of your product & terms of sale)");Ad.appendChild(x);AV.appendChild(Ad);y.appendChild(AV);c.appendChild(y);Ai.appendChild(c);AN.appendChild(Ai);z.appendChild(AN);var AM=document.createElement("tr");var AJ=document.createElement("td");AJ.setAttribute("align","left");AJ.setAttribute("vAlign","middle");AJ.className="fieldNames";BB++;var Y=document.createTextNode("Step"+BB+" - Images");AJ.appendChild(Y);AM.appendChild(AJ);var AI=document.createElement("td");AI.setAttribute("align","left");AI.setAttribute("vAlign","middle");AI.className="fieldNames";var Aj=document.createTextNode(":");AI.appendChild(Aj);AM.appendChild(AI);var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","middle");AH.setAttribute("id","Td_UploadFile");AH.className="fieldNames";var Ac=document.createElement("input");Ac.setAttribute("type","file");Ac.setAttribute("id","file");Ac.setAttribute("name","userfile");AH.appendChild(Ac);var A2=document.createElement("iframe");A2.setAttribute("src","#");A2.setAttribute("height","0");A2.setAttribute("width","0");A2.setAttribute("scrolling","no");A2.setAttribute("id","");A2.setAttribute("frameBorder","NO");A2.frameBorder="0";AH.appendChild(A2);AM.appendChild(AH);var AF=document.createElement("td");AF.setAttribute("align","left");AF.setAttribute("vAlign","middle");AF.setAttribute("id","Td_UploadButton");AF.className="myAdsEditDesp";var A6=document.createElement("input");A6.setAttribute("type","submit");A6.setAttribute("value","Upload");A6.setAttribute("id","upload_button");A6.onclick=Function();AF.appendChild(A6);var AW=document.createTextNode(" ");AF.appendChild(AW);var X=document.createTextNode("(Upload Photos of your product - Optional)");AF.appendChild(X);AM.appendChild(AF);z.appendChild(AM);var AK=document.createElement("tr");var r=document.createElement("td");r.setAttribute("align","left");r.setAttribute("vAlign","middle");r.className="fieldNames";AK.appendChild(r);var q=document.createElement("td");q.setAttribute("align","left");q.setAttribute("vAlign","middle");q.className="fieldNames";AK.appendChild(q);var o=document.createElement("td");var c=document.createElement("table");c.width="100%";c.border=0;c.cellSpacing=0;c.cellPadding=0;c.setAttribute("align","center");var y=document.createElement("tbody");var AV=document.createElement("tr");var Ae=document.createElement("td");Ae.setAttribute("align","left");Ae.setAttribute("vAlign","middle");Ae.className="fieldNames";var D=document.createElement("select");D.setAttribute("size","3");D.setAttribute("id","new_img_select");Ae.appendChild(D);AV.appendChild(Ae);var Ad=document.createElement("td");Ad.setAttribute("align","left");Ad.setAttribute("vAlign","middle");Ad.className="myAdsEditDesp";var A8=document.createElement("input");A8.setAttribute("type","button");A8.setAttribute("value","Remove Image");A8.onclick=Function('removeImage("new_img_select","'+Aw+'")');Ad.appendChild(A8);AV.appendChild(Ad);y.appendChild(AV);c.appendChild(y);o.appendChild(c);AK.appendChild(o);z.appendChild(AK);var V=document.createElement("tr");var M=document.createElement("td");M.setAttribute("align","right");M.setAttribute("vAlign","middle");M.colSpan=4;var AD=document.createElement("input");AD.setAttribute("type","button");AD.setAttribute("value","Back");AD.onclick=Function("postMarketAds()");M.appendChild(AD);var AW=document.createTextNode(" ");M.appendChild(AW);var m=document.createElement("input");m.setAttribute("type","button");m.setAttribute("value","Next");m.onclick=Function('validateAppElecPost("'+BA+'","'+U+'","'+Aw+'")');if(Aw=="Edit"){m.setAttribute("value","Save");AD.setAttribute("value","Cancel");AD.onclick=Function("closeMarketWindow()")}M.appendChild(m);V.appendChild(M);z.appendChild(V);f.appendChild(z);A9.appendChild(f);Ag.appendChild(A9);s.appendChild(Ag);W.appendChild(s);G.appendChild(W);testT();xauto_init()}function validateAppElecPost(B,G,O){var A=document.getElementById("AEC_title").value;var M=document.getElementById("AEC_condition").value;var N=document.getElementById("AEC_price").value;var K=document.getElementById("AEC_description").value.replace(/\n/g,"~");var C=document.getElementById("first_auto").value;var F=document.getElementById("validation_info");while(F.hasChildNodes()){var L=F.firstChild;F.removeChild(L)}if(A==""){var I=document.createTextNode("Enter title");F.appendChild(I)}else{if(C==""){var E=document.createTextNode("Enter make of the product");F.appendChild(E)}else{if(M=="Select"){var E=document.createTextNode("Select conditon of the product");F.appendChild(E)}else{if(N==""){var D=document.createTextNode("Enter the price you want to sell it for");F.appendChild(D)}else{if(IsNumeric(N)){var H=document.createTextNode("Please Enter Valid Price");F.appendChild(H)}else{if(K==""){var E=document.createTextNode("Enter description");F.appendChild(E)}else{if(G=="Cameras"){if(document.getElementById("camera_mp").value==""){var E=document.createTextNode("Enter Megapixel");F.appendChild(E)}else{if(O=="PostAd"){var J=checkLoginNew();if(J==1){NewApplianceElectronicPost(B,G)}else{NewPostAdsLogin(B,G)}}else{if(O=="Edit"){makeApplianceElectronicUrl(B,G)}}}}else{if(G=="Televisions"){if(document.getElementById("tv_type").value=="Select"){var E=document.createTextNode("Enter TV type");F.appendChild(E)}else{if(document.getElementById("tv_size").value==""){var E=document.createTextNode("Enter TV Size");F.appendChild(E)}else{if(O=="PostAd"){var J=checkLoginNew();if(J==1){NewApplianceElectronicPost(B,G)}else{NewPostAdsLogin(B,G)}}else{if(O=="Edit"){makeApplianceElectronicUrl(B,G)}}}}}else{if(O=="PostAd"){var J=checkLoginNew();if(J==1){NewApplianceElectronicPost(B,G)}else{NewPostAdsLogin(B,G)}}else{if(O=="Edit"){makeApplianceElectronicUrl(B,G)}}}}}}}}}}}function makeApplianceElectronicUrl(T,J){var Q=document.getElementById("AEC_title").value;var Y=document.getElementById("AEC_condition").value;var E=document.getElementById("AEC_price").value;var N=document.getElementById("AEC_description").value.replace(/\n/g,"~");var D=document.getElementById("first_auto").value;var B="";var R="";var W="";var A="";var M="";var U="";var C="";var K="";var P="";var B="";var R="";var F="";var V="";var I="";var O="";if(J=="Cameras"){O=document.getElementById("camera_mp").value}else{if(J=="Televisions"){I=document.getElementById("tv_size").value;V=document.getElementById("tv_type").value}}var S=getSelectedImages();var L=T;var H=J;var X="";var G="title="+escape(Q)+"&description="+escape(N)+"&make="+escape(D)+"&pstring="+escape(D)+"&model="+escape(F)+"&price="+escape(E)+"&sub_category="+escape(H)+"&category="+escape(L)+"&mob_condition="+escape(Y)+"&tv_type="+escape(V)+"&tv_size="+escape(I)+"&cam_mp="+escape(O)+"&mouse_key_type="+escape(W)+"&subcategory2="+escape(X)+"&desk_type="+escape(A)+"&ram_type="+escape(M)+"&ram_size="+escape(U)+"&processor="+escape(C)+"&cd_dvd="+escape(K)+"&hdd="+escape(P)+"&monitor_type="+escape(B)+"&monitor="+escape(R)+"&clid="+escape(clid)+S;postEditAEC(G)}function NewApplianceElectronicPost(U,K){var S=document.getElementById("AEC_title").value;var d=document.getElementById("AEC_condition").value;var F=document.getElementById("AEC_price").value;var P=document.getElementById("AEC_description").value.replace(/\n/g,"~");var E=document.getElementById("first_auto").value;var C="";var T="";var Z="";var B="";var N="";var V="";var D="";var L="";var R="";var C="";var T="";var G="";var Y="";var J="";var Q="";var O=document.getElementById("new_img_select");var W=O.options.length;var X="";var f="";for(i=0;i<W;i++){var e=O.options[i].text;var A=O.options[i].value;if(i==0){X=e;f=A}else{X=X+":"+e;f=f+":"+A}}if(K=="Cameras"){Q=document.getElementById("camera_mp").value}else{if(K=="Televisions"){J=document.getElementById("tv_size").value;Y=document.getElementById("tv_type").value}}var M=U;var I=K;var c="";if(document.getElementById("market_post_email")){var b=document.getElementById("market_post_email").value}else{b="0"}if(document.getElementById("market_post_mobile")){reply_mobile=document.getElementById("market_post_mobile").value}else{reply_mobile=0}if(b!=""){show_loader();var H="Marketplace/post_aec_listing.php";request.open("POST",H,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewPostApp_ElecListing;url1="title="+escape(S)+"&description="+escape(P)+"&make="+escape(E)+"&model="+escape(G)+"&price="+escape(F)+"&subcategory="+escape(I)+"&category="+escape(M)+"&mob_condition="+escape(d)+"&tv_type="+escape(Y)+"&tv_size="+escape(J)+"&cam_mp="+escape(Q)+"&mouse_key_type="+escape(Z)+"&subcategory2="+escape(c)+"&desk_type="+escape(B)+"&ram_type="+escape(N)+"&ram_size="+escape(V)+"&processor="+escape(D)+"&cd_dvd="+escape(L)+"&hdd="+escape(R)+"&monitor_type="+escape(C)+"&monitor="+escape(T)+"&reply_email="+escape(b)+"&reply_mobile="+escape(reply_mobile)+"&imageName="+escape(X)+"&imageRandomName="+escape(f);request.send(url1)}else{alert("Enter the complete details")}}function updateNewPostApp_ElecListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function PostAdPGRoommates(Z,A4){Rcategory="loc";Rsubcategory="loc_1";OnlyDisable();market_remove("AddsDisplayDiv");windowIsActive=true;var Aj=document.getElementById("AddsDisplayDiv");var AR=document.getElementById("write_reviewDiv1");windowIsActive=true;Aj.style.display="block";AR.style.display="block";AR.style.height="430px";Aj.style.width="720px";AR.style.width="740px";var H=Aj;Aj.style.background="#ffffff";H.setAttribute("align","center");var BM=1;var d=document.createElement("table");d.width="100%";d.border=0;d.cellSpacing=0;d.cellPadding=0;d.setAttribute("align","center");var AD=document.createElement("tbody");var As=document.createElement("tr");var L=document.createElement("td");var L=document.createElement("td");L.setAttribute("align","left");L.setAttribute("vAlign","middle");L.className="myAdsValidation";L.colSpan=2;var R=document.createElement("div");R.setAttribute("id","validation_info");L.appendChild(R);As.appendChild(L);var K=document.createElement("td");K.setAttribute("align","right");K.setAttribute("vAlign","middle");K.className="windowTitle";var M=document.createElement("img");M.setAttribute("src","images/close.jpg");M.onclick=Function("closeMarketWindow()");M.setAttribute("height","16");M.setAttribute("width","16");K.appendChild(M);AD.appendChild(As);var Aq=document.createElement("tr");var BH=document.createElement("td");BH.colSpan=2;BH.className="windowTitle";var r=document.createElement("table");r.width="100%";r.border=0;r.cellSpacing=0;r.cellPadding=0;r.setAttribute("align","center");var AP=document.createElement("tbody");var Ag=document.createElement("tr");var Ao=document.createElement("td");Ao.setAttribute("align","left");Ao.setAttribute("vAlign","middle");Ao.setAttribute("width","22%");Ao.className="fieldNames";var W=document.createTextNode("Step"+BM+" - Ad Title");Ao.appendChild(W);Ag.appendChild(Ao);var An=document.createElement("td");An.setAttribute("align","left");An.setAttribute("vAlign","middle");An.setAttribute("width","1%");An.className="fieldNames";var A2=document.createTextNode(":");An.appendChild(A2);Ag.appendChild(An);var Am=document.createElement("td");Am.setAttribute("align","left");Am.setAttribute("vAlign","middle");Am.className="fieldNames";var BF=document.createElement("input");BF.setAttribute("size","30");BF.setAttribute("id","PG_title");Am.appendChild(BF);Ag.appendChild(Am);var Al=document.createElement("td");Al.setAttribute("align","left");Al.setAttribute("vAlign","middle");Al.className="myAdsEditDesp";var Ai=document.createTextNode("(A short title for your ad)");Al.appendChild(Ai);Ag.appendChild(Al);AP.appendChild(Ag);var Af=document.createElement("tr");var AV=document.createElement("td");AV.setAttribute("align","left");AV.setAttribute("vAlign","top");AV.className="fieldNames";BM++;var z=document.createTextNode("Step"+BM+" - Description");AV.appendChild(z);Af.appendChild(AV);var AT=document.createElement("td");AT.setAttribute("align","left");AT.setAttribute("vAlign","top");AT.className="fieldNames";var A1=document.createTextNode(":");AT.appendChild(A1);Af.appendChild(AT);var AS=document.createElement("td");AS.colSpan=2;var p=document.createElement("table");p.width="100%";p.border=0;p.cellSpacing=0;p.cellPadding=0;p.setAttribute("align","center");var AN=document.createElement("tbody");var Ag=document.createElement("tr");var Ao=document.createElement("td");Ao.setAttribute("align","left");Ao.setAttribute("vAlign","middle");Ao.setAttribute("width","370");Ao.className="fieldNames";var BC=document.createElement("textArea");BC.setAttribute("rows","6");BC.setAttribute("cols","55");BC.setAttribute("id","PG_description");Ao.appendChild(BC);Ag.appendChild(Ao);var An=document.createElement("td");An.setAttribute("align","left");An.setAttribute("vAlign","top");An.className="myAdsEditDesp";var AE=document.createTextNode("(Enter a brief description of your requirement)");An.appendChild(AE);Ag.appendChild(An);AN.appendChild(Ag);p.appendChild(AN);AS.appendChild(p);Af.appendChild(AS);AP.appendChild(Af);var Ae=document.createElement("tr");var v=document.createElement("td");v.setAttribute("align","left");v.setAttribute("vAlign","middle");v.className="fieldNames";BM++;var AW=document.createTextNode("Step"+BM+" - Gender");v.appendChild(AW);Ae.appendChild(v);var u=document.createElement("td");u.setAttribute("align","left");u.setAttribute("vAlign","middle");u.className="fieldNames";var A0=document.createTextNode(":");u.appendChild(A0);Ae.appendChild(u);var s=document.createElement("td");s.setAttribute("align","left");s.setAttribute("vAlign","middle");s.className="fieldNames";var AF=document.createElement("select");AF.setAttribute("id","PG_gender");var o=document.createElement("option");o.value="Select";o.text="Select";AF.options.add(o,0);var m=document.createElement("option");m.value="Male";m.text="Male";AF.options.add(m,1);var h=document.createElement("option");h.value="Female";h.text="Female";AF.options.add(h,2);if(Z=="Tenant"){var g=document.createElement("option");g.value="Any";g.text="Any";AF.options.add(g,3)}s.appendChild(AF);Ae.appendChild(s);var q=document.createElement("td");q.setAttribute("align","left");q.setAttribute("vAlign","middle");q.className="myAdsEditDesp";var X=document.createTextNode("(Select your gender prefereces)");q.appendChild(X);Ae.appendChild(q);AP.appendChild(Ae);if(Z=="Accomodation"){var Ac=document.createElement("tr");var V=document.createElement("td");V.setAttribute("align","left");V.setAttribute("vAlign","middle");V.className="fieldNames";BM++;var W=document.createTextNode("Step"+BM+" - Rent");V.appendChild(W);Ac.appendChild(V);var U=document.createElement("td");U.setAttribute("align","left");U.setAttribute("vAlign","middle");U.setAttribute("width","1%");U.className="fieldNames";var A2=document.createTextNode(":");U.appendChild(A2);Ac.appendChild(U);var T=document.createElement("td");T.setAttribute("align","left");T.setAttribute("vAlign","middle");T.className="fieldNames";var l=document.createTextNode("From");T.appendChild(l);var Ah=document.createTextNode(" ");T.appendChild(Ah);var f=document.createElement("input");f.setAttribute("size","10");f.setAttribute("id","PG_rent_from");T.appendChild(f);var Ah=document.createTextNode(" ");T.appendChild(Ah);var A3=document.createTextNode("To");T.appendChild(A3);var Ah=document.createTextNode(" ");T.appendChild(Ah);var e=document.createElement("input");e.setAttribute("size","10");e.setAttribute("id","PG_rent_to");T.appendChild(e);Ac.appendChild(T);var S=document.createElement("td");S.setAttribute("align","left");S.setAttribute("vAlign","middle");S.className="myAdsEditDesp";var I=document.createTextNode("(Your monthly payment prefrence)");S.appendChild(I);Ac.appendChild(S);AP.appendChild(Ac)}else{if(Z=="Tenant"){var Ac=document.createElement("tr");var V=document.createElement("td");V.setAttribute("align","left");V.setAttribute("vAlign","middle");V.className="fieldNames";BM++;var W=document.createTextNode("Step"+BM+" - Rent");V.appendChild(W);Ac.appendChild(V);var U=document.createElement("td");U.setAttribute("align","left");U.setAttribute("vAlign","middle");U.setAttribute("width","1%");U.className="fieldNames";var A2=document.createTextNode(":");U.appendChild(A2);Ac.appendChild(U);var T=document.createElement("td");T.setAttribute("align","left");T.setAttribute("vAlign","middle");T.className="fieldNames";var BF=document.createElement("input");BF.setAttribute("size","10");BF.setAttribute("id","PG_rent_tenant");T.appendChild(BF);Ac.appendChild(T);var S=document.createElement("td");S.setAttribute("align","left");S.setAttribute("vAlign","middle");S.className="myAdsEditDesp";var I=document.createTextNode("(The rent per month)");S.appendChild(I);Ac.appendChild(S);AP.appendChild(Ac)}}var Ab=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";BM++;var A5=document.createTextNode("Step"+BM+" - Room Type");G.appendChild(A5);Ab.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.className="fieldNames";var Az=document.createTextNode(":");F.appendChild(Az);Ab.appendChild(F);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.setAttribute("width","40%");D.className="fieldNames";var AL=document.createElement("input");AL.type="radio";AL.name="roomType";AL.value="single";AL.id="PG_single";AL.className="check_box";D.appendChild(AL);var BN=document.createTextNode("Single Occupant");D.appendChild(BN);var AK=document.createElement("input");AK.type="radio";AK.name="roomType";AK.value="sharing";AK.id="PG_sharing";AK.className="check_box";AK.onclick=function(){this.checked=true;AL.checked=false};AL.onclick=function(){this.checked=true;AK.checked=false};D.appendChild(AK);var BL=document.createTextNode("Sharing");D.appendChild(BL);if(Z=="Accomodation"){var AI=document.createElement("input");AI.type="radio";AI.name="roomType";AI.value="Any";AI.id="PG_any";AI.className="check_box";AI.onclick=function(){this.checked=true;AK.checked=false;AL.checked=false};AK.onclick=function(){this.checked=true;AL.checked=false;AI.checked=false};AL.onclick=function(){this.checked=true;AK.checked=false;AI.checked=false};D.appendChild(AI);var BJ=document.createTextNode("Any");D.appendChild(BJ)}Ab.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="myAdsEditDesp";var A8=document.createTextNode("(The room type you are looking for)");C.appendChild(A8);Ab.appendChild(C);AP.appendChild(Ab);var Aa=document.createElement("tr");var BB=document.createElement("td");BB.setAttribute("align","left");BB.setAttribute("vAlign","middle");BB.className="fieldNames";BM++;var B=document.createTextNode("Step"+BM+" - Bathroom");BB.appendChild(B);Aa.appendChild(BB);var BA=document.createElement("td");BA.setAttribute("align","left");BA.setAttribute("vAlign","middle");BA.className="fieldNames";var Ay=document.createTextNode(":");BA.appendChild(Ay);Aa.appendChild(BA);var A7=document.createElement("td");A7.setAttribute("align","left");A7.setAttribute("vAlign","middle");A7.className="fieldNames";var AQ=document.createElement("input");AQ.type="radio";AQ.value="Yes";AQ.name="privateBathroom";AQ.id="PG_bathroom_yes";AQ.className="check_box";A7.appendChild(AQ);var AH=document.createTextNode("Yes");A7.appendChild(AH);var AO=document.createElement("input");AO.type="radio";AO.value="No";AO.name="privateBathroom";AO.id="PG_bathroom_no";AQ.className="check_box";AO.onclick=function(){this.checked=true;AQ.checked=false};AQ.onclick=function(){this.checked=true;AO.checked=false};A7.appendChild(AO);if(Z=="Accomodation"){var AG=document.createTextNode("No Preferance")}else{var AG=document.createTextNode("No")}A7.appendChild(AG);Aa.appendChild(A7);var A6=document.createElement("td");A6.setAttribute("align","left");A6.setAttribute("vAlign","middle");A6.className="myAdsEditDesp";var I=document.createTextNode("(Do you prefer private bathroom)");A6.appendChild(I);Aa.appendChild(A6);AP.appendChild(Aa);if(Z=="Accomodation"){var AZ=document.createElement("tr");var Ax=document.createElement("td");Ax.setAttribute("align","left");Ax.setAttribute("vAlign","top");Ax.className="fieldNames";BM++;var P=document.createTextNode("Step"+BM+" - Localities");Ax.appendChild(P);AZ.appendChild(Ax);var Av=document.createElement("td");Av.setAttribute("align","left");Av.setAttribute("vAlign","top");Av.className="fieldNames";var Aw=document.createTextNode(":");Av.appendChild(Aw);AZ.appendChild(Av);var Au=document.createElement("td");Au.colSpan=2;var p=document.createElement("table");p.width="100%";p.border=0;p.cellSpacing=0;p.cellPadding=0;p.setAttribute("align","center");var AN=document.createElement("tbody");var Ag=document.createElement("tr");var Ao=document.createElement("td");Ao.setAttribute("align","left");Ao.setAttribute("vAlign","middle");Ao.setAttribute("width","25%");Ao.className="fieldNames";var BK=document.createElement("select");BK.setAttribute("size","4");BK.setAttribute("id","PG_locality_one");var c="reviews/auto_select.php";request2.open("POST",c,true);request2.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var Ap="category=loc&subcategory=loc";request2.send(Ap);request2.onreadystatechange=request1.onreadystatechange=function(){if(request2.readyState==4){re=request2.responseText;arrx=re.split(",");var BO=document.createElement("option");BO.value="";BO.text="Select";BK.options.add(BO,0);for(n=0;n<arrx.length;n++){var BO=document.createElement("option");BO.value=arrx[n];BO.text=arrx[n];BK.options.add(BO,parseInt(n+1))}}};Ao.appendChild(BK);Ag.appendChild(Ao);var An=document.createElement("td");An.setAttribute("align","center");An.setAttribute("vAlign","middle");An.setAttribute("width","22%");An.className="myAdsEditDesp";var AB=document.createElement("input");AB.setAttribute("type","button");AB.setAttribute("value","    Add >>    ");AB.onclick=Function("add_Accomodation_localities()");An.appendChild(AB);var BE=document.createElement("br");An.appendChild(BE);var BE=document.createElement("br");An.appendChild(BE);var BG=document.createElement("input");BG.setAttribute("type","button");BG.setAttribute("value","<< Remove");BG.onclick=Function("remove_Accomodation_localities()");An.appendChild(BG);Ag.appendChild(An);var Am=document.createElement("td");Am.setAttribute("align","left");Am.setAttribute("vAlign","middle");var BI=document.createElement("select");BI.setAttribute("size","4");BI.setAttribute("id","PG_locality_two");Am.appendChild(BI);Am.appendChild(document.createTextNode("(Choose localities that you prefer)"));Ag.appendChild(Am);AN.appendChild(Ag);p.appendChild(AN);Au.appendChild(p);AZ.appendChild(Au);AP.appendChild(AZ)}else{if(Z=="Tenant"){var AZ=document.createElement("tr");var Ax=document.createElement("td");Ax.setAttribute("align","left");Ax.setAttribute("vAlign","middle");Ax.className="fieldNames";BM++;var W=document.createTextNode("Step"+BM+" - Locality");Ax.appendChild(W);AZ.appendChild(Ax);var Av=document.createElement("td");Av.setAttribute("align","left");Av.setAttribute("vAlign","middle");Av.setAttribute("width","1%");Av.className="fieldNames";var A2=document.createTextNode(":");Av.appendChild(A2);AZ.appendChild(Av);var Au=document.createElement("td");Au.setAttribute("align","left");Au.setAttribute("vAlign","middle");Au.className="fieldNames";var BF=document.createElement("input");BF.setAttribute("size","30");BF.setAttribute("id","first_auto");BF.setAttribute("autocomplete","off");BF.setAttribute("name","autocomplete");BF.className="search";var AY=document.createElement("div");AY.className="shadow";AY.setAttribute("id","shadow");Au.appendChild(AY);var Ad=document.createElement("div");Ad.className="output";Ad.setAttribute("id","output");Au.appendChild(Ad);Au.appendChild(BF);AZ.appendChild(Au);var Ar=document.createElement("td");Ar.setAttribute("align","left");Ar.setAttribute("vAlign","middle");Ar.className="myAdsEditDesp";var AM=document.createTextNode("(Which locality is this in)");Ar.appendChild(AM);AZ.appendChild(Ar);AP.appendChild(AZ);var AX=document.createElement("tr");var AC=document.createElement("td");AC.setAttribute("align","left");AC.setAttribute("vAlign","middle");AC.className="fieldNames";BM++;var AJ=document.createTextNode("Step"+BM+" - Images");AC.appendChild(AJ);AX.appendChild(AC);var AA=document.createElement("td");AA.setAttribute("align","left");AA.setAttribute("vAlign","middle");AA.className="fieldNames";var At=document.createTextNode(":");AA.appendChild(At);AX.appendChild(AA);var y=document.createElement("td");y.setAttribute("align","left");y.setAttribute("vAlign","middle");y.setAttribute("id","Td_UploadFile");y.className="fieldNames";var Ak=document.createElement("input");Ak.setAttribute("type","file");Ak.setAttribute("id","file");Ak.setAttribute("name","userfile");y.appendChild(Ak);var A9=document.createElement("iframe");A9.setAttribute("src","#");A9.setAttribute("height","0");A9.setAttribute("width","0");A9.setAttribute("scrolling","no");A9.setAttribute("id","");A9.setAttribute("frameBorder","NO");A9.frameBorder="0";y.appendChild(A9);AX.appendChild(y);var x=document.createElement("td");x.setAttribute("align","left");x.setAttribute("vAlign","middle");x.setAttribute("id","Td_UploadButton");x.className="myAdsEditDesp";var BD=document.createElement("input");BD.setAttribute("type","submit");BD.setAttribute("value","Upload");BD.setAttribute("id","upload_button");BD.onclick=Function();x.appendChild(BD);var Ah=document.createTextNode(" ");x.appendChild(Ah);var J=document.createTextNode("(Upload Photos - Optional)");x.appendChild(J);AX.appendChild(x);AP.appendChild(AX);var b=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.className="fieldNames";b.appendChild(Q);var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.className="fieldNames";b.appendChild(O);var N=document.createElement("td");var p=document.createElement("table");p.width="100%";p.border=0;p.cellSpacing=0;p.cellPadding=0;p.setAttribute("align","center");var AN=document.createElement("tbody");var Ag=document.createElement("tr");var Ao=document.createElement("td");Ao.setAttribute("align","left");Ao.setAttribute("vAlign","middle");Ao.className="fieldNames";var E=document.createElement("select");E.setAttribute("size","3");E.setAttribute("id","new_img_select");Ao.appendChild(E);Ag.appendChild(Ao);var An=document.createElement("td");An.setAttribute("align","left");An.setAttribute("vAlign","middle");An.className="myAdsEditDesp";var BG=document.createElement("input");BG.setAttribute("type","button");BG.setAttribute("value","Remove Image");BG.onclick=Function('removeImage("new_img_select","'+A4+'")');An.appendChild(BG);Ag.appendChild(An);AN.appendChild(Ag);p.appendChild(AN);N.appendChild(p);b.appendChild(N);AP.appendChild(b)}}var Y=document.createElement("tr");var A=document.createElement("td");A.setAttribute("align","right");A.setAttribute("vAlign","middle");A.colSpan=4;var AU=document.createElement("input");AU.setAttribute("type","button");AU.setAttribute("value","Back");AU.onclick=Function("postMarketAds()");A.appendChild(AU);var Ah=document.createTextNode(" ");A.appendChild(Ah);var w=document.createElement("input");w.setAttribute("type","button");w.setAttribute("value","Next");w.onclick=Function('validatePgRoommatesPost("'+Z+'","'+A4+'")');if(A4=="Edit"){w.setAttribute("value","Save");AU.setAttribute("value","Cancel");AU.onclick=Function("closeMarketWindow()")}A.appendChild(w);Y.appendChild(A);AP.appendChild(Y);r.appendChild(AP);BH.appendChild(r);Aq.appendChild(BH);AD.appendChild(Aq);d.appendChild(AD);H.appendChild(d);testT();xauto_init()}function validatePgRoommatesPost(E,Q){var V=document.getElementById("PG_title").value;var R=document.getElementById("PG_description").value;var H=document.getElementById("PG_gender").value;var I=document.getElementById("PG_bathroom_yes");var J=document.getElementById("PG_bathroom_no");var T;var C=document.getElementById("PG_single");var F=document.getElementById("PG_sharing");var P;var L=document.getElementById("validation_info");while(L.hasChildNodes()){var A=L.firstChild;L.removeChild(A)}if(V==""){var D=document.createTextNode("Please Enter  Title for your Ad");L.appendChild(D)}else{if(R==""){var S=document.createTextNode("Please Enter the Description");L.appendChild(S)}else{if(H=="Select"){var S=document.createTextNode("Please Select the Gender");L.appendChild(S)}else{if(I.checked==false&&J.checked==false){var S=document.createTextNode("Please Check for Bathroom Preference");L.appendChild(S)}else{if(E=="Accomodation"){var W=document.getElementById("PG_rent_from").value;var M=document.getElementById("PG_rent_to").value;var B=document.getElementById("PG_any");var U=document.getElementById("PG_localtiy_one");var O=document.getElementById("PG_locality_two");if(B.checked==false&&F.checked==false&&C.checked==false){var S=document.createTextNode("Please Check for Roomtype");L.appendChild(S)}else{if(W==""){var S=document.createTextNode("Please Enter the Rent From");L.appendChild(S)}else{if(IsNumeric(W)){var S=document.createTextNode("Please Enter Valid Value for Rent From");L.appendChild(S)}else{if(M==""){var S=document.createTextNode("Please Enter the Rent Upto");L.appendChild(S)}else{if(IsNumeric(M)){var S=document.createTextNode("Please Enter Valid Value for Rent Upto");L.appendChild(S)}else{if(O.length==0){var S=document.createTextNode("Please Select atleast One Locality");L.appendChild(S)}else{if(Q=="PostAd"){var G=checkLoginNew();if(G==1){NewPostHousing(E)}else{NewPostAdsLogin("Housing",E)}}else{if(Q=="Edit"){makeHousingUrl(E)}}}}}}}}}else{if(E=="Tenant"){var K=document.getElementById("PG_rent_tenant").value;var N=document.getElementById("first_auto").value;if(K==""){var S=document.createTextNode("Please Enter the Rent");L.appendChild(S)}else{if(IsNumeric(K)){var S=document.createTextNode("Please Enter Valid Value for Rent");L.appendChild(S)}else{if(N==""){var S=document.createTextNode("Please Enter the Locality");L.appendChild(S)}else{if(Q=="PostAd"){var G=checkLoginNew();if(G==1){NewPostHousing(E)}else{NewPostAdsLogin("Housing",E)}}else{if(Q=="Edit"){makeHousingUrl(E)}}}}}}}}}}}}function makeHousingUrl(E){var W=document.getElementById("PG_title").value;var T=document.getElementById("PG_description").value;var I=document.getElementById("PG_gender").value;var J=document.getElementById("PG_bathroom_yes");var K=document.getElementById("PG_bathroom_no");var U;var C=document.getElementById("PG_single");var G=document.getElementById("PG_sharing");var P;if(E=="Accomodation"){var B=document.getElementById("PG_any");if(B.checked==true){P="Any"}else{if(G.checked==true){P="Sharing"}else{if(C.checked==true){P="Single"}}}}else{if(G.checked==true){P="Sharing"}else{if(C.checked==true){P="Single"}}}if(J.checked==true){U="Yes"}else{if(K.checked==true){U="No"}}var S="";var Z="";var R;var F="";if(E=="Tenant"){var L=document.getElementById("PG_rent_tenant");R=L.value;var O=document.getElementById("first_auto");F=O.value;var H=document.getElementById("new_img_select");var Q=H.options.length;for(i=0;i<Q;i++){var Y=H.options[i].text;var A=H.options[i].value;if(i==0){S=Y;Z=A}else{S=S+":"+Y;Z=Z+":"+A}}}else{if(E=="Accomodation"){var X=document.getElementById("PG_rent_from");var M=document.getElementById("PG_rent_to");R=X.value+" to "+M.value;var V=document.getElementById("PG_localtiy_one");var N=document.getElementById("PG_locality_two");if(N.length>0){for(i=0;i<N.length;i++){if(i<N.lenght-1){F=F+N.options[i].value+","}else{F=F+N.options[i].value}}}}}var D="title="+escape(W)+"&description="+escape(T)+"&gender="+escape(I)+"&rent="+escape(R)+"&room_type="+escape(P)+"&private_bathroom="+escape(U)+"&locality="+escape(F)+"&subcategory="+escape(E)+"&lat="+escape(lat)+"&lon="+escape(lon)+"&imageName="+escape(S)+"&imageRandomName="+escape(Z)+"&clid="+escape(clid);postEditPGRoommates(D)}function NewPostHousing(F){var Y=document.getElementById("PG_title").value;var V=document.getElementById("PG_description").value;var J=document.getElementById("PG_gender").value;var K=document.getElementById("PG_bathroom_yes");var L=document.getElementById("PG_bathroom_no");var W;var C=document.getElementById("PG_single");var H=document.getElementById("PG_sharing");var Q;if(F=="Accomodation"){var B=document.getElementById("PG_any");if(B.checked==true){Q="Any"}else{if(H.checked==true){Q="Sharing"}else{if(C.checked==true){Q="Single"}}}}else{if(H.checked==true){Q="Sharing"}else{if(C.checked==true){Q="Single"}}}if(K.checked==true){W="Yes"}else{if(L.checked==true){W="No"}}var T="";var c="";var S;var G="";if(F=="Tenant"){var M=document.getElementById("PG_rent_tenant");S=M.value;var P=document.getElementById("first_auto");G=P.value;var I=document.getElementById("new_img_select");var R=I.options.length;for(i=0;i<R;i++){var b=I.options[i].text;var A=I.options[i].value;if(i==0){T=b;c=A}else{T=T+":"+b;c=c+":"+A}}}else{if(F=="Accomodation"){var Z=document.getElementById("PG_rent_from");var N=document.getElementById("PG_rent_to");S=Z.value+" to "+N.value;var X=document.getElementById("PG_localtiy_one");var O=document.getElementById("PG_locality_two");if(O.length>0){for(i=0;i<O.length;i++){if(i<O.lenght-1){G=G+O.options[i].value}else{G=G+O.options[i].value+","}}}}}var U="";var D=0;if(document.getElementById("market_post_email")){var U=document.getElementById("market_post_email").value}else{U="0"}if(document.getElementById("market_post_mobile")){D=document.getElementById("market_post_mobile").value}else{D=0}if(U!=""){show_loader();var E="Marketplace/post_housing_listing.php";request.open("POST",E,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewPostHousing;url1="title="+escape(Y)+"&description="+escape(V)+"&gender="+escape(J)+"&rent="+escape(S)+"&room_type="+escape(Q)+"&private_bathroom="+escape(W)+"&locality="+escape(G)+"&list_subcategory="+escape(F)+"&reply_email="+escape(U)+"&reply_mobile="+escape(D)+"&lat="+escape(lat)+"&lon="+escape(lon)+"&imageName="+escape(T)+"&imageRandomName="+escape(c);request.send(url1)}}function updateNewPostHousing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function add_Accomodation_localities(){var D=document.getElementById("PG_locality_one").selectedIndex;if(D!=-1){var C=D;var F=document.getElementById("PG_locality_one").value;var B=document.getElementById("PG_locality_two");var A=B.options.length;var E=document.createElement("OPTION");E.value=F;E.text=F;B.options.add(E,A);document.getElementById("PG_locality_one").remove(C)}}function remove_Accomodation_localities(){var D=document.getElementById("PG_locality_two").selectedIndex;if(D!=-1){var C=D;var F=document.getElementById("PG_locality_two").value;var B=document.getElementById("PG_locality_one");var A=B.options.length;var E=document.createElement("OPTION");E.value=F;E.text=F;B.options.add(E,A);document.getElementById("PG_locality_two").remove(C)}}function PostAdMobiles(R,Ab){Rcategory="Mobiles";Rsubcategory=R;windowIsActive=true;OnlyDisable();market_remove("AddsDisplayDiv");document.getElementById("AddsDisplayDiv").style.display="block";document.getElementById("write_reviewDiv1").style.display="block";document.getElementById("AddsDisplayDiv").style.width="810px";document.getElementById("write_reviewDiv1").style.height="405px";document.getElementById("write_reviewDiv1").style.width="830px";var F=document.getElementById("AddsDisplayDiv");document.getElementById("AddsDisplayDiv").style.background="#ffffff";F.setAttribute("align","center");var S=document.createElement("table");S.width="95%";S.border=0;S.cellSpacing=0;S.cellPadding=0;S.setAttribute("align","center");var f=document.createElement("tbody");var AP=document.createElement("tr");var I=document.createElement("td");var I=document.createElement("td");I.setAttribute("align","left");I.setAttribute("vAlign","middle");I.className="myAdsValidation";I.colSpan=2;var K=document.createElement("div");K.setAttribute("id","validation_info");I.appendChild(K);AP.appendChild(I);var H=document.createElement("td");H.setAttribute("align","right");H.setAttribute("vAlign","middle");H.className="windowTitle";var J=document.createElement("img");J.setAttribute("src","images/close.jpg");J.onclick=Function("closeMarketWindow()");J.setAttribute("height","16");J.setAttribute("width","16");H.appendChild(J);f.appendChild(AP);var AO=document.createElement("tr");var An=document.createElement("td");An.colSpan=2;An.className="windowTitle";var Y=document.createElement("table");Y.width="100%";Y.border=0;Y.cellSpacing=0;Y.cellPadding=0;Y.setAttribute("align","center");var m=document.createElement("tbody");var AF=document.createElement("tr");var AM=document.createElement("td");AM.setAttribute("align","left");AM.setAttribute("vAlign","middle");AM.setAttribute("width","24%");AM.className="fieldNames";var P=document.createTextNode("Step1 - Ad Title");AM.appendChild(P);AF.appendChild(AM);var AL=document.createElement("td");AL.setAttribute("align","left");AL.setAttribute("vAlign","middle");AL.setAttribute("width","1%");AL.className="fieldNames";var AZ=document.createTextNode(":");AL.appendChild(AZ);AF.appendChild(AL);var AK=document.createElement("td");AK.setAttribute("align","left");AK.setAttribute("vAlign","middle");AK.setAttribute("width","27%");AK.className="fieldNames";var Al=document.createElement("input");Al.setAttribute("size","30");Al.setAttribute("id","AEC_title");AK.appendChild(Al);AF.appendChild(AK);var AI=document.createElement("td");AI.setAttribute("align","left");AI.setAttribute("vAlign","middle");AI.className="myAdsEditDesp";var AH=document.createTextNode("(Enter a short title for your ad)");AI.appendChild(AH);AF.appendChild(AI);m.appendChild(AF);var AE=document.createElement("tr");var s=document.createElement("td");s.setAttribute("align","left");s.setAttribute("vAlign","middle");s.className="fieldNames";var e=document.createTextNode("Step2 - Make & Model");s.appendChild(e);AE.appendChild(s);var q=document.createElement("td");q.setAttribute("align","left");q.setAttribute("vAlign","middle");q.className="fieldNames";var AX=document.createTextNode(":");q.appendChild(AX);AE.appendChild(q);var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","middle");p.className="fieldNames";var Ai=document.createElement("input");Ai.setAttribute("size","30");Ai.setAttribute("id","first_auto");Ai.setAttribute("autocomplete","off");Ai.setAttribute("name","autocomplete");Ai.className="search";var y=document.createElement("div");y.className="shadow";y.setAttribute("id","shadow");p.appendChild(y);var AD=document.createElement("div");AD.className="output";AD.setAttribute("id","output");p.appendChild(AD);p.appendChild(Ai);AE.appendChild(p);var o=document.createElement("td");o.setAttribute("align","left");o.setAttribute("vAlign","middle");o.className="myAdsEditDesp";if(R=="Handsets"){var g=document.createTextNode("(Enter the make of your handset & select the best option)")}else{if(R=="Accessories"){var g=document.createTextNode("(Enter the make of your accessory & select the best option)")}else{var g=document.createTextNode("(Enter the make of your handset & select the best option)")}}o.appendChild(g);AE.appendChild(o);m.appendChild(AE);var AC=document.createElement("tr");var c=document.createElement("td");c.setAttribute("align","left");c.setAttribute("vAlign","middle");c.className="fieldNames";var u=document.createTextNode("Step3 - Condition");c.appendChild(u);AC.appendChild(c);var b=document.createElement("td");b.setAttribute("align","left");b.setAttribute("vAlign","middle");b.className="fieldNames";var AW=document.createTextNode(":");b.appendChild(AW);AC.appendChild(b);var Z=document.createElement("td");Z.setAttribute("align","left");Z.setAttribute("vAlign","middle");Z.className="fieldNames";var h=document.createElement("select");h.setAttribute("id","AEC_condition");var V=document.createElement("option");V.value="Select";V.text="Select";h.options.add(V,0);var U=document.createElement("option");U.value="New";U.text="New";h.options.add(U,1);var T=document.createElement("option");T.value="Used";T.text="Used";h.options.add(T,2);Z.appendChild(h);AC.appendChild(Z);var X=document.createElement("td");X.setAttribute("align","left");X.setAttribute("vAlign","middle");X.className="myAdsEditDesp";if(R=="Handsets"){var Q=document.createTextNode("(Enter the condition of your handset)");X.appendChild(Q)}else{if(R=="Accessories"){var Q=document.createTextNode("(Enter the condition of your accessory)");X.appendChild(Q)}}AC.appendChild(X);m.appendChild(AC);var AB=document.createElement("tr");var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","middle");O.className="fieldNames";var AN=document.createTextNode("Step4 - Price");O.appendChild(AN);AB.appendChild(O);var N=document.createElement("td");N.setAttribute("align","left");N.setAttribute("vAlign","middle");N.className="fieldNames";var AV=document.createTextNode(":");N.appendChild(AV);AB.appendChild(N);var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","middle");M.className="fieldNames";var Ac=document.createElement("input");Ac.setAttribute("size","30");Ac.setAttribute("id","AEC_price");M.appendChild(Ac);AB.appendChild(M);var L=document.createElement("td");L.setAttribute("align","left");L.setAttribute("vAlign","middle");L.className="myAdsEditDesp";var G=document.createTextNode("(Enter your selling price)");L.appendChild(G);AB.appendChild(L);m.appendChild(AB);var AA=document.createElement("tr");var E=document.createElement("td");E.setAttribute("align","left");E.setAttribute("vAlign","top");E.className="fieldNames";var Ad=document.createTextNode("Step5 - Description");E.appendChild(Ad);AA.appendChild(E);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","top");D.className="fieldNames";var AU=document.createTextNode(":");D.appendChild(AU);AA.appendChild(D);var B=document.createElement("td");B.colSpan=2;var W=document.createElement("table");W.width="100%";W.border=0;W.cellSpacing=0;W.cellPadding=0;W.setAttribute("align","center");var l=document.createElement("tbody");var AF=document.createElement("tr");var AM=document.createElement("td");AM.setAttribute("align","left");AM.setAttribute("vAlign","middle");AM.setAttribute("width","370");AM.className="fieldNames";var Aa=document.createElement("textArea");Aa.setAttribute("rows","6");Aa.setAttribute("cols","55");Aa.setAttribute("id","AEC_description");AM.appendChild(Aa);AF.appendChild(AM);var AL=document.createElement("td");AL.setAttribute("align","left");AL.setAttribute("vAlign","top");AL.className="myAdsEditDesp";var Ag=document.createTextNode("(Enter a brief description of your product & terms of sale)");AL.appendChild(Ag);AF.appendChild(AL);l.appendChild(AF);W.appendChild(l);B.appendChild(W);AA.appendChild(B);m.appendChild(AA);var z=document.createElement("tr");var Aj=document.createElement("td");Aj.setAttribute("align","left");Aj.setAttribute("vAlign","middle");Aj.className="fieldNames";var A=document.createTextNode("Step6 - Images");Aj.appendChild(A);z.appendChild(Aj);var Ah=document.createElement("td");Ah.setAttribute("align","left");Ah.setAttribute("vAlign","middle");Ah.className="fieldNames";var AT=document.createTextNode(":");Ah.appendChild(AT);z.appendChild(Ah);var Af=document.createElement("td");Af.setAttribute("align","left");Af.setAttribute("vAlign","middle");Af.setAttribute("id","Td_UploadFile");Af.className="fieldNames";var AY=document.createElement("input");AY.setAttribute("type","file");AY.setAttribute("id","file");AY.setAttribute("name","userfile");Af.appendChild(AY);z.appendChild(Af);var Ae=document.createElement("td");Ae.setAttribute("align","left");Ae.setAttribute("vAlign","middle");Ae.setAttribute("id","Td_UploadButton");Ae.className="myAdsEditDesp";var Ak=document.createElement("input");Ak.setAttribute("type","submit");Ak.setAttribute("value","Upload");Ak.setAttribute("id","upload_button");Ak.onclick=Function();Ae.appendChild(Ak);var AG=document.createTextNode(" ");Ae.appendChild(AG);var AJ=document.createTextNode("(Upload Photos of your product - Optional)");Ae.appendChild(AJ);z.appendChild(Ae);m.appendChild(z);var x=document.createElement("tr");var AS=document.createElement("td");AS.setAttribute("align","left");AS.setAttribute("vAlign","middle");AS.className="fieldNames";x.appendChild(AS);var AR=document.createElement("td");AR.setAttribute("align","left");AR.setAttribute("vAlign","middle");AR.className="fieldNames";x.appendChild(AR);var AQ=document.createElement("td");var W=document.createElement("table");W.width="100%";W.border=0;W.cellSpacing=0;W.cellPadding=0;W.setAttribute("align","center");var l=document.createElement("tbody");var AF=document.createElement("tr");var AM=document.createElement("td");AM.setAttribute("align","left");AM.setAttribute("vAlign","middle");AM.className="fieldNames";var C=document.createElement("select");C.setAttribute("size","3");C.setAttribute("id","new_img_select");AM.appendChild(C);AF.appendChild(AM);var AL=document.createElement("td");AL.setAttribute("align","left");AL.setAttribute("vAlign","middle");AL.className="myAdsEditDesp";var Am=document.createElement("input");Am.setAttribute("type","button");Am.setAttribute("value","Remove Image");Am.onclick=Function('removeImage("new_img_select","'+Ab+'")');AL.appendChild(Am);AF.appendChild(AL);l.appendChild(AF);W.appendChild(l);AQ.appendChild(W);x.appendChild(AQ);m.appendChild(x);var w=document.createElement("tr");var v=document.createElement("td");v.setAttribute("align","right");v.setAttribute("vAlign","middle");v.colSpan=4;var r=document.createElement("input");r.setAttribute("type","button");r.setAttribute("value","Back");r.onclick=Function("postMarketAds()");v.appendChild(r);var AG=document.createTextNode(" ");v.appendChild(AG);var d=document.createElement("input");d.setAttribute("type","button");d.setAttribute("value","Next");d.onclick=Function('validateMobilePost("'+R+'","'+Ab+'")');v.appendChild(d);w.appendChild(v);m.appendChild(w);Y.appendChild(m);An.appendChild(Y);AO.appendChild(An);f.appendChild(AO);S.appendChild(f);F.appendChild(S);testT();xauto_init()}function validateMobilePost(G,P){var A=document.getElementById("AEC_title").value;var B=document.getElementById("first_auto").value;var N=document.getElementById("AEC_condition").value;var O=document.getElementById("AEC_price").value;var L=document.getElementById("AEC_description").value.replace(/\n/g," ");var F=document.getElementById("validation_info");while(F.hasChildNodes()){var M=F.firstChild;F.removeChild(M)}if(A==""){var I=document.createTextNode("Please Enter Title");F.appendChild(I)}else{if(B==""){var E=document.createTextNode("Please Enter Make & Model of the Product");F.appendChild(E)}else{if(N=="Select"){var E=document.createTextNode("Please Select Conditon of the Product");F.appendChild(E)}else{if(O==""){var C=document.createTextNode("Please Enter the Price your want to Sell it for");F.appendChild(C)}else{if(IsNumeric(O)){var H=document.createTextNode("Please Enter Valid Price");F.appendChild(H)}else{if(L==""){var E=document.createTextNode("Please Enter Description");F.appendChild(E)}else{if(P=="PostAd"){var K=checkLoginNew();if(K==1){NewMobilePost(G)}else{NewPostAdsLogin("Mobiles",G)}}else{if(P=="Edit"){var D=getSelectedImages();var J="title="+escape(A)+"&description="+escape(L)+"&make="+escape(B)+"&pstring="+escape(B)+"&model="+escape(B)+"&price="+escape(O)+"&subcategory="+escape(G)+"&category="+escape("Mobiles")+"&mob_condition="+escape(N)+"&tv_type="+escape("null")+"&tv_size="+escape("null")+"&cam_mp="+escape("null")+"&mouse_key_type="+escape("null")+"&subcategory2="+escape("null")+"&desk_type="+escape("null")+"&ram_type="+escape("null")+"&ram_size="+escape("null")+"&processor="+escape("null")+"&cd_dvd="+escape("null")+"&hdd="+escape("null")+"&monitor_type="+escape("null")+"&monitor="+escape("null")+"&clid="+escape(clid)+D;postEditMobiles(J)}}}}}}}}}function NewMobilePost(L){var T=document.getElementById("AEC_title").value;var d=document.getElementById("AEC_condition").value;var G=document.getElementById("AEC_price").value;var Q=document.getElementById("AEC_description").value.replace(/\n/g,"~");var E=document.getElementById("first_auto").value;var C="null";var U="null";var Y="null";var B="null";var O="null";var V="null";var D="null";var M="null";var S="null";var C="null";var U="null";var H="null";var Z="null";var K="null";var R="null";var c="";var N="Mobiles";var J=L;var b="";var F=0;var P=document.getElementById("new_img_select");var W=P.options.length;var X="";var f="";for(i=0;i<W;i++){var e=P.options[i].text;var A=P.options[i].value;if(i==0){X=e;f=A}else{X=X+":"+e;f=f+":"+A}}if(document.getElementById("market_post_email")){var b=document.getElementById("market_post_email").value}else{b="0"}if(document.getElementById("market_post_mobile")){F=document.getElementById("market_post_mobile").value}else{F=0}if(b!=""){show_loader();var I="Marketplace/post_aec_listing.php";request.open("POST",I,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewPostMobilesListing;url1="title="+escape(T)+"&description="+escape(Q)+"&make="+escape(E)+"&model="+escape(H)+"&price="+escape(G)+"&subcategory="+escape(J)+"&category="+escape(N)+"&mob_condition="+escape(d)+"&tv_type="+escape(Z)+"&tv_size="+escape(K)+"&cam_mp="+escape(R)+"&mouse_key_type="+escape(Y)+"&subcategory2="+escape(c)+"&desk_type="+escape(B)+"&ram_type="+escape(O)+"&ram_size="+escape(V)+"&processor="+escape(D)+"&cd_dvd="+escape(M)+"&hdd="+escape(S)+"&monitor_type="+escape(C)+"&monitor="+escape(U)+"&reply_email="+escape(b)+"&reply_mobile="+escape(F)+"&imageName="+escape(X)+"&imageRandomName="+escape(f);request.send(url1)}else{alert("Please Enter the complete details")}}function updateNewPostMobilesListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;document.getElementById("Post_an_Ad").name=A;show_classified("null","null",0);update_log_box();closeMarketWindow();hide_loader()}}}function checkLoginNew(){var A="uploading/isLoggedin.php";request2.open("GET",A,false);request2.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request2.send(null);return request2.responseText}function NewPostAdsLogin(B,C){var A="PostAd:"+B+":"+C;NewLogin(A)}function noJustPost(B,D){var L=document.getElementById("market_post_email").value;var C=document.getElementById("market_post_mobile").value;var K=document.getElementById("Email_validation_info");var G=L.indexOf("@");var F=L.indexOf(".",G);var E=L.indexOf(",");var A=L.indexOf(" ");var I=L.lastIndexOf(".")+1;var J=L.length;market_remove("Email_validation_info");if(L==""){var H=document.createTextNode("Please Enter the Email");K.appendChild(H)}else{if((L.length>0)&&(G>0)&&(F>(1+1))&&(E==-1)&&(A==-1)&&(J-I>=2)&&(J-I<=3)){if(C.length>0&&C.length<10){var H=document.createTextNode("Please Enter the Valid Mobile Number");K.appendChild(H)}else{NewPostAds(B,D)}}else{var H=document.createTextNode("Please Enter the Valid Email");K.appendChild(H)}}}function ShowPreviousWindow(A){windowIsActive=true;document.getElementById("write_reviewDiv1").style.display="block";document.getElementById("AddsDisplayDiv").style.display="block";document.getElementById("email_inner_div").style.display="none";document.getElementById("email_outer_div").style.display="none"}function ShowPreviousWindowProperties(A){windowIsActive=true;document.getElementById("address_outer_div").style.display="block";document.getElementById("address_inner_div").style.display="block";document.getElementById("email_inner_div").style.display="none";document.getElementById("email_outer_div").style.display="none";document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none"}function ShowPropertyWindow(A){windowIsActive=true;document.getElementById("write_reviewDiv1").style.display="block";document.getElementById("AddsDisplayDiv").style.display="block";document.getElementById("email_inner_div").style.display="none";document.getElementById("email_outer_div").style.display="none";document.getElementById("address_outer_div").style.display="none";document.getElementById("address_inner_div").style.display="none"}function NewPostAds(A,B){show_loader();if(A!="Properties"&&(A=="Everything"||B=="Everything"||B=="Others")){NewEverythingPost(A,B)}else{if(A=="Electronics"||A=="Appliances"){NewApplianceElectronicPost(A,B)}else{if(A=="Autos"){NewAutosPost(B)}else{if(A=="Books"){NewBooksPost()}else{if(A=="Movies,Games"){NewCdDvdPost(B)}else{if(A=="Computers"){NewComputersPost(B)}else{if(A=="Events"){NewPostEvents()}else{if(B=="Carpool"){NewCarpoolPost(B)}else{if(A=="Furniture"){NewFurniturePost()}else{if(A=="Everything"){NewEverythingPost(A,B)}else{if(A=="Mobiles"){NewMobilePost(B)}else{if(A=="Personals"){NewPersonalsPost(B)}else{if(A=="Housing"){NewPostHousing(B)}else{if(B=="Jobs"){NewJobPost()}else{if(A=="Tickets"){NewTicketPost(B)}else{if(A=="Properties"){NewPostProperty(B)}else{if(B=="Resume"){NewResumePost("Resume")}}}}}}}}}}}}}}}}}}var timerid;function timeSelector(C){clearTimeout(timerid);market_remove("timeSpace");var H=document.getElementById("timeSpace");var D=document.createElement("select");D.setAttribute("id","hours");D.onchange=Function('sets_time("'+C+'")');for(i=1;i<13;i++){var G=document.createElement("option");if(i<10){G.value="0"+i;G.text="0"+i}else{G.value=i;G.text=i}D.options.add(G,i-1)}H.appendChild(D);var F=document.createTextNode(" ");H.appendChild(F);var A=document.createElement("select");A.setAttribute("id","minutes");A.onchange=Function('sets_time("'+C+'")');for(i=1;i<61;i++){var G=document.createElement("option");if(i<10){G.value="0"+i;G.text="0"+i}else{G.value=i;G.text=i}A.options.add(G,i-1)}H.appendChild(A);var F=document.createTextNode(" ");H.appendChild(F);var B=document.createElement("select");B.setAttribute("id","AM_PM");B.onchange=Function('sets_time("'+C+'")');var G=document.createElement("option");G.value="AM";G.text="AM";B.options.add(G,0);var G=document.createElement("option");G.value="PM";G.text="PM";B.options.add(G,1);H.appendChild(B);var F=document.createTextNode(" ");H.appendChild(F);var E=document.createElement("img");E.setAttribute("src","images/close.gif");E.onclick=Function("setText()");E.setAttribute("height","12");E.setAttribute("width","12");H.appendChild(E);timerid=setTimeout("setText()",20000)}function createTimeSelector(C){var F=document.createElement("td");var D=document.createElement("select");D.setAttribute("id",C+"hours");for(i=1;i<13;i++){var E=document.createElement("option");if(i<10){E.value="0"+i;E.text="0"+i}else{E.value=i;E.text=i}D.options.add(E,i-1)}F.appendChild(D);var A=document.createElement("select");A.setAttribute("id",C+"minutes");for(i=1;i<61;i++){var E=document.createElement("option");if(i<10){E.value="0"+i;E.text="0"+i}else{E.value=i;E.text=i}A.options.add(E,i-1)}F.appendChild(A);var B=document.createElement("select");B.setAttribute("id",C+"AM_PM");var E=document.createElement("option");E.value="AM";E.text="AM";B.options.add(E,0);var E=document.createElement("option");E.value="PM";E.text="PM";B.options.add(E,1);F.appendChild(B);return F}function setText(){market_remove("timeSpace");var B=document.getElementById("timeSpace");var A=document.createTextNode("(Enter the date & time of the event)");B.appendChild(A);clearTimeout(timerid)}function sets_time(A){var D=document.getElementById(A);var C=document.getElementById("hours").value;var E=document.getElementById("minutes").value;var B=document.getElementById("AM_PM").value;D.value=C+":"+E+" "+B}function time_remove(){clearTimeout(timerid);if(div_pass!=""){var A=document.getElementById(div_pass);while(A.hasChildNodes()){var B=A.firstChild;A.removeChild(B)}}}function IsNumeric(B){var D="0123456789.";var C=false;var A;for(i=0;i<B.length&&C==false;i++){A=B.charAt(i);if(D.indexOf(A)==-1){C=true}}return C}var SA_cat;var SA_subcat;var SA_lsid;var rank;var tot_pg_SO=0;var SO_cat;var SO_subcat;var SO_pid;var SO_next=1;var SO_prev=0;var SO_sort;var SO1_pid;var name;var next;var pid;var previous;var sort;var comparepids=new Array();var PIDcmp=new Array();function callreply(){subCategory("get_reply")}function view_sim_ads(D,B,E,A){limit=A;previous=limit;SA_lsid=E;name=B;Rcategory=D;Rsubcategory=B;var C="uploading/get_similar_ads.php";request.open("POST",C,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateAds;url1="category="+escape(D)+"&subcategory="+escape(B)+"&lsid="+escape(E)+"&limit="+escape(limit);show_loader();request.send(url1)}function updateAds(){if(document.getElementById("main_span")){current_text=document.getElementById("main_span").innerHTML}else{current_text=document.getElementById("myAccount_inner_div").innerHTML}if(request.readyState==4){if(request.status==200){hide_loader();if(request.responseText!=""){var jsonData=eval("("+request.responseText+")");if(jsonData.listings.listing.length>0){title=jsonData.listings.listing[0].title;if(title.length>45){title.lingth=45;title+="..."}var main_text='<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">';main_text+='<tr><td colspan="5"><table border="0" width="100%" cellpadding="0" cellspacing="0"><tr><td><img src="http://www.mid-day.com/images/middaylogo.gif" vspace="10" alt="" border="0"></td><td align="left" valign="middle"><span class="blue">Similar Ads - </span> <span class="gray">'+name+'</span></td><td valign="top"><div id="cross" style="padding-top: 5px;" align="right"><img src="images/close.jpg" alt="Close" onclick="javascript:close_sim_objsx();" class="set_hand" border="0" height="15" width="16"></div></td></tr></table></td></tr>';cat=jsonData.listings.listing[0].category;scat=jsonData.listings.listing[0].sub_category;SO_cat=cat;SO_subcat=scat;pages=parseInt(jsonData.listings.pages);page=pages-next;limit=parseInt(limit);if(cat=="Jobs"&&scat=="Jobs"){main_text+='<tr><td height="1" colspan="4" bgcolor="#E9E9E9"></td></tr>';for(i=0;i<jsonData.listings.listing.length;i++){title=jsonData.listings.listing[i].title;if(title.length>45){title.lingth=45;title+="..."}main_text+='<tr id="'+jsonData.listings.listing[i].pid+'" onmouseover="javascript:ChangeColorx(this);" onmouseout="javascript:RemoveColorx(this);">';main_text+='<td width="200" height="35" align="left" colspan="2"><span class="gray_text">'+title+"</span></td>";main_text+='<td width="161" valign="middle"><span class="gray_text">'+jsonData.listings.listing[i].industry_type+"</span></td>";main_text+='<td width="170" valign="middle"><span class="red">'+jsonData.listings.listing[i].time+"</span></td></tr>";if(i!=jsonData.listings.listing.length-1){main_text+='<tr><td height="1" colspan="4" bgcolor="#E9E9E9"></td></tr>'}}}else{main_text+='<tr><td height="1" colspan="4" bgcolor="#999999"></td></tr>';for(i=0;i<jsonData.listings.listing.length;i++){title=jsonData.listings.listing[i].title;if(title.length>45){title.lingth=45;title+="..."}main_text+='<tr id="'+jsonData.listings.listing[i].pid+'" onmouseover="javascript:ChangeColorx(this);" onmouseout="javascript:RemoveColorx(this);"><td width="116" height="80" align="left"><img id="img_obj" height="70" hspace="5" vspace="5" width="100" src="../'+jsonData.listings.listing[i].image+'"></td>';main_text+='<td width="200" align="left"><span class="gray_text">'+title+"</span></td>";main_text+='<td width="161" valign="middle"><span class="gray_text">Rs.</span><span class="inner_head">'+jsonData.listings.listing[i].price+"</span></td>";main_text+='<td width="170" valign="middle"><span class="bold_orange">'+jsonData.listings.listing[i].time+"</span></td></tr>";if(i!=jsonData.listings.listing.length-1){main_text+='<tr><td height="1" colspan="4" bgcolor="#999999"></td></tr>'}}}if(pages>=limit&&pages>1){main_text+='<tr><td colspan="4" align="right">';if(limit>0){main_text+="<a href=\"javascript: limit--;view_sim_ads('"+cat+"','"+scat+"','"+SA_lsid+'\',limit)"><img src="images/green_up.jpg" height="20" width="29"></a>';previous=limit}if((limit+1)<pages){main_text+="<a href=\"javascript: limit++;view_sim_ads('"+cat+"','"+scat+"','"+SA_lsid+'\',limit)"><img src="images/green_down.jpg" height="20" width="29"></a>';previous=limit}main_text+="</td></tr>"}main_text+="</table>";get_Window_Div_Account(510,750);var inner=document.getElementById("myAccount_inner_div");var table=parent.document.createElement("table");table.setAttribute("border","0");table.setAttribute("width","100%");table.setAttribute("cellsapcing","0");table.setAttribute("cellpadding","0");var tbody=document.createElement("tbody");var trMain1=document.createElement("tr");var tdMain11=document.createElement("td");var tdMain11=document.createElement("td");tdMain11.setAttribute("align","left");tdMain11.setAttribute("vAlign","middle");tdMain11.setAttribute("id","validateAdSpace");tdMain11.className="myAdsValidation";trMain1.appendChild(tdMain11);var tdMain12=document.createElement("td");tdMain12.setAttribute("align","right");tdMain12.setAttribute("vAlign","top");var div_main=document.createElement("span");div_main.setAttribute("id","main_span");div_main.innerHTML=main_text;tdMain12.appendChild(div_main);trMain1.appendChild(tdMain12);tbody.appendChild(trMain1);table.appendChild(tbody);inner.appendChild(table);var arrayPageSize=getPageSize();var objOverlay=document.getElementById("overlay");objOverlay.style.height=(arrayPageSize[1]+"px");objOverlay.style.display="block";objOverlay.style.zIndex=16;objOverlay.style.opacity=0.9}else{alert("No Ads Found");overlayHide()}}else{alert("No Ads Found");overlayHide()}}}}function view_sim_ads_paging(C,A,D){pages=0;next=1;previous=0;SA_cat=C;SA_subcat=A;SA_lsid=D;var B="uploading/get_similar_ads_paging.php";request.open("POST",B,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateAdspage;url1="category="+escape(C)+"&subcategory="+escape(A)+"&lsid="+escape(D);request.send(url1)}function updateAdspage(){if(request.readyState==4){if(request.status==200){pages=request.responseText;if(pages!=0){view_sim_ads(SA_cat,SA_subcat,SA_lsid,0)}if(pages==0){alert("Sorry, No ads found !!")}}}}function get_SA_next(){if(next<pages){if(next!=1){previous=next-1}view_sim_ads(SA_cat,SA_subcat,SA_lsid,next);previous=next;next=next+1}}function get_SA_prev(){if(previous<"0"){previous=0}if(previous>0||previous==0){previous=previous-1;view_sim_ads(SA_cat,SA_subcat,SA_lsid,previous);next=next-1}}function close_sim_ads(){}function view_sim_objects(E,B,F,A,D){if(F==0||F==""){alert("No Similar "+B+" Found");return }if(sort=="pid"){SO_sort="pid"}Rcategory=E;Rsubcategory=B;limit=A;previous=limit;pid=F;sort=D;if(sort=="price"){SO_sort="price"}if(sort=="rank"){SO_sort="rank"}var C="uploading/get_sim_objects.php";request.open("POST",C,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateObjs;url1="category="+escape(E)+"&subcategory="+escape(B)+"&product_id="+escape(pid)+"&limit="+escape(limit)+"&sort="+escape(sort);show_loader();request.send(url1)}function updateObjs(){if(document.getElementById("main_span")){current_text=document.getElementById("main_span").innerHTML}else{current_text=document.getElementById("myAccount_inner_div").innerHTML}if(request.readyState==4){if(request.status==200){hide_loader();var arrayPageSize=getPageSize();var objOverlay=document.getElementById("overlay");objOverlay.style.height=(arrayPageSize[1]+"px");objOverlay.style.display="block";objOverlay.className="overlay_alphacube";var jsonData=eval("("+request.responseText+")");if(jsonData.listings.listing.length>0){if(name.length>40){name.length=40;name+="..."}var main_text='<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">';main_text+='<tr><td colspan="5"><table border="0" width="100%" cellpadding="0" cellspacing="0"><tr><td><img src="http://www.mid-day.com/images/middaylogo.gif" alt="" border="0"></td><td align="left" valign="middle"><span class="blue">Similar '+jsonData.listings.listing[0].sub_category+' - </span> <span class="gray">'+name+'</span></td><td valign="top"><div id="cross" style="padding-top: 5px;" align="right"><img src="images/close.jpg" alt="Close" onclick="javascript:closeMarketWindow();" class="set_hand" border="0" height="15" width="16"></div></td></tr></table></td></tr>';main_text+='<tr><td colspan="5"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="left"><span class="inner_head"><a href="javascript:sortprice();">Sort By Price</a> | <a href="javascript:sortrank();">Sort	By Rank</a></span></td><td align="right"><img src="paw.gif" class="style2" width="30"><span class="inner_head"><a href="javascript:compareUs();">Compare '+jsonData.listings.listing[0].sub_category+"</a></span></td></tr></table><br></td></tr>";main_text+='<tr><td height="1" colspan="5"><hr noshade="noshade" /></td></tr>';for(var i=0;i<jsonData.listings.listing.length;i++){main_text+='<tr id="'+jsonData.listings.listing[i].pid+'" onmouseover="javascript:ChangeColorx(this);" onmouseout="javascript:RemoveColorx(this);"><td width="116" height="80" align="left"><img id="img_obj" height="70" hspace="5" vspace="5" width="100" src="../upload/'+jsonData.listings.listing[i].image+'"></td>';main_text+='<td width="26" valign="middle">';if(comparepids.join("-").indexOf(jsonData.listings.listing[i].pid)>=0){main_text+='<input type="checkbox" checked="checked" class="check" id="cb'+jsonData.listings.listing[i].pid+'" onclick="javascript:imchecked('+jsonData.listings.listing[i].pid+')"></td>'}else{main_text+='<input type="checkbox"  class="check" id="cb'+jsonData.listings.listing[i].pid+'" onclick="javascript:imchecked('+jsonData.listings.listing[i].pid+')"></td>'}main_text+='<td width="352" align="left"><span class="gray_text">'+jsonData.listings.listing[i].pstring+'</span></td><td width="125" valign="middle"><img id="img_obj" src="images/rating'+jsonData.listings.listing[i].overall_rating+'.gif"></td><td width="40" align="center"><span class="rank_f">Rank</span><br><span class="rand_col">'+jsonData.listings.listing[i].rank+"</span></td></tr>";if(i!=jsonData.listings.listing.length-1){main_text+='<tr><td height="1" colspan="5" bgcolor="#999999"></td></tr>'}}pages=parseInt(jsonData.listings.pages);cat=jsonData.listings.listing[0].category;scat=jsonData.listings.listing[0].sub_category;SO_cat=cat;SO_subcat=scat;page=pages-next;limit=parseInt(limit);cur=limit;if(pages>limit&&pages>1){main_text+='<tr><td colspan="5" align="right">';if(limit>0){main_text+="<a href=\"javascript: limit--;view_sim_objects('"+cat+"','"+scat+"','"+pid+"',limit,'"+sort+'\')"><img src="images/green_up.jpg" height="20" width="29"></a>';previous=limit}if((limit+1)<pages){main_text+="<a href=\"javascript: limit++;view_sim_objects('"+cat+"','"+scat+"','"+pid+"',limit,'"+sort+'\')"><img src="images/green_down.jpg" height="20" width="29"></a>';previous=limit}main_text+="</td></tr>"}main_text+="</table>";get_Window_Div_Account(510,750);var inner=document.getElementById("myAccount_inner_div");var table=parent.document.createElement("table");table.setAttribute("border","0");table.setAttribute("width","100%");table.setAttribute("cellsapcing","0");table.setAttribute("cellpadding","0");var tbody=document.createElement("tbody");var trMain1=document.createElement("tr");var tdMain11=document.createElement("td");var tdMain11=document.createElement("td");tdMain11.setAttribute("align","left");tdMain11.setAttribute("vAlign","middle");tdMain11.setAttribute("id","validateAdSpace");tdMain11.className="myAdsValidation";trMain1.appendChild(tdMain11);var tdMain12=document.createElement("td");tdMain12.setAttribute("align","right");tdMain12.setAttribute("vAlign","top");var div_main=document.createElement("span");div_main.setAttribute("id","main_span");div_main.innerHTML=main_text;tdMain12.appendChild(div_main);trMain1.appendChild(tdMain12);tbody.appendChild(trMain1);table.appendChild(tbody);inner.appendChild(table);var arrayPageSize=getPageSize();var objOverlay=document.getElementById("overlay");objOverlay.style.height=(arrayPageSize[1]+"px");objOverlay.style.display="block";objOverlay.style.zIndex=16;objOverlay.style.opacity=0.9}else{alert("No Similar Product Found");overlayHide();hide_loader()}}}}function view_sim_objects_paging(E,B,A,D){tot_pg_SO=0;SO_next=1;SO_prev=0;SO_cat=E;SO_subcat=B;SO_pid=A;if(D=="pid"){SO_sort="pid"}if(D=="price"){SO_sort="price"}if(D=="rank"){SO_sort="rank"}var C="uploading/get_sim_objects_paging.php";request.open("POST",C,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateObjspage;url1="category="+escape(E)+"&subcategory="+escape(B)+"&product_id="+escape(A)+"&sort="+escape(D);request.send(url1)}function updateObjspage(){if(request.readyState==4){if(request.status==200){tot_pg_SO=request.responseText;if(tot_pg_SO!=0){view_sim_objects(SO_cat,SO_subcat,SO_pid,0,SO_sort)}if(tot_pg_SO==0){alert("Sorry, No similar objects found !!")}}}}function get_SO_next(){if(SO_next<tot_pg_SO){if(SO_next!=1){SO_prev=SO_next-1}current_text=document.getElementById("main_span").innerHTML;document.getElementById("main_span").innerHTML=current_text+'<div id="window_loader"><center><img id="ldr_img" src="images/ajax-loader.gif"></center><div id="window_bg"></div></div>';view_sim_objects(SO_cat,SO_subcat,SO_pid,SO_next,SO_sort);SO_prev=SO_next;SO_next=SO_next+1}}function get_SO_prev(){if(SO_prev<"0"){SO_prev=0}if(SO_prev>0||SO_prev==0){SO_prev=SO_prev-1;current_text=document.getElementById("main_span").innerHTML;document.getElementById("main_span").innerHTML=current_text+'<div id="window_loader"><center><img id="ldr_img" src="images/ajax-loader.gif"></center><div id="window_bg"></div></div>';view_sim_objects(SO_cat,SO_subcat,SO_pid,SO_prev,SO_sort);SO_next=SO_next-1}}function close_sim_objs(){document.getElementById("sim_Objs").style.display="none";document.getElementById("overlayiframe").style.display="none";document.getElementById("overlay").style.display="none";document.getElementById("wait").style.display="none"}function close_sim_objsx(){document.getElementById("myAccount_outer_div").style.display="none";document.getElementById("myAccount_inner_div").style.display="none";document.getElementById("overlay").style.display="none"}function sortprice(){SO_pid=pid;limit=0;view_sim_objects(SO_cat,SO_subcat,pid,0,"price")}function sortrank(){SO_pid=pid;limit=0;view_sim_objects(SO_cat,SO_subcat,pid,0,"rank")}function unique(A){tmp=new Array(0);for(i=0;i<A.length;i++){if(!contains(tmp,A[i])&&A[i]!=0&&A[i]!=undefined){tmp.length+=1;tmp[tmp.length-1]=A[i]}}return tmp}var cmp_flag=1;function compareUs(){for(var A=0;A<comparepids.length;A++){if(document.getElementById("cb"+comparepids[A])){document.getElementById("cb"+comparepids[A]).checked=false}}var B=unique(comparepids).length;if(comparepids.length==0){alert("Please select the "+Rsubcategory)}else{if(B>3){alert("You can select maximum 3 cars!!");comparepids.length=0}else{if(B==2){setPidValues(unique(comparepids));window.open("CarComparison.php?pid1="+PIDcmp[0]+"&pid2="+PIDcmp[1]+"&pid3="+0);comparepids.length=0}else{setPidValues(unique(comparepids));if(Rsubcategory=="Cars"){window.open("CarComparison.php?pid1="+PIDcmp[0]+"&pid2="+PIDcmp[1]+"&pid3="+PIDcmp[2])}else{if(Rsubcategory=="Bikes"){window.open("BikeComparison.php?pid1="+PIDcmp[0]+"&pid2="+PIDcmp[1]+"&pid3="+PIDcmp[2])}else{alert("This Feature is Currently Not Available")}}comparepids.length=0}}}}function setPidValues(A){PIDcmp=A}function contains(A,B){for(j=0;j<A.length;j++){if(A[j]==B){return true}else{return false}}}var k=0;function imchecked(A){if(document.getElementById("cb"+A).checked==true){comparepids[k]=A;k++;for(var B=0;B<comparepids.length;B++){}}else{if(document.getElementById("cb"+A).checked==false){for(var B=0;B<comparepids.length;B++){if(comparepids[B]==A){comparepids[B]=0}}}}}function get_Features_Window(C,A,B){if(C!=0&&C!="0"){window.open("Features/get_features.php?pid="+C+"&scat="+B)}else{alert("Features Not Available!!!")}}function OpenBikeFeaturesPage(B,A){window.open("Features/Bike_Features.php?pid="+B+"&subcategory="+A)}function get_Window_Div_Account(E,B){var A=B-20;var D=document.getElementById("myAccount_outer_div");var C=document.getElementById("myAccount_inner_div");any_remove("myAccount_inner_div");D.style.height=E+"px";D.style.width=B+"px";C.style.width=A+"px";D.style.display="block";C.style.display="block";C.setAttribute("align","center");C.style.background="#FFFFFF";windowIsActive="MyAccount";testT()}var clid;var image_list=new Array;var img_length;var image;var jobs=0;var name;var jobs_clid;function check_to_apply(B){jobs_clid=B;jobs=1;var A="uploading/check_if_logged.php";request.open("GET",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateaaply;request.send(null)}function updateaaply(){if(request.readyState==4){if(request.status==200){check_for_CV()}}}function check_for_CV(){var A="uploading/checkCV.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateCV;request.send(A)}function updateCV(){if(request.readyState==4){if(request.status==200){var C=document.getElementById("overlay");C.style.display="block";var B=document.getElementById("overlayiframe");B.style.display="block";if(request.responseText==1){var A="uploading/getCVdetails.php";request.open("GET",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateResume;request.send(null)}else{PostAdResume("Resume")}}}}function updateResume(){if(request.readyState==4){if(request.status==200){var jsonData=eval("("+request.responseText+")");market_remove("address_inner_div");var inner=document.getElementById("address_inner_div");var outer=document.getElementById("address_outer_div");inner.style.display="block";outer.style.display="block";inner.style.width="830px";outer.style.height="430px";outer.style.width="850px";inner.style.background="#ffffff";var write_review=inner;write_review.setAttribute("align","center");var StpNum=1;var tableMain=document.createElement("table");tableMain.width="98%";tableMain.border=0;tableMain.cellSpacing=0;tableMain.cellPadding=0;tableMain.setAttribute("align","center");var tbodyMain=document.createElement("tbody");var trMain1=document.createElement("tr");var tdMain12=document.createElement("td");tdMain12.setAttribute("align","left");tdMain12.setAttribute("vAlign","middle");tdMain12.className="myAdsValidation";tdMain12.setAttribute("id","validation_info");var closeIcon=document.createElement("img");closeIcon.setAttribute("src","images/close.jpg");closeIcon.onclick=Function("closeAcountWindow()");closeIcon.setAttribute("height","16");closeIcon.setAttribute("width","16");trMain1.appendChild(tdMain12);tbodyMain.appendChild(trMain1);var trMain2=document.createElement("tr");var tdMain21=document.createElement("td");tdMain21.colSpan=2;tdMain21.className="windowTitle";var table1=document.createElement("table");table1.width="100%";table1.border=0;table1.cellSpacing=0;table1.cellPadding=0;table1.setAttribute("align","center");var tbody1=document.createElement("tbody");var tr1=document.createElement("tr");var td11=document.createElement("td");td11.setAttribute("align","left");td11.setAttribute("vAlign","middle");td11.setAttribute("width","24%");td11.className="fieldNames";var step1Label=document.createTextNode("Step"+StpNum+" - Name");td11.appendChild(step1Label);tr1.appendChild(td11);var td12=document.createElement("td");td12.setAttribute("align","left");td12.setAttribute("vAlign","middle");td12.setAttribute("width","2%");td12.className="fieldNames";var colon1=document.createTextNode(":");td12.appendChild(colon1);tr1.appendChild(td12);var td13=document.createElement("td");td13.setAttribute("align","left");td13.setAttribute("vAlign","middle");td13.setAttribute("width","26%");var step1TB=document.createElement("input");step1TB.setAttribute("size","30");step1TB.setAttribute("id","resume_name");step1TB.value=jsonData.listings.listing[0].name;td13.appendChild(step1TB);tr1.appendChild(td13);var td14=document.createElement("td");td14.setAttribute("align","left");td14.setAttribute("vAlign","middle");td14.className="myAdsEditDesp";var step1Desp=document.createTextNode("(Enter your full name)");td14.appendChild(step1Desp);tr1.appendChild(td14);tbody1.appendChild(tr1);var tr2=document.createElement("tr");var td21=document.createElement("td");td21.setAttribute("align","left");td21.setAttribute("vAlign","middle");td21.className="fieldNames";StpNum++;var step2Label=document.createTextNode("Step"+StpNum+" - Email");td21.appendChild(step2Label);tr2.appendChild(td21);var td22=document.createElement("td");td22.setAttribute("align","left");td22.setAttribute("vAlign","middle");td22.className="fieldNames";var colon2=document.createTextNode(":");td22.appendChild(colon2);tr2.appendChild(td22);var td23=document.createElement("td");td23.setAttribute("align","left");td23.setAttribute("vAlign","middle");var step2TB=document.createElement("input");step2TB.setAttribute("size","30");step2TB.setAttribute("id","resume_email");step2TB.value=jsonData.listings.listing[0].email;td23.appendChild(step2TB);tr2.appendChild(td23);var td24=document.createElement("td");td24.setAttribute("align","left");td24.setAttribute("vAlign","middle");td24.className="myAdsEditDesp";var step2Desp=document.createTextNode("(Enter your email address)");td24.appendChild(step2Desp);tr2.appendChild(td24);tbody1.appendChild(tr2);var tr3=document.createElement("tr");var td31=document.createElement("td");td31.setAttribute("align","left");td31.setAttribute("vAlign","middle");td31.className="fieldNames";StpNum++;var step3Label=document.createTextNode("Step"+StpNum+" - Mobile");td31.appendChild(step3Label);tr3.appendChild(td31);var td32=document.createElement("td");td32.setAttribute("align","left");td32.setAttribute("vAlign","middle");td32.className="fieldNames";var colon3=document.createTextNode(":");td32.appendChild(colon3);tr3.appendChild(td32);var td33=document.createElement("td");td33.setAttribute("align","left");td33.setAttribute("vAlign","middle");var step3TB=document.createElement("input");step3TB.setAttribute("size","30");step3TB.setAttribute("id","resume_mobile");step3TB.value=jsonData.listings.listing[0].Mobile;td33.appendChild(step3TB);tr3.appendChild(td33);var td34=document.createElement("td");td34.setAttribute("align","left");td34.setAttribute("vAlign","middle");td34.className="myAdsEditDesp";var step3Desp=document.createTextNode("(Enter your mobile number)");td34.appendChild(step3Desp);tr3.appendChild(td34);tbody1.appendChild(tr3);var tr3=document.createElement("tr");var td31=document.createElement("td");td31.setAttribute("align","left");td31.setAttribute("vAlign","middle");td31.className="fieldNames";StpNum++;var step3Label=document.createTextNode("Step"+StpNum+" - Location");td31.appendChild(step3Label);tr3.appendChild(td31);var td32=document.createElement("td");td32.setAttribute("align","left");td32.setAttribute("vAlign","middle");td32.className="fieldNames";var colon3=document.createTextNode(":");td32.appendChild(colon3);tr3.appendChild(td32);var td33=document.createElement("td");td33.setAttribute("align","left");td33.setAttribute("vAlign","middle");var step3TB=document.createElement("input");step3TB.setAttribute("size","30");step3TB.setAttribute("id","resume_location");step3TB.value=jsonData.listings.listing[0].location1;td33.appendChild(step3TB);tr3.appendChild(td33);var td34=document.createElement("td");td34.setAttribute("align","left");td34.setAttribute("vAlign","middle");td34.className="myAdsEditDesp";var step3Desp=document.createTextNode("(Enter your preferred location for job)");td34.appendChild(step3Desp);tr3.appendChild(td34);tbody1.appendChild(tr3);var tr4=document.createElement("tr");var td41=document.createElement("td");td41.setAttribute("align","left");td41.setAttribute("vAlign","middle");td41.className="fieldNames";StpNum++;var step4Label=document.createTextNode("Step"+StpNum+" - Experience");td41.appendChild(step4Label);tr4.appendChild(td41);var td42=document.createElement("td");td42.setAttribute("align","left");td42.setAttribute("vAlign","middle");td42.className="fieldNames";var colon4=document.createTextNode(":");td42.appendChild(colon4);tr4.appendChild(td42);var td43=document.createElement("td");td43.colSpan=2;var tableInt2=document.createElement("table");tableInt2.width="100%";tableInt2.border=0;tableInt2.cellSpacing=0;tableInt2.cellPadding=0;tableInt2.setAttribute("align","center");var tbodyInt2=document.createElement("tbody");var trInt1b=document.createElement("tr");var tdInt11b=document.createElement("td");tdInt11b.setAttribute("align","left");tdInt11b.setAttribute("vAlign","middle");tdInt11b.setAttribute("width","13%");var step4DB1=document.createElement("select");step4DB1.setAttribute("id","resume_years");var dBOption=document.createElement("option");dBOption.value="Years";dBOption.text="Years";step4DB1.options.add(dBOption,0);for(i=0;i<30;i++){var dBOption=document.createElement("option");if(i<10){dBOption.value=i;dBOption.text="0"+i}else{dBOption.value=i;dBOption.text=i}if(jsonData.listings.listing[0].tot_exp_min==i){dBOption.selected=true}step4DB1.options.add(dBOption,i+1)}tdInt11b.appendChild(step4DB1);trInt1b.appendChild(tdInt11b);var tdInt12b=document.createElement("td");tdInt12b.setAttribute("align","left");tdInt12b.setAttribute("vAlign","middle");tdInt12b.setAttribute("width","22%");var step4DB2=document.createElement("select");step4DB2.setAttribute("id","resume_months");var dBOption=document.createElement("option");dBOption.value="Months";dBOption.text="Months";step4DB2.options.add(dBOption,0);for(i=0;i<13;i++){var dBOption=document.createElement("option");if(i<10){dBOption.value=i;dBOption.text="0"+i}else{dBOption.value=i;dBOption.text=i}if(jsonData.listings.listing[0].tot_exp_max==i){dBOption.selected=true}step4DB2.options.add(dBOption,i+1)}tdInt12b.appendChild(step4DB2);trInt1b.appendChild(tdInt12b);var tdInt13b=document.createElement("td");tdInt13b.setAttribute("align","left");tdInt13b.setAttribute("vAlign","top");tdInt13b.className="myAdsEditDesp";var step4Desp=document.createTextNode("(Select your total work experience)");tdInt13b.appendChild(step4Desp);trInt1b.appendChild(tdInt13b);tbodyInt2.appendChild(trInt1b);tableInt2.appendChild(tbodyInt2);td43.appendChild(tableInt2);tr4.appendChild(td43);tbody1.appendChild(tr4);var tr5=document.createElement("tr");var td51=document.createElement("td");td51.setAttribute("align","left");td51.setAttribute("vAlign","middle");td51.className="fieldNames";StpNum++;var step5Label=document.createTextNode("Step"+StpNum+" - Salary");td51.appendChild(step5Label);tr5.appendChild(td51);var td52=document.createElement("td");td52.setAttribute("align","left");td52.setAttribute("vAlign","middle");td52.className="fieldNames";var colon5=document.createTextNode(":");td52.appendChild(colon5);tr5.appendChild(td52);var td53=document.createElement("td");td53.colSpan=2;var tableInt3=document.createElement("table");tableInt3.width="100%";tableInt3.border=0;tableInt3.cellSpacing=0;tableInt3.cellPadding=0;tableInt3.setAttribute("align","center");var tbodyInt3=document.createElement("tbody");var trInt1c=document.createElement("tr");var tdInt11c=document.createElement("td");tdInt11c.setAttribute("align","left");tdInt11c.setAttribute("vAlign","middle");tdInt11c.setAttribute("width","14%");var step5DB1=document.createElement("select");step5DB1.setAttribute("id","resume_lacs");var dBOption=document.createElement("option");dBOption.value="In Lacs";dBOption.text="In Lacs";step5DB1.options.add(dBOption,0);for(i=0;i<100;i++){var dBOption=document.createElement("option");if(i<10){dBOption.value=i;dBOption.text="0"+i}else{dBOption.value=i;dBOption.text=i}if(jsonData.listings.listing[0].sal_lacs==i){dBOption.selected=true}step5DB1.options.add(dBOption,i+1)}tdInt11c.appendChild(step5DB1);trInt1c.appendChild(tdInt11c);var tdInt12c=document.createElement("td");tdInt12c.setAttribute("align","left");tdInt12c.setAttribute("vAlign","middle");tdInt12c.setAttribute("width","21%");var step5DB2=document.createElement("select");step5DB2.setAttribute("id","resume_thousands");var dBOption=document.createElement("option");dBOption.value="In Thousands";dBOption.text="In Thousands";step5DB2.options.add(dBOption,0);for(i=0;i<100;i++){var dBOption=document.createElement("option");if(i<10){dBOption.value=i;dBOption.text="0"+i}else{dBOption.value=i;dBOption.text=i}if(jsonData.listings.listing[0].sal_K==i){dBOption.selected=true}step5DB2.options.add(dBOption,i+1)}tdInt12c.appendChild(step5DB2);trInt1c.appendChild(tdInt12c);var tdInt13c=document.createElement("td");tdInt13c.setAttribute("align","left");tdInt13c.setAttribute("vAlign","top");tdInt13c.className="myAdsEditDesp";var step5Desp=document.createTextNode("(Select your annual salary)");tdInt13c.appendChild(step5Desp);trInt1c.appendChild(tdInt13c);tbodyInt3.appendChild(trInt1c);tableInt3.appendChild(tbodyInt3);td53.appendChild(tableInt3);tr5.appendChild(td53);tbody1.appendChild(tr5);var tr6=document.createElement("tr");var td61=document.createElement("td");td61.setAttribute("align","left");td61.setAttribute("vAlign","middle");td61.className="fieldNames";StpNum++;var step6Label=document.createTextNode("Step"+StpNum+" - Functional Area");td61.appendChild(step6Label);tr6.appendChild(td61);var td62=document.createElement("td");td62.setAttribute("align","left");td62.setAttribute("vAlign","middle");td62.className="fieldNames";var colon6=document.createTextNode(":");td62.appendChild(colon6);tr6.appendChild(td62);var td63=document.createElement("td");td63.colSpan=2;var tableInt2=document.createElement("table");tableInt2.width="100%";tableInt2.border=0;tableInt2.cellSpacing=0;tableInt2.cellPadding=0;tableInt2.setAttribute("align","center");var tbodyInt2=document.createElement("tbody");var trInt1b=document.createElement("tr");var tdInt11b=document.createElement("td");tdInt11b.setAttribute("align","left");tdInt11b.setAttribute("vAlign","middle");tdInt11b.setAttribute("width","26%");var functionalArea=new Array("Accounts / Finance / Tax / CS / Audit","Agent","Architecture / Interior Design","Banking / Insurance","Content / Journalism","Corporate Planning / Consulting","Engineering Design / R&D","Export / Import / Merchandising","Fashion / Garments / Merchandising","Guards / Security Services","Hotels / Restaurants","HR / Administration / IR","IT Software - Client Server","IT Software - Mainframe","IT Software - Middleware","IT Software - Mobile","IT Software - Other","IT Software - System Programming","IT Software - Telecom Software","IT Software- Application Programming / Maintenance","IT Software- DBA / Datawarehousing","IT Software- E-Commerce / Internet Technologies","IT Software- Embedded / EDA / VLSI / ASIC / Chip Design","IT Software- ERP / CRM","IT Software- Network Administration / Security","IT Software- QA & Testing","IT Software- Systems / EDP / MIS","IT- Hardware / Telecom / Technical Staff / Support","ITES / BPO / KPO / Customer Service / Operations","Legal","Marketing / Advertising / MR / PR","Packaging","Pharma / Biotech / Healthcare / Medical / R&D","Production / Maintenance / Quality","Purchase / Logistics / Supply Chain","Sales / BD","Secretary / Front Office / Data Entry","Self Employed / Consultants","Site Engineering / Project Management","Teaching / Education","Ticketing / Travel / Airlines","Top Management","TV / Films / Production","Web / Graphic Design / Visualiser","Other");var len=functionalArea.length;functionalArea.sort();var step6DB1=document.createElement("select");step6DB1.setAttribute("id","resume_functional_area");step6DB1.style.width="12em";var dBOption1=document.createElement("option");dBOption1.value="Functional Area";dBOption1.text="Functional Area";step6DB1.options.add(dBOption1,0);for(i=0;i<len;i++){var dBOption2=document.createElement("option");dBOption2.value=functionalArea[i];dBOption2.text=functionalArea[i];if(jsonData.listings.listing[0].Functional_area==functionalArea[i]){dBOption2.selected=true}step6DB1.options.add(dBOption2,i+1)}tdInt11b.appendChild(step6DB1);trInt1b.appendChild(tdInt11b);var tdInt12b=document.createElement("td");tdInt12b.setAttribute("align","left");tdInt12b.setAttribute("vAlign","middle");tdInt12b.setAttribute("width","16%");var industry=new Array("Accounting/Taxation/Finance","Advertising/PR/MR/Events","Agriculture/Dairy","Architecture/Interior Designing","Auto/Auto Ancillary","Banking/Financial Services/Broking","BPO/ITES/CRM/Transcription","Chemicals/PetroChemical/Plastic/Rubber","Construction/Engineering/Cement/Metals","Consumer Durables","Courier/Transportation/Freight","Defence/Government","Education/Teaching/Training","Export/Import","Fertilizers/Pesticides","FMCG/Foods/Beverage","Fresher/Trainee","Gems & Jewellery","Hotels/Restaurants/Airlines/Travel","Industrial Products/Heavy Machinery","Insurance","IT-Software/Software Services","IT-Hardware & Networking","Telcom/ISP","Legal","Media/Dotcom/Entertainment","Medical/Healthcare/Hospital","NGO/Social Services","Office Equipment/Automation","Oil and Gas/Power/Infrastructure/Energy","Paper","Pharma/Biotech/Clinical Research","Printing/Packaging","Real Estate/Property","Recruitment/Employment Firm","Retailing","Security/Law Enforcement","Semiconductors/Electronics","Shipping/Marine","Textiles/Garments/Accessories","Tyres","Other");var len=industry.length;industry.sort();var step6DB2=document.createElement("select");step6DB2.setAttribute("id","resume_industry");step6DB2.style.width="12em";var dBOption1=document.createElement("option");dBOption1.value="Industry";dBOption1.text="Industry";step6DB2.options.add(dBOption1,0);for(i=0;i<len;i++){var dBOption2=document.createElement("option");dBOption2.value=industry[i];dBOption2.text=industry[i];if(jsonData.listings.listing[0].industry==industry[i]){dBOption2.selected=true}step6DB2.options.add(dBOption2,i+1)}tdInt12b.appendChild(step6DB2);trInt1b.appendChild(tdInt12b);var tdInt13b=document.createElement("td");tdInt13b.setAttribute("align","left");tdInt13b.setAttribute("vAlign","top");tdInt13b.className="myAdsEditDesp";var step4Desp=document.createTextNode("(Select your Functional Area & Industry)");tdInt13b.appendChild(step4Desp);trInt1b.appendChild(tdInt13b);tbodyInt2.appendChild(trInt1b);tableInt2.appendChild(tbodyInt2);td63.appendChild(tableInt2);tr6.appendChild(td63);tbody1.appendChild(tr6);var tr7=document.createElement("tr");var td11=document.createElement("td");td11.setAttribute("align","left");td11.setAttribute("vAlign","middle");td11.setAttribute("width","23%");td11.className="fieldNames";StpNum++;var step1Label=document.createTextNode("Step"+StpNum+" - Key Skills");td11.appendChild(step1Label);tr7.appendChild(td11);var td12=document.createElement("td");td12.setAttribute("align","left");td12.setAttribute("vAlign","middle");td12.setAttribute("width","1%");td12.className="fieldNames";var colon1=document.createTextNode(":");td12.appendChild(colon1);tr7.appendChild(td12);var td13=document.createElement("td");td13.colSpan=2;var tableInt1=document.createElement("table");tableInt1.width="100%";tableInt1.border=0;tableInt1.cellSpacing=0;tableInt1.cellPadding=0;tableInt1.setAttribute("align","center");var tbodyInt1=document.createElement("tbody");var trInt1a=document.createElement("tr");var tdInt11a=document.createElement("td");tdInt11a.setAttribute("align","left");tdInt11a.setAttribute("vAlign","middle");tdInt11a.setAttribute("width","62%");var step1TA=document.createElement("textArea");step1TA.setAttribute("rows","3");step1TA.setAttribute("cols","55");step1TA.setAttribute("id","resume_skills");step1TA.value=jsonData.listings.listing[0].key_skill;tdInt11a.appendChild(step1TA);trInt1a.appendChild(tdInt11a);var tdInt12a=document.createElement("td");tdInt12a.setAttribute("align","left");tdInt12a.setAttribute("vAlign","middle");tdInt12a.className="myAdsEditDesp";var step1Desp=document.createTextNode("(Enter you Key Skills)");tdInt12a.appendChild(step1Desp);trInt1a.appendChild(tdInt12a);tbodyInt1.appendChild(trInt1a);tableInt1.appendChild(tbodyInt1);td13.appendChild(tableInt1);tr7.appendChild(td13);tbody1.appendChild(tr7);var tr8=document.createElement("tr");var td81=document.createElement("td");td81.setAttribute("align","left");td81.setAttribute("vAlign","middle");td81.setAttribute("width","23%");td81.className="fieldNames";StpNum++;var step1Label=document.createTextNode("Step"+StpNum+" - Resume Title");td81.appendChild(step1Label);tr8.appendChild(td81);var td82=document.createElement("td");td82.setAttribute("align","left");td82.setAttribute("vAlign","middle");td82.setAttribute("width","1%");td82.className="fieldNames";var colon8=document.createTextNode(":");td82.appendChild(colon8);tr8.appendChild(td82);var td83=document.createElement("td");td83.setAttribute("align","left");td83.setAttribute("vAlign","middle");td83.setAttribute("width","25%");var step8TB=document.createElement("input");step8TB.setAttribute("size","30");step8TB.setAttribute("id","resume_title");step8TB.value=jsonData.listings.listing[0].resume_title;td83.appendChild(step8TB);tr8.appendChild(td83);var td84=document.createElement("td");td84.setAttribute("align","left");td84.setAttribute("vAlign","middle");td84.className="myAdsEditDesp";var step8Desp=document.createTextNode("(Enter your Resume Title)");td84.appendChild(step8Desp);tr8.appendChild(td84);tbody1.appendChild(tr8);var tr9=document.createElement("tr");var td91=document.createElement("td");td91.setAttribute("align","left");td91.setAttribute("vAlign","middle");td91.className="fieldNames";StpNum++;var step9Label=document.createTextNode("Step"+StpNum+"  - Qualification");td91.appendChild(step9Label);tr9.appendChild(td91);var td92=document.createElement("td");td92.setAttribute("align","left");td92.setAttribute("vAlign","middle");td92.className="fieldNames";var colon9=document.createTextNode(":");td92.appendChild(colon9);tr9.appendChild(td92);var td93=document.createElement("td");td93.colSpan=2;var tableInt5=document.createElement("table");tableInt5.width="100%";tableInt5.border=0;tableInt5.cellSpacing=0;tableInt5.cellPadding=0;tableInt5.setAttribute("align","center");var tbodyInt5=document.createElement("tbody");var trInt1e=document.createElement("tr");var tdInt11e=document.createElement("td");tdInt11e.setAttribute("align","left");tdInt11e.setAttribute("vAlign","middle");tdInt11e.setAttribute("width","16%");var graduate=new Array("Not Pursuing Graduation","B.A","B.Arch","BCA","B.B.A","B.Com","B.Ed","BDS","BHM","B.Pharma","B.Sc","B.Tech/B.E.","LLB","MBBS","Diploma","BVSC","Other");var len=graduate.length;graduate.sort();var step8DB1=document.createElement("select");step8DB1.setAttribute("id","resume_graduate");step8DB1.style.width="10em";var dBOption1=document.createElement("option");dBOption1.value="Graduate";dBOption1.text="Graduate";step8DB1.options.add(dBOption1,0);for(i=0;i<len;i++){var dBOption2=document.createElement("option");dBOption2.value=graduate[i];dBOption2.text=graduate[i];if(graduate[i]==jsonData.listings.listing[0].ug){dBOption2.selected=true}step8DB1.options.add(dBOption2,i+1)}tdInt11e.appendChild(step8DB1);trInt1e.appendChild(tdInt11e);var tdInt12e=document.createElement("td");tdInt12e.setAttribute("align","left");tdInt12e.setAttribute("vAlign","middle");tdInt12e.setAttribute("width","21%");var postGraduate=new Array("Not Pursuing Post Graduation","CA","CS","ICWA","Integrated PG","LLM","M.A","M.Arch","M.Com","M.Ed","M.Pharma","M.Sc","M.Tech","MBA/PGDM","MCA","MS","PG Diploma","MVSC","MCM","Other");var len=postGraduate.length;postGraduate.sort();var step8DB2=document.createElement("select");step8DB2.setAttribute("id","resume_postgraduate");step8DB2.style.width="10em";var dBOption1=document.createElement("option");dBOption1.value="Post Graduate";dBOption1.text="Post Graduate";step8DB2.options.add(dBOption1,0);for(i=0;i<len;i++){var dBOption2=document.createElement("option");dBOption2.value=postGraduate[i];dBOption2.text=postGraduate[i];if(postGraduate[i]==jsonData.listings.listing[0].pg){dBOption2.selected=true}step8DB2.options.add(dBOption2,i+1)}tdInt12e.appendChild(step8DB2);trInt1e.appendChild(tdInt12e);var tdInt13e=document.createElement("td");tdInt13e.setAttribute("align","left");tdInt13e.setAttribute("vAlign","middle");tdInt13e.setAttribute("width","17%");var ppostGraduate=new Array("Not Pursuing Doctorate","Ph.D/Doctorate","MPHIL","Other");var len=ppostGraduate.length;ppostGraduate.sort();var step8DB2=document.createElement("select");step8DB2.setAttribute("id","resume_doctorate");step8DB2.style.width="10em";var dBOption1=document.createElement("option");dBOption1.value="Doctorate";dBOption1.text="Doctorate";step8DB2.options.add(dBOption1,0);for(i=0;i<len;i++){var dBOption3=document.createElement("option");dBOption3.value=ppostGraduate[i];dBOption3.text=ppostGraduate[i];if(ppostGraduate[i]==jsonData.listings.listing[0].ppg){dBOption3.selected=true}step8DB2.options.add(dBOption3,i+1)}tdInt13e.appendChild(step8DB2);trInt1e.appendChild(tdInt13e);var tdInt14e=document.createElement("td");tdInt14e.setAttribute("align","left");tdInt14e.setAttribute("vAlign","top");tdInt14e.className="myAdsEditDesp";var step8Desp=document.createTextNode("(Select your qualifications)");tdInt14e.appendChild(step8Desp);trInt1e.appendChild(tdInt14e);tbodyInt5.appendChild(trInt1e);tableInt5.appendChild(tbodyInt5);td93.appendChild(tableInt5);tr9.appendChild(td93);tbody1.appendChild(tr9);var tr10=document.createElement("tr");var td11=document.createElement("td");td11.setAttribute("align","left");td11.setAttribute("vAlign","middle");td11.setAttribute("width","23%");td11.className="fieldNames";StpNum++;var step1Label=document.createTextNode("Step"+StpNum+" - Upload Resume");td11.appendChild(step1Label);tr10.appendChild(td11);var td12=document.createElement("td");td12.setAttribute("align","left");td12.setAttribute("vAlign","middle");td12.setAttribute("width","1%");td12.className="fieldNames";var colon1=document.createTextNode(":");td12.appendChild(colon1);tr10.appendChild(td12);var td13=document.createElement("td");td13.colSpan=2;var tableInt1=document.createElement("table");tableInt1.width="100%";tableInt1.border=0;tableInt1.cellSpacing=0;tableInt1.cellPadding=0;tableInt1.setAttribute("align","center");var tbodyInt1=document.createElement("tbody");var trInt1a=document.createElement("tr");var tdInt11a=document.createElement("td");tdInt11a.setAttribute("align","left");tdInt11a.setAttribute("vAlign","middle");tdInt11a.setAttribute("width","45%");tdInt11a.setAttribute("id","Td_UploadFile");var browseBox=document.createElement("input");browseBox.setAttribute("type","file");browseBox.setAttribute("id","file");browseBox.setAttribute("name","userfile");tdInt11a.appendChild(browseBox);var space=document.createTextNode(" ");tdInt11a.appendChild(space);var nextButton=document.createElement("input");nextButton.setAttribute("type","submit");nextButton.setAttribute("value","Upload Resume");nextButton.setAttribute("id","upload_button");nextButton.setAttribute("value","Upload");nextButton.onclick=Function();trInt1a.appendChild(tdInt11a);var tdInt12aa=document.createElement("td");tdInt12aa.setAttribute("align","left");tdInt12aa.setAttribute("vAlign","middle");tdInt12aa.setAttribute("id","Td_UploadButton");tdInt12aa.appendChild(nextButton);trInt1a.appendChild(tdInt12aa);var tdInt12a=document.createElement("td");tdInt12a.setAttribute("align","left");tdInt12a.setAttribute("vAlign","middle");tdInt12a.className="myAdsEditDesp";var step1Desp=document.createTextNode("(Upload your Word format resume)");tdInt12a.appendChild(step1Desp);trInt1a.appendChild(tdInt12a);tbodyInt1.appendChild(trInt1a);tableInt1.appendChild(tbodyInt1);td13.appendChild(tableInt1);tr10.appendChild(td13);tbody1.appendChild(tr10);var tr11=document.createElement("tr");var td111=document.createElement("td");td111.setAttribute("align","right");td111.setAttribute("vAlign","middle");td111.colSpan=4;var space=document.createTextNode(" ");td111.appendChild(space);var nextButton=document.createElement("input");nextButton.setAttribute("type","button");nextButton.setAttribute("value","Next >");nextButton.onclick=Function("validateResumeUpdate()");td111.appendChild(nextButton);tr11.appendChild(td111);tbody1.appendChild(tr11);table1.appendChild(tbody1);tdMain21.appendChild(table1);trMain2.appendChild(tdMain21);tbodyMain.appendChild(trMain2);tableMain.appendChild(tbodyMain);write_review.appendChild(tableMain);makeAddress();testT()}}}var Functional_area;var indus;var ug;var pg;var ppg;var doc;var tot_exp_min;var tot_exp_max;var tot_sal_lacs;var tot_sal_K;function updateCVdetails(){if(request.readyState==4){if(request.status==200){var jsonData=eval("("+request.responseText+")");for(var i=0;i<jsonData.listings.listing.length;i++){Functional_area=jsonData.listings.listing[i].Functional_area;indus=jsonData.listings.listing[i].industry;ug=jsonData.listings.listing[i].ug;pg=jsonData.listings.listing[i].pg;ppg=jsonData.listings.listing[i].ppg;doc=jsonData.listings.listing[i].doc;tot_exp_min=jsonData.listings.listing[i].tot_exp_min;tot_exp_max=jsonData.listings.listing[i].tot_exp_max;tot_sal_lacs=jsonData.listings.listing[i].tot_sal_lacs;tot_sal_K=jsonData.listings.listing[i].tot_sal_K;document.getElementById("place_name").innerHTML=jsonData.listings.listing[i].name;document.getElementById("place_mail").innerHTML=jsonData.listings.listing[i].email;document.getElementById("place_location").innerHTML=jsonData.listings.listing[i].location1;if(innerHTML=jsonData.listings.listing[i].Mobile!=0){document.getElementById("place_mobile").innerHTML=jsonData.listings.listing[i].Mobile}document.getElementById("place_exp").innerHTML=jsonData.listings.listing[i].total_work_ex;document.getElementById("place_sal").innerHTML=jsonData.listings.listing[i].salary;if(jsonData.listings.listing[i].Functional_area!="-1"){document.getElementById("place_func_ind").innerHTML=jsonData.listings.listing[i].Functional_area}else{if(jsonData.listings.listing[i].industry!="-1"){document.getElementById("place_func_ind").innerHTML=jsonData.listings.listing[i].industry}else{if(jsonData.listings.listing[i].Functional_area!="-1"&&jsonData.listings.listing[i].industry!="-1 "){document.getElementById("place_func_ind").innerHTML=jsonData.listings.listing[i].Functional_area+" "+jsonData.listings.listing[i].industry}}}document.getElementById("place_skills").innerHTML=jsonData.listings.listing[i].key_skill;document.getElementById("place_res_title").innerHTML=jsonData.listings.listing[i].resume_title;if(jsonData.listings.listing[i].ug!="-1"){document.getElementById("place_qual").innerHTML=jsonData.listings.listing[i].ug}else{if(jsonData.listings.listing[i].pg!="-1"){document.getElementById("place_qual").innerHTML=jsonData.listings.listing[i].ug+jsonData.listings.listing[i].pg}else{if(jsonData.listings.listing[i].ppg!="-1"){document.getElementById("place_qual").innerHTML=jsonData.listings.listing[i].ug+jsonData.listings.listing[i].pg+jsonData.listings.listing[i].ppg}else{if(jsonData.listings.listing[i].doc!="-1"){document.getElementById("place_qual").innerHTML=jsonData.listings.listing[i].ug+jsonData.listings.listing[i].pg+jsonData.listings.listing[i].ppg+jsonData.listings.listing[i].doc}}}}}}}}function applied_Fr_job(){var A="uploading/applyjobs.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateapply;url1="lsid="+escape(jobs_clid);request.send(url1)}function updateapply(){if(request.readyState==4){if(request.status==200){closeAllModalWindows();if(request.responseText==1){alert("Your have successfully apllied for the job")}else{alert("Sorry you could not apply for this job")}}}}function call_post_resume(){global_name=document.getElementById("place_name").innerHTML;global_email=document.getElementById("place_mail").innerHTML;global_mobile=document.getElementById("place_mobile").innerHTML;var M=document.getElementById("resume_city").options.length;for(var J=0;J<M;J++){if(document.getElementById("place_location").innerHTML==document.getElementById("resume_city").options[J].value){global_location=J}}var L=document.getElementById("tot_exp_yr").options.length;for(var I=0;I<L;I++){if(document.getElementById("place_exp").innerHTML==document.getElementById("tot_exp_yr").options[I].value){global_tot_exp_yr=I}}var L=document.getElementById("tot_exp_yr").options.length;for(var H=0;H<L;H++){if(tot_exp_min==document.getElementById("tot_exp_yr").options[H].value){global_tot_exp_yr=H}}var B=document.getElementById("tot_exp_mnth").options.length;for(var G=0;G<B;G++){if(B==document.getElementById("tot_exp_mnth").options[G].value){global_tot_exp_mnth=G}}var K=document.getElementById("ctclacs").options.length;for(var F=0;F<K;F++){if(tot_sal_lacs==document.getElementById("ctclacs").options[F].value){global_ctc_lacs=F}}var O=document.getElementById("ctcthousands").options.length;for(var E=0;E<O;E++){if(tot_sal_K==document.getElementById("ctcthousands").options[E].value){global_ctc_K=E}}var P=document.getElementById("farea").options.length;for(var D=0;D<P;D++){if(Functional_area==document.getElementById("farea").options[D].value){global_func_area=D}}var N=document.getElementById("industry").options.length;for(var D=0;D<N;D++){if(indus==document.getElementById("industry").options[D].value){global_industry_index=D}}global_resume_title=document.getElementById("place_res_title").innerHTML;global_key_skills=document.getElementById("place_skills").innerHTML;var C=document.getElementById("ugcourse").options.length;for(var D=0;D<C;D++){if(ug==document.getElementById("ugcourse").options[D].value){global_ug_course=D}}var Q=document.getElementById("pgcourse").options.length;for(var D=0;D<Q;D++){if(pg==document.getElementById("pgcourse").options[D].value){global_pg_course=D}}var A=document.getElementById("ppgcourse").options.length;for(var D=0;D<A;D++){if(ppg==document.getElementById("ppgcourse").options[D].value){global_doc=D}}subCategory("resume");set_jobs_onback2()}function OpenFeaturesPage(B,A){window.open("../SnatchKing/Features/AEC_Features.php?pid="+B+"&subcategory="+A)}function AddImages(B){if(document.getElementById(B)){var D=document.getElementById("file");var C=document.getElementById(B);var E=0;if(C.options.length<5){var A=D.value;if(A.lastIndexOf("\\")!=-1){var E=A.lastIndexOf("\\");E++}else{if(A.lastIndexOf("/")!=-1){var E=A.lastIndexOf("/");E++}}var F=A.length;var G=A.substring(E,F);var H=A.lastIndexOf(".");H++;var I=A.substring(H,F);if(I=="jpg"||I=="gif"||I=="jpeg"||I=="JPEG"||I=="doc"){WaitForUploading();return true}else{alert("Enter JPG or JPEG or GIF Image");return false}}if(C.options.length==5){D.disabled=true;alert("only five r allowed")}}else{WaitForUploading()}}function sleep(){for(var A=0;A<10000000;A++){}}function WaitForUploading(){market_remove("Td_UploadButton");var C=document.getElementById("Td_UploadButton");var B=document.createElement("img");B.setAttribute("height","50px");B.setAttribute("width","50px");B.setAttribute("src","images/loader.gif");var A=document.createElement("font");A.className="style9";A.appendChild(document.createTextNode("Uploading.."));C.appendChild(A);C.appendChild(B)}function postImage(){sleep();var A="uploading/check_upload.php";request.open("GET",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateImage;request.send(null)}function updateImage(E,A){if(E=="null"||A=="null"){alert("Uploading Failed!!!!. Try Again.")}else{var B=document.getElementById("new_img_select").length;var D=document.getElementById("new_img_select");var C=document.createElement("OPTION");C.value=A;C.text=E;D.options.add(C,B)}market_remove("Td_UploadFile");market_remove("Td_UploadButton");New_create_file("Td_UploadFile");New_create_uploadButton("Td_UploadButton")}function New_create_file(C){var A=document.getElementById(C);var B=document.createElement("input");B.type="file";B.id="file";B.name="userfile";A.appendChild(B)}function New_create_uploadButton(C){var A=document.getElementById(C);var B=document.createElement("input");B.type="submit";B.id="upload_button";B.name="submit";B.value="Upload";A.appendChild(B);A.style.visibility="visible"}function removeImageSelected(){var D="new_img_select";var A=document.getElementById("file");var C=document.getElementById(D);A.disabled=false;var E=C.options[C.selectedIndex].index;var B=C.options[C.selectedIndex].text;C.remove(E)}function removeImage(C,I){var H=C;var D=document.getElementById("file");var A=document.getElementById(C);D.disabled=false;var E=A.options[A.selectedIndex].index;var F=A.options[A.selectedIndex].value;var B="uploading/remove_img.php";request.open("POST",B,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var G="img="+escape(F)+"&who="+escape(I)+"&clid="+escape(clid);request.onreadystatechange=updateRemoveImage;request.send(G)}function updateRemoveImage(){if(request.readyState==4){if(request.status==200){var A=request.responseText;if(A==1){removeImageSelected()}}}}function NewLogin(D){windowIsActive=null;var u=getPageSize();var r=document.getElementById("overlay");r.style.height=(u[1]+"px");r.style.display="block";r.className="overlay_alphacube";var J=document.getElementById("overlayiframe");J.style.height=(u[1]+"px");J.style.display="block";market_remove("email_inner_div");document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";document.getElementById("wait").style.display="none";document.getElementById("email_inner_div").style.width="380px";document.getElementById("email_outer_div").style.height="170px";document.getElementById("email_outer_div").style.width="400px";document.getElementById("email_outer_div").style.paddingTop="0px";var T=document.getElementById("email_inner_div");T.setAttribute("align","center");T.style.background="#ffffff";var M=document.createElement("table");M.width="100%";M.border=0;M.cellSpacing=0;M.cellPadding=0;M.setAttribute("align","center");var e=document.createElement("tbody");var L=document.createElement("tr");var O=document.createElement("td");var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("id","validation_login_info");O.className="myAdsValidation";var p=document.createTextNode("Login Here");L.appendChild(O);var N=document.createElement("td");N.setAttribute("align","right");N.setAttribute("vAlign","middle");var c=document.createElement("img");c.setAttribute("src","images/close.jpg");c.onclick=Function("closeAcountWindow()");c.setAttribute("height","16");c.setAttribute("width","16");e.appendChild(L);var K=document.createElement("tr");var B=document.createElement("td");B.colSpan=2;B.className="windowTitle";var U=document.createElement("table");U.width="100%";U.border=0;U.cellSpacing=0;U.cellPadding=0;U.setAttribute("align","center");var A=document.createElement("tbody");var l=document.createElement("tr");var S=document.createElement("td");S.setAttribute("align","center");S.setAttribute("vAlign","middle");S.setAttribute("height","30px");S.className="postAdsText";var E=document.createTextNode("Username");S.appendChild(E);l.appendChild(S);var R=document.createElement("td");R.setAttribute("align","right");R.setAttribute("vAlign","middle");R.setAttribute("width","1%");R.className="postAdsText";var W=document.createTextNode(":");R.appendChild(W);l.appendChild(R);var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");var b=document.createElement("input");b.setAttribute("size","30");b.className="user";b.setAttribute("id","market_post_email");Q.appendChild(b);l.appendChild(Q);A.appendChild(l);var h=document.createElement("tr");var H=document.createElement("td");H.setAttribute("align","center");H.setAttribute("vAlign","middle");H.setAttribute("height","30px");H.className="postAdsText";var E=document.createTextNode("Password");H.appendChild(E);h.appendChild(H);var G=document.createElement("td");G.setAttribute("align","center");G.setAttribute("vAlign","middle");G.className="postAdsText";var W=document.createTextNode(":");G.appendChild(W);h.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");var X=document.createElement("input");X.setAttribute("type","password");X.setAttribute("size","30");X.className="pwd";X.setAttribute("id","login_password");X.onkeydown=function(v){var f;if(!v){var v=window.event}if(v.keyCode){f=v.keyCode}else{if(v.which){f=v.which}}if(f==13){NewLoginPost(D)}};F.appendChild(X);h.appendChild(F);A.appendChild(h);var g=document.createElement("tr");var o=document.createElement("td");o.setAttribute("align","right");o.setAttribute("vAlign","middle");o.setAttribute("height","50px");o.className="bold_green";var C=document.createElement("a");var s=document.createElement("font");s.className="set_hand";C.className="bold_green;";C.onclick=function(){closeMarketWindow();document.getElementById("myMarketPlace").style.display="none";document.getElementById("myaccount_here").style.display="block";check_myaccount("myaccount/myaccount.php?sel_menu=0&from=forgot")};var V=document.createTextNode(" Forgot Password ");s.appendChild(V);C.appendChild(s);var G=document.createElement("td");G.setAttribute("align","center");G.setAttribute("vAlign","middle");G.className="postAdsText";var W=document.createTextNode("  ");G.appendChild(W);var m=document.createElement("td");m.colSpan=3;m.setAttribute("align","left");m.setAttribute("vAlign","middle");m.className="bold_green";var Y=document.createElement("a");Y.setAttribute("href",'javascript:NewUserRegister("'+D+'")');var V=document.createTextNode(" Register Now ");Y.appendChild(V);o.appendChild(Y);g.appendChild(o);g.appendChild(G);m.style.paddingLeft="15px";m.appendChild(C);g.appendChild(m);A.appendChild(g);var d=document.createElement("tr");var I=document.createElement("td");I.setAttribute("align","center");I.setAttribute("vAlign","middle");I.colSpan=4;var Z=document.createElement("input");Z.setAttribute("type","button");Z.setAttribute("value","Cancel");Z.onclick=Function("closeMarketWindow()");I.appendChild(Z);var q=document.createTextNode(" ");I.appendChild(q);var P=document.createElement("input");P.setAttribute("type","button");P.setAttribute("value","Login");P.onclick=Function('NewLoginPost("'+D+'")');I.appendChild(P);d.appendChild(I);var q=document.createTextNode(" ");I.appendChild(q);A.appendChild(d);U.appendChild(A);B.appendChild(U);K.appendChild(B);e.appendChild(K);M.appendChild(e);T.appendChild(M);testT();document.getElementById("email_inner_div").style.display="block";document.getElementById("email_outer_div").style.display="block";document.getElementById("wait").style.display="none"}function NewLoginPost(G){var I=new Array();if(G=="Login"){I[0]="Login"}else{if(G=="Account"){I[0]="Account"}else{I=G.split(":");if(I[0]=="PostAd"){}}}var D=document.getElementById("validation_login_info");market_remove("validation_login_info");var J=document.getElementById("market_post_email");var F=document.getElementById("login_password");var E=J.value;var H=F.value;if(E==""){var B=document.createTextNode("Please Enter your Username");D.appendChild(B)}else{if(H==""){var B=document.createTextNode("Please Enter your Password");D.appendChild(B)}else{var A="uploading/login.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var C="login="+escape(E)+"&password="+escape(H);request1.onreadystatechange=request1.onreadystatechange=function(){if(request1.readyState==4){if(request1.status==200){var L=request1.responseText;if(L=="Invalid Password"){var N=document.createTextNode("Invalid Password");D.appendChild(N);hide_loader()}else{if(L=="Username Does Not Exists"){var N=document.createTextNode("Username Does Not Exists");D.appendChild(N);hide_loader()}else{var K=L.split(":");userLoggedIn(K[0],K[1],K[2]);if(I[0]=="Reply"){var M="uploading/post_reply.php";request1.open("POST",M,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateNewPost_Reply;C="clid="+escape(I[1]);request1.send(C)}else{if(I[0]=="Post Ad"){}else{if(I[0]=="Login"){closeMarketWindow();hide_loader();Message_Window("You have been Logged In")}else{if(I[0]=="Account"){closeMarketWindow();getMyaccount()}else{if(I[0]=="PostAd"){NewPostAds(I[1],I[2])}else{if(I[0]=="Shortlist"){save_shortlist(I[1])}else{alert("Error= "+I[0])}}}}}}}}}}};show_loader();request1.send(C)}}}function updateNewPost_Reply(){if(request1.readyState==4){if(request1.status==200){if(request1.responseText==1||request1.responseText=="Reply Sent"){closeMarketWindow();Message_Window("Your reply has been sent. In addition this Ad has been saved under Saved Listing, in My Account.")}else{if(request1.responseText==0){Message_Window("Sorry! your Replys could not be posted.PLease, try again")}}}}}function updateNewPost_Reply_WithoutLogin(){if(request1.readyState==4){if(request1.status==200){if(request1.responseText==1||request1.responseText=="Reply Sent"){}else{if(request1.responseText==0){}}}}}function updateNewLoginPost(){if(request1.readyState==4){if(request1.status==200){var A=request1.responseText;clid=A.substring(2);if(A=="11"+clid){}else{if(A==110){}else{if(A==112){}else{if(A==100){if(jobs==1){jobs=0}}else{if(A==0){}}}}}}}}function NewUserRegister(E){windowIsActive=null;var z=getPageSize();var x=document.getElementById("overlay");x.style.height=(z[1]+"px");x.style.display="block";x.className="overlay_alphacube";var N=document.getElementById("overlayiframe");N.style.height=(z[1]+"px");N.style.display="block";market_remove("email_inner_div");document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";document.getElementById("email_inner_div").style.display="block";document.getElementById("email_outer_div").style.display="block";document.getElementById("email_inner_div").style.width="660px";document.getElementById("email_outer_div").style.height="400px";document.getElementById("email_outer_div").style.width="680px";document.getElementById("email_outer_div").style.paddingTop="0px";var Z=document.getElementById("email_inner_div");document.getElementById("email_inner_div").style.background="#ffffff";Z.setAttribute("align","center");var S=document.createElement("table");S.width="95%";S.border=0;S.cellSpacing=0;S.cellPadding=0;S.setAttribute("align","center");var r=document.createElement("tbody");var Q=document.createElement("tr");var U=document.createElement("td");U.setAttribute("align","left");U.setAttribute("vAlign","middle");U.setAttribute("id","validation_register_info");U.className="myAdsValidation";var l=document.createElement("img");l.setAttribute("src","images/close.jpg");l.onclick=Function("closeAcountWindow()");l.setAttribute("height","16");l.setAttribute("width","16");Q.appendChild(U);r.appendChild(Q);var P=document.createElement("tr");var C=document.createElement("td");C.colSpan=2;C.className="windowTitle";var d=document.createElement("table");d.width="100%";d.border=0;d.cellSpacing=0;d.cellPadding=0;d.setAttribute("align","center");var B=document.createElement("tbody");var u=document.createElement("tr");var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.setAttribute("width","23%");Y.className="fieldNames";var T=document.createTextNode("Step1 - Username");Y.appendChild(T);u.appendChild(Y);var X=document.createElement("td");X.setAttribute("align","left");X.setAttribute("vAlign","middle");X.setAttribute("width","2%");X.className="fieldNames";var q=document.createTextNode(":");X.appendChild(q);u.appendChild(X);var W=document.createElement("td");W.setAttribute("align","left");W.setAttribute("vAlign","middle");W.setAttribute("width","32%");W.className="fieldNames";var h=document.createElement("input");h.setAttribute("size","30");h.setAttribute("id","register_username");W.appendChild(h);u.appendChild(W);var V=document.createElement("td");V.setAttribute("align","left");V.setAttribute("vAlign","middle");V.className="myAdsEditDesp";var L=document.createTextNode("(Enter your prefered username)");V.appendChild(L);u.appendChild(V);B.appendChild(u);var s=document.createElement("tr");var J=document.createElement("td");J.setAttribute("align","left");J.setAttribute("vAlign","middle");J.className="fieldNames";var v=document.createTextNode("Step2 - Email");J.appendChild(v);s.appendChild(J);var I=document.createElement("td");I.setAttribute("align","left");I.setAttribute("vAlign","middle");I.className="fieldNames";var p=document.createTextNode(":");I.appendChild(p);s.appendChild(I);var H=document.createElement("td");H.setAttribute("align","left");H.setAttribute("vAlign","middle");H.className="fieldNames";var f=document.createElement("input");f.setAttribute("size","30");f.setAttribute("id","market_post_email");H.appendChild(f);s.appendChild(H);var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="myAdsEditDesp";var AB=document.createTextNode("(Enter your valid e-mail address)");G.appendChild(AB);s.appendChild(G);B.appendChild(s);var s=document.createElement("tr");var J=document.createElement("td");J.setAttribute("align","left");J.setAttribute("vAlign","middle");J.className="fieldNames";var v=document.createTextNode("Step3 - Password");J.appendChild(v);s.appendChild(J);var I=document.createElement("td");I.setAttribute("align","left");I.setAttribute("vAlign","middle");I.className="fieldNames";var p=document.createTextNode(":");I.appendChild(p);s.appendChild(I);var H=document.createElement("td");H.setAttribute("align","left");H.setAttribute("vAlign","middle");H.className="fieldNames";var f=document.createElement("input");f.setAttribute("type","password");f.setAttribute("size","30");f.setAttribute("id","register_password");H.appendChild(f);s.appendChild(H);var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="myAdsEditDesp";var AB=document.createTextNode("(Enter your password)");G.appendChild(AB);s.appendChild(G);B.appendChild(s);var s=document.createElement("tr");var J=document.createElement("td");J.setAttribute("align","left");J.setAttribute("vAlign","middle");J.className="fieldNames";var v=document.createTextNode("Step4 - Confirm");J.appendChild(v);s.appendChild(J);var I=document.createElement("td");I.setAttribute("align","left");I.setAttribute("vAlign","middle");I.className="fieldNames";var p=document.createTextNode(":");I.appendChild(p);s.appendChild(I);var H=document.createElement("td");H.setAttribute("align","left");H.setAttribute("vAlign","middle");H.className="fieldNames";var f=document.createElement("input");f.setAttribute("type","password");f.setAttribute("size","30");f.setAttribute("id","register_confirm_password");H.appendChild(f);s.appendChild(H);var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="myAdsEditDesp";var AB=document.createTextNode("(Confirm your password)");G.appendChild(AB);s.appendChild(G);B.appendChild(s);var o=document.createElement("tr");var O=document.createElement("td");O.setAttribute("align","left");O.setAttribute("vAlign","top");O.className="fieldNames";var AA=document.createTextNode("Step5 - Terms");O.appendChild(AA);o.appendChild(O);var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","top");M.className="fieldNames";var g=document.createTextNode(":");M.appendChild(g);o.appendChild(M);var K=document.createElement("td");K.colSpan=2;var c=document.createElement("table");c.width="100%";c.border=0;c.cellSpacing=0;c.cellPadding=0;c.setAttribute("align","center");var A=document.createElement("tbody");var u=document.createElement("tr");var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.setAttribute("width","370");Y.className="fieldNames";var y=document.createElement("textArea");y.setAttribute("rows","4");y.setAttribute("cols","55");y.setAttribute("id","register_terms");y.setAttribute("readonly","readonly");y.appendChild(document.createTextNode('These Terms of Use are effective as of September 1st, 2008. The Midday Classifieds service and network (collectively, " Midday Classifieds " or "the Service") are operated by Midday Infomedia Ltd. and its corporate affiliates (collectively, "us", "we" or "the Company"). By using the www.middayclassifieds.com web site (the "Web site") you signify that you have read, understand and agree to be bound by these Terms of Use ("Terms of Use" or "Agreement"). We reserve the right, at our sole discretion, to change, modify, add, or delete portions of these Terms of Use at any time without further notice. If we do this, we will post the changes to these Terms of Use on this page and will indicate at the top of this page the Terms of Use\'s effective date. Your continued use of the Service or the Web site after any such changes constitutes your acceptance of the new Terms of Use. If you do not agree to abide by these or any future Terms of Use, please do not use or access the Service or the Web site. It is your responsibility to regularly review these Terms of Use. Eligibility You must affiliated with a college or university supported by Midday Infomedia Ltd to register as a member of Midday Infomedia Ltd (a "Member") or use the Web site. Membership in the Service is void where prohibited. By using the Service or the Web site, you represent and warrant that you agree to and to abide by all of the terms and conditions of this Agreement. Midday Infomedia Ltd may terminate your Membership and/or prohibit you from using or accessing the Service or the Web site for any reason, at any time. Member Conduct You understand that the Service and the Web site are available for your personal, non-commercial use only. You represent, warrant and agree that no materials of any kind submitted through your account will violate or infringe upon the rights of any third party, including copyright, trademark, privacy, publicity or other personal or proprietary rights; or contain libelous, defamatory or otherwise unlawful material. You further agree not to harvest or collect email addresses or other contact information of Members from the Service or the Web site by electronic or other means for the purposes of sending unsolicited emails or other unsolicited communications. Additionally, you agree not to use automated scripts to collect information from the Service or the Web site or for any other purpose. You further agree that you may not use the Service or the Web site in any unlawful manner or in any other manner that could damage, disable, overburden or impair Web site. In addition, you agree not to use the Service or the Web site to: • upload, post, email, transmit or otherwise make available any content that we deem to be harmful, threatening, abusive, harassing, vulgar, obscene, hateful, or racially, ethnically or otherwise objectionable; • sell items prohibited by law • impersonate any person or entity, or falsely state or otherwise misrepresent yourself or your affiliation with any person or entity; • upload, post, email, transmit or otherwise make available any unsolicited or unauthorized advertising, promotional materials, "junk mail," "spam," "chain letters," "pyramid schemes," or any other form of solicitation; • upload, post, email, transmit or otherwise make available any material that contains software viruses or any other computer code, files or programs designed to interrupt, destroy or limit the functionality of any computer software or hardware or telecommunications equipment; • intimidate or harass another; • use or attempt to use another\'s account, service or system without authorization from the Company, or create a false identity on the Service or the Web site. Proprietary Rights in Content on the Web Site All content on the Web site, including but not limited to design, text, graphics, other files, and their selection and arrangement (the "Content"), are the proprietary property of the Company or its licensors. All rights reserved. No Content may be modified, copied, distributed, framed, reproduced, republished, downloaded, displayed, posted, transmitted, or sold in any form or by any means, in whole or in part, without the Company\'s prior written permission. You may download or print a copy of any portion of the Content solely for your personal, non-commercial use, provided that you keep all copyright or other proprietary notices intact. You may not republish Content on any Internet, Intranet or Extranet site or incorporate the information in any other database or compilation. Any other use of the Content is strictly prohibited. All trademarks, logos, trade dress and service marks on the Web site are either trademarks or registered trademarks of the Company or its licensors and may not be copied, imitated, or used, in whole or in part, without the prior written permission of the Company. Member Content Posted on the Web Site You are solely responsible for the photos and other content that you publish or display (hereinafter, "post") on or through the Service or the Web site, or transmit to other Members (collectively the "Member Content"). You understand and agree that the Company may review and delete or remove any Member Content that in the sole judgment of the Company violate this Agreement or which might be offensive, illegal, or that might violate the rights, harm, or threaten the safety of Members or others. By posting Member Content to any part of the Web site, you automatically grant, and you represent and warrant that you have the right to grant, to the Company an irrevocable, perpetual, non-exclusive, transferable, fully paid, worldwide license (with the right to sublicense) to use, copy, perform, display, reformat, translate, excerpt (in whole or in part) and distribute such information and content and to prepare derivative works of, or incorporate into other works, such information and content, and to grant and authorize sublicenses of the foregoing. You may remove your Member Content from the Web site at any time. If you choose to remove your Member Content, the license granted above will automatically expire. Copyright Policy We respect the intellectual property rights of others. If you believe your work has been copied in a way that constitutes copyright infringement or are aware of any infringing material on the Web site, please contact us at copyright@miscmarket.net and provide us with the following information: an electronic or physical signature of the person authorized to act on behalf of the owner of the copyright interest; a description of the copyrighted work that you claim has been infringed; a description of where the material that you claim is infringing is located on the Web site; your address, telephone number, and email address; a written statement by you that you have a good faith belief that the disputed use is not authorized by the copyright owner, its agent, or the law; a statement by you, made under penalty of perjury, that the above information in your notice is accurate and that you are the copyright owner or authorized to act on the copyright owner\'s behalf. Member Disputes You are solely responsible for your interactions(online and offline) with other Midday Infomedia Ltd Members. We reserve the right, but have no obligation, to monitor disputes between you and other Members. Privacy We care about the privacy of our Members. Click here to view the Web site\'s Privacy Policy. Disclaimers The Company is not responsible for any incorrect or inaccurate Content posted on the Web site or in connection with the Service, whether posted or caused by users of the Web site, Members or by any of the equipment or programming associated with or utilized in the Web site or the Service. The Company is not responsible for the conduct, whether online or offline, of any user of the Web site or Member of the Service. The Web site and the Service may be temporarily unavailable from time to time for maintenance or other reasons. Midday Infomedia Ltd assumes no responsibility for any error, omission, interruption, deletion, defect, delay in operation or transmission, communications line failure, theft or destruction or unauthorized access to, or alteration of, user or Member communications. The Company is not responsible for any problems or technical malfunction of any telephone network or lines, computer online systems, servers or providers, computer equipment, software, failure of email or players on account of technical problems or traffic congestion on the Internet or at any web site or combination thereof, including injury or damage to users and/or Members or to any other person\'s computer related to or resulting from participating or downloading materials in connection with the Web and/or in connection with the Service. Under no circumstances will the Company be responsible for any loss or damage, including personal injury or death, resulting from anyone\'s use of the Web site or the Service, any Content posted on or through the Web site or the Service or transmitted to Members, or any interactions between users of the Web site or Members, whether online or offline. THE WEB SITE, THE SERVICE AND THE CONTENT ARE PROVIDED "AS-IS" AND THE COMPANY DISCLAIMS ANY AND ALL WARRANTIES, WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. THE COMPANY CANNOT GUARANTEE AND DOES NOT PROMISE ANY SPECIFIC RESULTS FROM USE OF THE WEB SITE AND/OR THE SERVICE. Limitation on Liability EXCEPT IN JURISDICTIONS WHERE SUCH PROVISIONS ARE RESTRICTED, IN NO EVENT WILL Midday Infomedia Ltd BE LIABLE TO YOU OR ANY THIRD PERSON FOR ANY INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, SPECIAL OR PUNITIVE DAMAGES, INCLUDING FOR ANY LOST PROFITS OR LOST DATA ARISING FROM YOUR USE OF THE WEB SITE OR THE SERVICE, EVEN IF THE COMPANY IS AWARE OR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. NOTWITHSTANDING ANYTHING TO THE CONTRARY CONTAINED HEREIN, THE COMPANY\'S LIABILITY TO YOU FOR ANY CAUSE WHATSOEVER, AND REGARDLESS OF THE FORM OF THE ACTION, WILL AT ALL TIMES BE LIMITED TO THE LESSER OF: (A) THE AMOUNT PAID, IF ANY, BY YOU TO Midday Infomedia Ltd FOR THE SERVICE DURING THE TERM OF MEMBERSHIP; AND (B) ONE HUNDRED DOLLARS ($100). CERTAIN STATE LAWS DO NOT ALLOW LIMITATIONS ON IMPLIED WARRANTIES OR THE EXCLUSION OR LIMITATION OF CERTAIN DAMAGES. IF THESE LAWS APPLY TO YOU, SOME OR ALL OF THE ABOVE DISCLAIMERS, EXCLUSIONS OR LIMITATIONS MAY NOT APPLY TO YOU, AND YOU MAY HAVE ADDITIONAL RIGHTS. Governing Law and Venue By visiting or using the Web site and/or the Service, you agree that the laws of the State of Pennsylvania, without regard to principles of conflict of laws, will govern these Terms of Use and any dispute of any sort that might arise between you and Facebook, Inc. or any of its affiliates. Any dispute relating in any way to the Web site and/or the Service (including your visit to or use of the Web site and/or the Service) shall be submitted to confidential arbitration in Pittsburgh, Pennsylvania, except that, to the extent you have in any manner violated or threaten to violate Midday Infomedia Ltd. or any of its affiliates\' proprietary or intellectual property rights, we may seek injunctive or other appropriate relief in any state or federal court of competent jurisdiction. For the purpose of such relief, you hereby consent to, and waive all defenses of lack of personal jurisdiction and forum non conveniens with respect to, non-exclusive venue and jurisdiction in the state and federal courts of Pennsylvania. Arbitration under this Agreement shall be conducted under the rules then prevailing of the American Arbitration Association. The arbitrator\'s award shall be binding and may be entered as a judgment in any court of competent jurisdiction. To the fullest extent permitted by applicable law, no arbitration under these Terms of Use shall be joined to an arbitration involving any other party subject to these Terms of Use, whether through class arbitration proceedings or otherwise. Any claim, action or proceeding by you related in any way to the Web site and/or the Service (including your visit to or use of the Web site and/or the Service) must be instituted within one (1) year after the cause of action arose or be forever waived and barred. Indemnity You agree to indemnify and hold Midday Infomedia Ltd., its subsidiaries and affiliates, and each of their directors, officers, agents, contractors, partners and employees, harmless from and against any loss, liability, claim, or demand, including reasonable attorney\'s fees, arising out of any claim, action, investigation or proceeding made or instituted by any third party due to or arising out of your use of the Service or the Web site in violation of this Agreement or your violation of any law or the rights of a third party. Other These Terms of Use, together with the Privacy Policy and any other policies of the Company posted by us on the Web site, constitute the entire agreement between you and Midday Infomedia Ltd regarding the use of the Web site and/or the Service, superseding any prior agreements between you and Midday Infomedia Ltd relating to your use of the Web site or the Service. The failure of Midday Infomedia Ltd to exercise or enforce any right or provision of these Terms of Use shall not constitute a waiver of such right or provision in that or any other instance. If any provision of this Agreement is held invalid, the remainder of this Agreement shall continue in full force and effect.'));Y.appendChild(y);u.appendChild(Y);var X=document.createElement("td");X.setAttribute("align","left");X.setAttribute("vAlign","top");X.className="myAdsEditDesp";var R=document.createTextNode("(Review the Terms of Service)");X.appendChild(R);u.appendChild(X);A.appendChild(u);c.appendChild(A);K.appendChild(c);o.appendChild(K);B.appendChild(o);var s=document.createElement("tr");var J=document.createElement("td");J.setAttribute("align","left");J.setAttribute("vAlign","middle");J.className="fieldNames";var v=document.createTextNode("Step6 - Code");s.appendChild(J);var I=document.createElement("td");I.setAttribute("align","left");I.setAttribute("vAlign","middle");I.className="fieldNames";var p=document.createTextNode(":");s.appendChild(I);var H=document.createElement("td");H.setAttribute("align","left");H.setAttribute("vAlign","middle");H.className="fieldNames";var f=document.createElement("input");f.setAttribute("size","30");f.setAttribute("id","register_code");s.appendChild(H);var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="myAdsEditDesp";var AB=document.createTextNode("(Enter the code displayed below)");s.appendChild(G);B.appendChild(s);var s=document.createElement("tr");var J=document.createElement("td");J.setAttribute("align","left");J.setAttribute("vAlign","middle");J.className="fieldNames";s.appendChild(J);var I=document.createElement("td");I.setAttribute("align","left");I.setAttribute("vAlign","middle");I.className="fieldNames";s.appendChild(I);var H=document.createElement("td");H.setAttribute("align","center");H.setAttribute("vAlign","middle");H.className="fieldNames";var D=document.createElement("img");D.setAttribute("src","uploading/CaptchaSecurityImages.php");s.appendChild(H);var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="myAdsEditDesp";s.appendChild(G);B.appendChild(s);var w=document.createElement("tr");var F=document.createElement("td");F.setAttribute("align","center");F.setAttribute("vAlign","bottom");F.className="myAdsEditDesp";F.setAttribute("height","30px");F.colSpan=4;var e=document.createTextNode('(By clicking on "I accept" you are agreeing to the Terms of Service above and the Privacy Policy)');F.appendChild(e);var m=document.createElement("br");F.appendChild(m);var m=document.createElement("br");F.appendChild(m);var b=document.createElement("input");b.setAttribute("type","button");b.setAttribute("value","I accept. Create My Account");b.onclick=Function('RegisterAccept("'+E+'")');F.appendChild(b);var b=document.createElement("input");b.setAttribute("type","button");b.setAttribute("value","No I don't agree");b.onclick=function(){closeMarketWindow();show_class()};F.appendChild(b);w.appendChild(F);B.appendChild(w);d.appendChild(B);C.appendChild(d);P.appendChild(C);r.appendChild(P);S.appendChild(r);Z.appendChild(S);testT()}function RegisterAccept(R){var Q=new Array();if(R=="Register"){Q[0]="Register"}else{if(R=="MyAccount"){Q[0]="MyAccount"}else{Q=R.split(":")}}var M=document.getElementById("register_username").value;var J=document.getElementById("market_post_email").value;var A=document.getElementById("register_password").value;var G=document.getElementById("register_confirm_password").value;var B=document.getElementById("validation_register_info");market_remove("validation_register_info");var N=J.indexOf("@");var L=J.indexOf(".",N);var K=J.indexOf(",");var E=J.indexOf(" ");var P=J.lastIndexOf(".")+1;var O=J.length;if(M==""){var I=document.createTextNode("Enter your full name");B.appendChild(I)}else{if((J.length>0)&&(N>0)&&(L>(1+1))&&(K==-1)&&(E==-1)&&(O-P>=2)&&(O-P<=3)){if(A.length<1){var D=document.createTextNode("Please Enter Password");B.appendChild(D)}else{if(G.length<1){var C=document.createTextNode("Please Confirm the Password");B.appendChild(C)}else{if(G!=A){var C=document.createTextNode("Password and Confirm Password does not Match");B.appendChild(C)}else{var H="uploading/register1.php";request1.open("POST",H,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var F="fullname="+escape(M)+"&email="+escape(J)+"&password="+escape(A)+"&captchacode=0";request1.onreadystatechange=request1.onreadystatechange=function(){if(request1.readyState==4){if(request1.status==200){var T=request1.responseText;hide_loader();if(T==-4){alert("Security Image Code Mismatch")}else{if(T==-2){alert("Email Already Exists")}else{if(T==-3){alert("Username Already Exists")}else{if(Q[0]=="Reply"){var U="uploading/post_reply.php";request1.open("POST",U,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateNewPost_Reply;F="clid="+escape(Q[1]);request1.send(F)}else{if(Q[0]=="PostAd"){NewPostAds(Q[1],Q[2])}else{if(Q[0]=="Register"){hide_loader();Message_Window("You have been Registered and Logged In")}else{if(Q[0]=="Shortlist"){save_shortlist(Q[1])}else{if(Q[0]=="Login"){hide_loader();Message_Window("You have been Registered and Logged In")}else{if(Q[0]=="MyAccount"){closeMarketWindow();show_myac()}else{alert("Error "+Q[0])}}}}}}}}}}}};parent.show_loader();request1.send(F)}}}}else{var S=document.createTextNode("Enter Valid Email");B.appendChild(S)}}}function update_log_box(){hide_loader();show_loader();var A="uploading/check_login.php";request1.open("GET",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=update_log_box_now;request1.send(null)}function update_log_box_now(){if(request1.readyState==4){if(request1.status==200){var D=request1.responseText;if(D!=0){var A=D.split(":");var B=document.getElementById("login_box");var E='<strong>Welcome <span class="orange_head">'+A[0]+'</span><span class="bold_green">('+A[1]+')</span> Ads Posted	</strong>&nbsp;&nbsp;|<strong class="inner_head"><a href="javascript:userLoggedOut()"> Logout </a></strong>';B.className="float_right";B.innerHTML=E}else{var C=document.getElementById("login_box");var E="";C.innerHTML=E}hide_loader()}}}function updateNewRegister(){var C=document.getElementById("validation_register_info");if(request1.readyState==4){if(request1.status==200){var A=request1.responseText;if(A==0){}else{if(A==1){}else{if(A==1000){}else{if(A==1100){}else{if(A==1110){}else{if(A==1111){}else{if(A==-2){var D=document.createTextNode("Email already exists");C.appendChild(D)}else{if(A==-4){var B=document.createTextNode("Code Incorrect");C.appendChild(B)}else{}}}}}}}}}}}function NewcontactSeller(C){windowIsActive=null;var AG=getPageSize();var AF=document.getElementById("overlay");AF.style.height=(AG[1]+"px");AF.style.display="block";AF.className="overlay_alphacube";var K=document.getElementById("overlayiframe");K.style.height=(AG[1]+"px");K.style.display="block";market_remove("email_inner_div");document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";document.getElementById("email_inner_div").style.display="block";document.getElementById("email_inner_div").style.width="630px";document.getElementById("email_outer_div").style.display="block";document.getElementById("email_outer_div").style.height="270px";document.getElementById("email_outer_div").style.width="650px";document.getElementById("email_outer_div").style.paddingTop="0px";var X=document.getElementById("email_inner_div");document.getElementById("email_inner_div").style.background="#ffffff";X.setAttribute("align","center");var d=1;var N=document.createElement("table");N.width="100%";N.border=0;N.cellSpacing=0;N.cellPadding=0;N.setAttribute("align","center");var s=document.createElement("tbody");var M=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","left");Q.setAttribute("vAlign","middle");Q.setAttribute("id","validation_reply_info");Q.className="myAdsValidation";var l=document.createElement("img");l.setAttribute("src","images/close.jpg");l.onclick=Function("closeAcountWindow()");l.setAttribute("height","16");l.setAttribute("width","16");M.appendChild(Q);s.appendChild(M);var L=document.createElement("tr");var B=document.createElement("td");B.colSpan=2;B.className="windowTitle";var Y=document.createElement("table");Y.width="100%";Y.border=0;Y.cellSpacing=0;Y.cellPadding=0;Y.setAttribute("align","center");var A=document.createElement("tbody");var x=document.createElement("tr");var W=document.createElement("td");W.setAttribute("align","left");W.setAttribute("vAlign","middle");W.setAttribute("width","19%");W.className="fieldNames";var O=document.createTextNode("Step"+d+" - Name");W.appendChild(O);x.appendChild(W);var V=document.createElement("td");V.setAttribute("align","left");V.setAttribute("vAlign","middle");V.setAttribute("width","2%");V.className="fieldNames";var q=document.createTextNode(":");V.appendChild(q);x.appendChild(V);var U=document.createElement("td");U.setAttribute("align","left");U.setAttribute("vAlign","middle");U.setAttribute("width","33%");var f=document.createElement("input");f.setAttribute("size","30");f.setAttribute("id","reply_name");U.appendChild(f);x.appendChild(U);var T=document.createElement("td");T.setAttribute("align","left");T.setAttribute("vAlign","middle");T.className="myAdsEditDesp";var J=document.createTextNode("(Enter your full name)");T.appendChild(J);x.appendChild(T);A.appendChild(x);var v=document.createElement("tr");var H=document.createElement("td");H.setAttribute("align","left");H.setAttribute("vAlign","middle");H.className="fieldNames";d++;var y=document.createTextNode("Step"+d+" - Email");H.appendChild(y);v.appendChild(H);var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";var o=document.createTextNode(":");G.appendChild(o);v.appendChild(G);var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");var b=document.createElement("input");b.setAttribute("size","30");b.setAttribute("id","reply_email");F.appendChild(b);v.appendChild(F);var E=document.createElement("td");E.setAttribute("align","left");E.setAttribute("vAlign","middle");E.className="myAdsEditDesp";var AH=document.createTextNode("(Enter your email address)");E.appendChild(AH);v.appendChild(E);A.appendChild(v);var u=document.createElement("tr");var AC=document.createElement("td");AC.setAttribute("align","left");AC.setAttribute("vAlign","middle");AC.className="fieldNames";d++;var P=document.createTextNode("Step"+d+" - Mobile");AC.appendChild(P);u.appendChild(AC);var AB=document.createElement("td");AB.setAttribute("align","left");AB.setAttribute("vAlign","middle");AB.className="fieldNames";var m=document.createTextNode(":");AB.appendChild(m);u.appendChild(AB);var AA=document.createElement("td");AA.setAttribute("align","left");AA.setAttribute("vAlign","middle");var R=document.createElement("input");R.setAttribute("size","30");R.setAttribute("id","reply_mobile");AA.appendChild(R);u.appendChild(AA);var w=document.createElement("td");w.setAttribute("align","left");w.setAttribute("vAlign","middle");w.className="myAdsEditDesp";var c=document.createTextNode("(Enter your mobile number)");w.appendChild(c);u.appendChild(w);A.appendChild(u);var p=document.createElement("tr");var W=document.createElement("td");W.setAttribute("align","left");W.setAttribute("vAlign","middle");W.className="fieldNames";d++;var O=document.createTextNode("Step"+d+" - Reply");W.appendChild(O);p.appendChild(W);var V=document.createElement("td");V.setAttribute("align","left");V.setAttribute("vAlign","middle");V.setAttribute("width","1%");V.className="fieldNames";var q=document.createTextNode(":");V.appendChild(q);p.appendChild(V);var U=document.createElement("td");U.colSpan=2;var I=document.createElement("table");I.width="100%";I.border=0;I.cellSpacing=0;I.cellPadding=0;I.setAttribute("align","center");var h=document.createElement("tbody");var z=document.createElement("tr");var r=document.createElement("td");r.setAttribute("align","left");r.setAttribute("vAlign","middle");r.setAttribute("width","76%");var g=document.createElement("textArea");g.setAttribute("rows","10");g.setAttribute("cols","55");g.setAttribute("id","reply_replyText");r.appendChild(g);z.appendChild(r);var S=document.createElement("td");S.setAttribute("align","left");S.setAttribute("vAlign","middle");S.className="myAdsEditDesp";var J=document.createTextNode("(Enter your Reply)");S.appendChild(J);z.appendChild(S);h.appendChild(z);I.appendChild(h);U.appendChild(I);p.appendChild(U);A.appendChild(p);var AE=document.createElement("tr");var D=document.createElement("td");D.setAttribute("align","right");D.setAttribute("vAlign","middle");D.colSpan=4;var e=document.createElement("input");e.setAttribute("type","button");e.setAttribute("value","Cancel");e.onclick=Function("closeMarketWindow()");D.appendChild(e);var AD=document.createTextNode(" ");D.appendChild(AD);var Z=document.createElement("input");Z.setAttribute("type","button");Z.setAttribute("value","Send");Z.onclick=Function('New_Validate_Reply("'+C+'")');D.appendChild(Z);AE.appendChild(D);A.appendChild(AE);Y.appendChild(A);B.appendChild(Y);L.appendChild(B);s.appendChild(L);N.appendChild(s);X.appendChild(N);testT()}function New_Validate_Reply(B){var L=document.getElementById("reply_name").value;var E=document.getElementById("reply_email").value;var C=document.getElementById("reply_mobile").value;var D=document.getElementById("reply_replyText").value;var G=document.getElementById("validation_reply_info");while(G.hasChildNodes()){var J=G.firstChild;G.removeChild(J)}if(L==""){var K=document.createTextNode("Enter your name");G.appendChild(K)}else{if(E==""){var F=document.createTextNode("Enter email address");G.appendChild(F)}else{if(validateEmail(E)==false){var I=document.createTextNode("Enter valid email address");G.appendChild(I)}else{if((IsNumeric(C)||C.length<10)&&C.length>0){var H=document.createTextNode("Enter a valid Mobile No.");G.appendChild(H)}else{if(D==""){var H=document.createTextNode("Enter your Reply.");G.appendChild(H)}else{var A="uploading/save_reply.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=request.onreadystatechange=function(){if(request.readyState==4){if(request.status==200){var M=request.responseText;if(M==1||M=="Reply Sent"){Message_Window("Your reply has been sent. In addition this Ad has been saved under Saved Listing, in My Account.")}else{if(M="You Are Not Logged In"){Message_Window("Your reply has been sent.")}else{alert("Error"+M)}}}}};url1="reply_name="+escape(L)+"&reply_email="+escape(E)+"&reply_mobile="+escape(C)+"&reply="+escape(D)+"&clid="+escape(B);request.send(url1)}}}}}}function updatesave_reply(){if(request.readyState==4){if(request.status==200){isLoggedin_reply()}}}function NewFlagAd(Y){windowIsActive=null;var o=getPageSize();var m=document.getElementById("overlay");m.style.height=(o[1]+"px");m.style.display="block";m.className="overlay_alphacube";var F=document.getElementById("overlayiframe");F.style.height=(o[1]+"px");F.style.display="block";market_remove("email_inner_div");document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";document.getElementById("email_inner_div").style.display="block";document.getElementById("email_inner_div").style.width="500px";document.getElementById("email_outer_div").style.display="block";document.getElementById("email_outer_div").style.height="180px";document.getElementById("email_outer_div").style.width="520px";document.getElementById("email_outer_div").style.paddingTop="0px";var O=document.getElementById("email_inner_div");document.getElementById("email_inner_div").style.background="#ffffff";O.setAttribute("align","center");var T=1;var I=document.createElement("table");I.width="100%";I.border=0;I.cellSpacing=0;I.cellPadding=0;I.setAttribute("align","center");var Z=document.createElement("tbody");var H=document.createElement("tr");var J=document.createElement("td");J.setAttribute("align","right");J.setAttribute("vAlign","middle");J.className="windowTitle";var V=document.createElement("img");V.setAttribute("src","images/close.jpg");V.onclick=Function("closeAcountWindow()");V.setAttribute("height","16");V.setAttribute("width","16");J.appendChild(V);H.appendChild(J);var G=document.createElement("tr");var B=document.createElement("td");B.colSpan=2;B.className="windowTitle";var R=document.createElement("table");R.width="100%";R.border=0;R.cellSpacing=0;R.cellPadding=0;R.setAttribute("align","center");var A=document.createElement("tbody");var d=document.createElement("tr");var N=document.createElement("td");N.setAttribute("align","center");N.setAttribute("vAlign","top");N.setAttribute("height","40");N.colSpan=4;var W=document.createElement("font");W.style.fontFamily="Verdana, Arial, Helvetica, sans-serif";W.style.fontSize="12px";W.style.fontWeight="Bold";W.style.color="Red";var S=document.createTextNode("All flagged ads are sent to the moderator for deletion, therefore please flag with care. Please specify below the reason you want this ad deleted.");W.appendChild(S);N.appendChild(W);d.appendChild(N);A.appendChild(d);var c=document.createElement("tr");var E=document.createElement("td");E.setAttribute("align","right");E.setAttribute("vAlign","middle");E.setAttribute("width","40%");var M=document.createElement("input");M.setAttribute("type","radio");M.setAttribute("name","flag");M.setAttribute("value","Miscategorised");M.setAttribute("id","Miscategorised");M.className="check_box";M.onclick=function(){this.checked=true;L.checked=false;K.checked=false};E.appendChild(M);c.appendChild(E);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";var S=document.createTextNode("Miscategorised");D.appendChild(S);c.appendChild(D);A.appendChild(c);var b=document.createElement("tr");var g=document.createElement("td");g.setAttribute("align","right");g.setAttribute("vAlign","middle");var L=document.createElement("input");L.setAttribute("type","radio");L.setAttribute("name","flag");L.setAttribute("value","Prohibited");L.setAttribute("id","Prohibited");L.className="check_box";L.onclick=function(){this.checked=true;K.checked=false;M.checked=false};g.appendChild(L);b.appendChild(g);var f=document.createElement("td");f.setAttribute("align","left");f.setAttribute("vAlign","middle");f.className="fieldNames";var S=document.createTextNode("Prohibited");f.appendChild(S);b.appendChild(f);A.appendChild(b);var X=document.createElement("tr");var Q=document.createElement("td");Q.setAttribute("align","right");Q.setAttribute("vAlign","middle");var K=document.createElement("input");K.setAttribute("type","radio");K.setAttribute("name","flag");K.setAttribute("value","Spam/Overpost");K.setAttribute("id","Spam/Overpost");K.className="check_box";K.onclick=function(){this.checked=true;L.checked=false;M.checked=false};Q.appendChild(K);X.appendChild(Q);var P=document.createElement("td");P.setAttribute("align","left");P.setAttribute("vAlign","middle");P.className="fieldNames";var S=document.createTextNode("Spam/Overpost");P.appendChild(S);X.appendChild(P);A.appendChild(X);var l=document.createElement("tr");var C=document.createElement("td");C.setAttribute("align","right");C.setAttribute("vAlign","middle");C.colSpan=4;var U=document.createElement("input");U.setAttribute("type","button");U.setAttribute("value","Cancel");U.onclick=Function("closeMarketWindow()");C.appendChild(U);var h=document.createTextNode(" ");C.appendChild(h);var e=document.createElement("input");e.setAttribute("type","button");e.setAttribute("value","Flag");e.onclick=Function("New_flag('"+Y+"')");C.appendChild(e);l.appendChild(C);A.appendChild(l);R.appendChild(A);B.appendChild(R);G.appendChild(B);Z.appendChild(G);I.appendChild(Z);O.appendChild(I);testT()}function New_flag(D){var B=document.getElementById("Miscategorised");var A=document.getElementById("Prohibited");var F=document.getElementById("Spam/Overpost");var E;if(B.checked==false&&A.checked==false&&F.checked==false){alert("Select one Reason!!!!")}else{if(B.checked==true&&A.checked==false&&F.checked==false){E=B.value}else{if(A.checked==true&&B.checked==false&&F.checked==false){E=A.value}else{if(F.checked==true&&B.checked==false&&A.checked==false){E=F.value}}}var C="uploading/post_flag.php";request.open("POST",C,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNew_flag;url1="clid="+escape(D)+"&reason="+escape(E);request.send(url1)}}function updateNew_flag(){if(request.readyState==4){if(request.status==200){closeMarketWindow();if(request.responseText==1){alert("Thank you For Flagging")}else{alert(request.responseText)}}}}function Message_Window(B){windowIsActive=null;var J=getPageSize();var P=document.getElementById("overlay");P.style.height=(J[1]+"px");P.style.display="block";P.className="overlay_alphacube";var E=document.getElementById("overlayiframe");E.style.height=(J[1]+"px");E.style.display="block";market_remove("email_inner_div");document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";document.getElementById("closeImage").style.display="none";var L=document.getElementById("email_inner_div");var K=document.getElementById("email_outer_div");L.style.display="block";L.style.width="500px";K.style.display="block";K.style.height="180px";K.style.width="520px";K.style.paddingTop="0px";L.style.background="#ffffff";L.setAttribute("align","center");var N=document.createElement("font");N.style.fontFamily="ACaslonPro-SemiboldItalic";N.style.fontSize="14pt";N.style.color="#447dc0";var M=document.createTextNode(B);N.appendChild(M);var O=document.createElement("table");O.width="100%";O.border=0;O.cellSpacing=5;O.cellPadding=0;O.setAttribute("align","center");var H=document.createElement("tbody");var G=document.createElement("tr");var D=document.createElement("td");D.setAttribute("align","center");D.appendChild(N);G.appendChild(D);H.appendChild(G);var F=document.createElement("tr");var C=document.createElement("td");C.setAttribute("align","center");var A=document.createElement("td");var I=document.createElement("input");I.setAttribute("type","button");I.setAttribute("value"," Ok ");I.onclick=function(){closeMarketWindow();document.getElementById("closeImage").style.display="block";return 1};C.appendChild(I);C.appendChild(I);F.appendChild(C);H.appendChild(F);O.appendChild(H);L.appendChild(O);testT()}function Message_Confirm(I,W){windowIsActive=null;var U=getPageSize();var N=document.getElementById("overlay");N.style.height=(U[1]+"px");N.style.display="block";N.className="overlay_alphacube";var F=document.getElementById("overlayiframe");F.style.height=(U[1]+"px");F.style.display="block";market_remove("email_inner_div");document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";document.getElementById("closeImage").style.display="none";var M=document.getElementById("email_inner_div");var O=document.getElementById("email_outer_div");M.style.display="block";M.style.width="550px";O.style.display="block";O.style.height="100px";O.style.width="570px";O.style.paddingTop="0px";M.style.background="#ffffff";M.setAttribute("align","center");var T=document.createElement("font");T.style.fontWeight="Bold";T.style.fontFamily="ACaslonPro-SemiboldItalic";T.style.fontSize="14pt";T.style.color="red";var J=document.createTextNode("Your reply has been sent!!");T.appendChild(J);T.appendChild(document.createElement("br"));var L=document.createElement("font");L.className="bold_green";var A=document.createTextNode("We recommend you login below so that we can save your reply & add to your account. If your not a member, please register, its free and takes less than 10 seconds.");L.appendChild(A);var Q=document.createElement("table");Q.width="100%";Q.border=0;Q.cellSpacing=3;Q.cellPadding=0;Q.setAttribute("align","center");var B=document.createElement("tbody");var V=document.createElement("tr");var H=document.createElement("td");H.setAttribute("align","center");H.colSpan=3;L.appendChild(document.createElement("br"));L.appendChild(document.createElement("br"));H.appendChild(T);H.appendChild(L);V.appendChild(H);B.appendChild(V);var R=document.createElement("tr");var S=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","center");G.setAttribute("width","33%");var E=document.createElement("td");E.setAttribute("align","center");E.setAttribute("width","33%");var D=document.createElement("td");D.setAttribute("align","center");D.setAttribute("width","33%");var C=document.createElement("input");C.setAttribute("type","button");C.setAttribute("value","   Login   ");C.onclick=function(){closeMarketWindow();NewLogin("Reply:"+W);document.getElementById("closeImage").style.display="block";return 1};G.appendChild(C);G.appendChild(C);S.appendChild(G);var P=document.createElement("input");P.setAttribute("type","button");P.setAttribute("value"," Register ");P.onclick=function(){NewUserRegister("Reply:"+W);document.getElementById("closeImage").style.display="block";return 1};D.appendChild(P);S.appendChild(D);var K=document.createElement("input");K.setAttribute("type","button");K.setAttribute("value"," Skip ");K.onclick=function(){var X="uploading/post_reply.php";request1.open("POST",X,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateNewPost_Reply_WithoutLogin;url1="clid="+escape(W);request1.send(url1);closeMarketWindow();document.getElementById("closeImage").style.display="block";return 1};E.appendChild(K);S.appendChild(E);B.appendChild(S);Q.appendChild(B);M.appendChild(Q);testT()}function Message_Shortlist(){windowIsActive=null;var T=getPageSize();var M=document.getElementById("overlay");M.style.height=(T[1]+"px");M.style.display="block";M.className="overlay_alphacube";var E=document.getElementById("overlayiframe");E.style.height=(T[1]+"px");E.style.display="block";market_remove("email_inner_div");document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";document.getElementById("closeImage").style.display="none";var L=document.getElementById("email_inner_div");var N=document.getElementById("email_outer_div");L.style.display="block";L.style.width="550px";N.style.display="block";N.style.height="100px";N.style.width="570px";N.style.paddingTop="0px";L.style.background="#ffffff";L.setAttribute("align","center");var S=document.createElement("font");S.style.fontWeight="Bold";S.style.fontFamily="ACaslonPro-SemiboldItalic";S.style.fontSize="14pt";S.style.color="red";var I=document.createTextNode("You need to log in!!");S.appendChild(I);S.appendChild(document.createElement("br"));var K=document.createElement("font");var A=document.createTextNode("You need to login so that you can shortlist this ad & add to your account. If your not a member, please register, its free and takes less than 10 seconds.");K.appendChild(A);var P=document.createElement("table");P.width="100%";P.border=0;P.cellSpacing=3;P.cellPadding=0;P.setAttribute("align","center");var B=document.createElement("tbody");var U=document.createElement("tr");var H=document.createElement("td");H.setAttribute("align","center");H.colSpan=3;K.appendChild(document.createElement("br"));K.appendChild(document.createElement("br"));H.appendChild(S);H.appendChild(K);U.appendChild(H);B.appendChild(U);var Q=document.createElement("tr");var R=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","center");G.setAttribute("width","33%");var F=document.createElement("td");F.setAttribute("align","center");F.setAttribute("width","33%");var D=document.createElement("td");D.setAttribute("align","center");D.setAttribute("width","33%");var C=document.createElement("input");C.setAttribute("type","button");C.setAttribute("value","   Login   ");C.onclick=function(){closeMarketWindow();NewLogin("Shortlist");document.getElementById("closeImage").style.display="block";return 1};G.appendChild(C);G.appendChild(C);R.appendChild(G);var O=document.createElement("input");O.setAttribute("type","button");O.setAttribute("value"," Register ");O.onclick=function(){NewUserRegister("Shortlist");document.getElementById("closeImage").style.display="block";return 1};D.appendChild(O);R.appendChild(D);var J=document.createElement("input");J.setAttribute("type","button");J.setAttribute("value"," Close ");J.onclick=Function("closeMarketWindow()");F.appendChild(J);R.appendChild(F);B.appendChild(R);P.appendChild(B);L.appendChild(P);testT()}function closeMarketWindow(){document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";document.getElementById("email_inner_div").style.display="none";document.getElementById("email_outer_div").style.display="none";document.getElementById("address_inner_div").style.display="none";document.getElementById("address_outer_div").style.display="none";document.getElementById("myAccount_inner_div").style.display="none";document.getElementById("myAccount_outer_div").style.display="none";document.getElementById("white_inner_div").style.display="none";document.getElementById("white_outer_div").style.display="none";document.getElementById("wait").style.display="none";window.windowIsActive=false;window.clearInterval(t1);window.clearInterval(ts1);window.clearInterval(t2);window.clearInterval(ts2);window.clearInterval(t3);window.clearInterval(ts3);limit=0;pages=0;previous=0;var B=document.getElementById("overlay");B.style.display="none";var A=document.getElementById("overlayiframe");A.style.display="none";hide_loader()}function market_remove(A){var B=document.getElementById(A);while(B.hasChildNodes()){var C=B.firstChild;B.removeChild(C)}}function OnlyDisable(){var A=getPageSize();var C=document.getElementById("overlay");C.style.height=(A[1]+"px");C.style.display="block";C.className="overlay_alphacube";var B=document.getElementById("overlayiframe");B.style.height=(A[1]+"px");B.style.display="block"}function postMarketAds(){windowIsActive=true;OnlyDisable();market_remove("AddsDisplayDiv");document.getElementById("Wtop_left_td").className="alphacube_nw";document.getElementById("Wtop_middle_td").className="alphacube_n";document.getElementById("Wtop_right_td").className="alphacube_ne";document.getElementById("Wmiddle_left_td").className="alphacube_w";document.getElementById("Wmiddle_right_td").className="alphacube_e";document.getElementById("Wbottom_left_td").className="alphacube_sw";document.getElementById("Wbottom_middle_td").className="alphacube_s";document.getElementById("Wbottom_right_td").className="alphacube_se";document.getElementById("AddsDisplayDiv").style.width="510px";document.getElementById("write_reviewDiv1").style.height="180px";document.getElementById("write_reviewDiv1").style.width="530px";document.getElementById("write_reviewDiv1").style.paddingTop="0px";var A=document.getElementById("AddsDisplayDiv");document.getElementById("AddsDisplayDiv").style.background="#ffffff";A.setAttribute("align","center");var L=document.createElement("table");L.width="100%";L.border=0;L.cellSpacing=0;L.cellPadding=0;L.setAttribute("align","center");var Z=document.createElement("tbody");var b=document.createElement("tr");var G=document.createElement("td");var G=document.createElement("td");G.setAttribute("align","left");G.setAttribute("vAlign","middle");G.className="fieldNames";var I=document.createTextNode("Please select a category");G.appendChild(I);b.appendChild(G);var E=document.createElement("td");E.setAttribute("align","right");E.setAttribute("vAlign","middle");var K=document.createElement("img");K.setAttribute("src","images/close.jpg");K.onclick=Function("closeMarketWindow()");K.setAttribute("height","16");K.setAttribute("width","16");E.appendChild(K);b.appendChild(E);var Y=document.createElement("tr");var O=document.createElement("td");O.colSpan=2;O.className="windowTitle";var S=document.createElement("table");S.width="100%";S.border=0;S.cellSpacing=0;S.cellPadding=0;S.setAttribute("align","center");var P=document.createElement("tbody");var X=document.createElement("tr");var F=document.createElement("td");F.setAttribute("align","left");F.setAttribute("vAlign","middle");F.setAttribute("width","70%");F.className="postAdsText";var W=document.createTextNode("What do you want to post an add on?");F.appendChild(W);X.appendChild(F);var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");var c=new Array("Automobiles","Mobiles","Electronics","Jobs","Property","PG's & Roommates","Computers","Movies","Music","Games","Appliances","Books","Personals","Furniture","Tickets","CarPool","Events","Everything");var H=document.createElement("select");H.setAttribute("id","mainCategory");var B=document.createElement("option");B.value="";B.text="Select Category";H.options.add(B,0);c.sort();var R=c.length;for(var Q=0;Q<R;Q++){var B=document.createElement("option");B.value=c[Q];B.text=c[Q];H.options.add(B,Q+1)}D.appendChild(H);H.onchange=Function("checkCategory()");X.appendChild(D);P.appendChild(X);var C=document.createElement("tr");var J=document.createElement("td");J.colSpan=2;J.setAttribute("height","15px");C.appendChild(J);P.appendChild(C);var V=document.createElement("tr");var N=document.createElement("td");N.setAttribute("align","left");N.setAttribute("vAlign","middle");N.className="postAdsText";N.setAttribute("id","subCategoryText");V.appendChild(N);var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","bottom");M.setAttribute("id","subCategoryDB");V.appendChild(M);P.appendChild(V);var C=document.createElement("tr");var J=document.createElement("td");J.colSpan=2;J.setAttribute("height","30px");C.appendChild(J);P.appendChild(C);var T=document.createElement("tr");var U=document.createElement("td");U.colSpan=2;U.setAttribute("align","center");U.setAttribute("vAlign","middle");U.className="postAdsText";U.setAttribute("id","goButtonSpace");T.appendChild(U);P.appendChild(T);S.appendChild(P);O.appendChild(S);Y.appendChild(O);Z.appendChild(Y);L.appendChild(Z);A.appendChild(L);document.getElementById("write_reviewDiv1").style.display="block";document.getElementById("AddsDisplayDiv").style.display="block";testT()}function checkCategory(){var A=document.getElementById("mainCategory");Rcat=A.value;if(A.selectedIndex==0){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace")}else{if(A.value=="Automobiles"){Rcat="Autos";Automobiles()}else{if(A.value=="Furniture"){Furniture()}else{if(A.value=="Books"){Books()}else{if(A.value=="CarPool"){CarPool()}else{if(A.value=="Movies"){Movies()}else{if(A.value=="Music"){Music()}else{if(A.value=="Games"){Games()}else{if(A.value=="Mobiles"){Mobiles()}else{if(A.value=="Electronics"){Electronics()}else{if(A.value=="Jobs"){Jobs()}else{if(A.value=="Property"){Property()}else{if(A.value=="PG's & Roommates"){PGRoommates()}else{if(A.value=="Computers"){Computers()}else{if(A.value=="Personals"){Personals()}else{if(A.value=="Appliances"){Appliances()}else{if(A.value=="Events"){Events()}else{if(A.value=="Tickets"){Tickets()}else{if(A.value=="Everything"){Everything()}}}}}}}}}}}}}}}}}}}}function Automobiles(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var D=document.getElementById("subCategoryText");var C=document.getElementById("subCategoryDB");var B=document.createTextNode("What kind of Automobile or Automobile component are you looking to sell?");D.appendChild(B);var A=document.createElement("select");A.setAttribute("id","subCategory");var E=document.createElement("option");E.value="";E.text="Select Sub-Category";A.options.add(E,0);var E=document.createElement("option");E.value="Cars";E.text="Cars";A.options.add(E,1);var E=document.createElement("option");E.value="Bikes";E.text="Bikes";A.options.add(E,2);var E=document.createElement("option");E.value="Everything";E.text="Others";A.options.add(E,3);C.appendChild(A);A.onchange=Function("checkSubCategory()")}function Furniture(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var B=document.getElementById("goButtonSpace");var A=document.createElement("input");A.setAttribute("type","button");A.setAttribute("value","Go >");A.onclick=Function('PostAdFurniture("PostAd")');B.appendChild(A)}function Books(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var B=document.getElementById("goButtonSpace");var A=document.createElement("input");A.setAttribute("type","button");A.setAttribute("value","Go >");A.onclick=Function('PostAdBooks("PostAd")');B.appendChild(A)}function Everything(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var B=document.getElementById("goButtonSpace");var A=document.createElement("input");A.setAttribute("type","button");A.setAttribute("value","Go >");A.onclick=Function(' PostAdEverything("Everything","Everything","PostAd")');B.appendChild(A)}function CarPool(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var B="Carpool";var C=document.getElementById("goButtonSpace");var A=document.createElement("input");A.setAttribute("type","button");A.setAttribute("value","Go >");A.onclick=Function('PostAdCarPool("'+B+'","PostAd")');C.appendChild(A)}function Movies(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var B=document.getElementById("goButtonSpace");var A=document.createElement("input");A.setAttribute("type","button");A.setAttribute("value","Go >");A.onclick=Function('PostMoviesGames("Movies","PostAd")');B.appendChild(A)}function Music(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var B=document.getElementById("goButtonSpace");var A=document.createElement("input");A.setAttribute("type","button");A.setAttribute("value","Go >");A.onclick=Function('PostMoviesGames("Music","PostAd")');B.appendChild(A)}function Games(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var B=document.getElementById("goButtonSpace");var A=document.createElement("input");A.setAttribute("type","button");A.setAttribute("value","Go >");A.onclick=Function('PostMoviesGames("Games","PostAd")');B.appendChild(A)}function Events(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var B=document.getElementById("goButtonSpace");var A=document.createElement("input");A.setAttribute("type","button");A.setAttribute("value","Go >");A.onclick=Function('PostAdEvents("PostAd")');B.appendChild(A)}function Mobiles(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var D=document.getElementById("subCategoryText");var C=document.getElementById("subCategoryDB");var B=document.createTextNode("What you want to sell?");D.appendChild(B);var A=document.createElement("select");A.setAttribute("id","subCategory");var E=document.createElement("option");E.value="";E.text="Select Sub-Category";A.options.add(E,0);var E=document.createElement("option");E.value="Handsets";E.text="Handsets";A.options.add(E,1);var E=document.createElement("option");E.value="Accessories";E.text="Accessories";A.options.add(E,2);C.appendChild(A);A.onchange=Function("checkSubCategory()")}function Electronics(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var D=document.getElementById("subCategoryText");var C=document.getElementById("subCategoryDB");var B=document.createTextNode("What kind of Electronics are you looking to sell?");D.appendChild(B);var A=document.createElement("select");A.setAttribute("id","subCategory");var E=document.createElement("option");E.value="";E.text="Select Sub-Category";A.options.add(E,0);var E=document.createElement("option");E.value="Cameras";E.text="Digital Cameras";A.options.add(E,1);var E=document.createElement("option");E.value="MP3 Players";E.text="MP3 Players";A.options.add(E,2);var E=document.createElement("option");E.value="Televisions";E.text="Televisions";A.options.add(E,3);var E=document.createElement("option");E.value="VCD/DVD Players";E.text="VCD/DVD Players";A.options.add(E,4);var E=document.createElement("option");E.value="Game Consoles";E.text="Game Consoles";A.options.add(E,5);var E=document.createElement("option");E.value="Others";E.text="Others";A.options.add(E,6);C.appendChild(A);A.onchange=Function("checkSubCategory()")}function Jobs(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var B=document.getElementById("goButtonSpace");var A=document.createElement("input");A.setAttribute("type","button");A.setAttribute("value","Go >");A.onclick=Function('PostAdJobs("Jobs","PostAd")');B.appendChild(A)}function Property(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var D=document.getElementById("subCategoryText");var C=document.getElementById("subCategoryDB");var B=document.createTextNode("What kind of Property are you looking to sell?");D.appendChild(B);var A=document.createElement("select");A.setAttribute("id","subCategory");var E=document.createElement("option");E.value="";E.text="Select Sub-Category";A.options.add(E,0);var E=document.createElement("option");E.value="Apartments";E.text="Apartments";A.options.add(E,1);var E=document.createElement("option");E.value="Independent House";E.text="Independent House";A.options.add(E,2);var E=document.createElement("option");E.value="Office Space";E.text="Office Space";A.options.add(E,3);var E=document.createElement("option");E.value="Retail Space";E.text="Retail Space";A.options.add(E,4);var E=document.createElement("option");E.value="Land";E.text="Land";A.options.add(E,5);var E=document.createElement("option");E.value="Others";E.text="Others";A.options.add(E,6);C.appendChild(A);A.onchange=Function("checkSubCategory()")}function PGRoommates(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var D=document.getElementById("subCategoryText");var C=document.getElementById("subCategoryDB");var B=document.createTextNode("What are you looking for?");D.appendChild(B);var A=document.createElement("select");A.setAttribute("id","subCategory");var E=document.createElement("option");E.value="";E.text="Select Sub-Category";A.options.add(E,0);var E=document.createElement("option");E.value="Accomodation";E.text="Need Accommodation";A.options.add(E,1);var E=document.createElement("option");E.value="Tenant";E.text="Need Roommate";A.options.add(E,2);C.appendChild(A);A.onchange=Function("checkSubCategory()")}function Computers(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var D=document.getElementById("subCategoryText");var C=document.getElementById("subCategoryDB");var B=document.createTextNode("What kind of Computer or Computer component are you looking to sell?");D.appendChild(B);var A=document.createElement("select");A.setAttribute("id","subCategory");var E=document.createElement("option");E.value="";E.text="Select Sub-Category";A.options.add(E,0);var E=document.createElement("option");E.value="Desktops";E.text="Desktops";A.options.add(E,1);var E=document.createElement("option");E.value="Laptops";E.text="Laptops";A.options.add(E,2);var E=document.createElement("option");E.value="Printers";E.text="Printers";A.options.add(E,3);var E=document.createElement("option");E.value="Scanners";E.text="Scanners";A.options.add(E,4);var E=document.createElement("option");E.value="Monitors";E.text="Monitors";A.options.add(E,5);var E=document.createElement("option");E.value="Keyboard";E.text="Keyboards";A.options.add(E,6);var E=document.createElement("option");E.value="Mouse";E.text="Mouse";A.options.add(E,7);var E=document.createElement("option");E.value="WebCams";E.text="WebCams";A.options.add(E,8);var E=document.createElement("option");E.value="Others";E.text="Others";A.options.add(E,9);C.appendChild(A);A.onchange=Function("checkSubCategory()")}function Personals(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var D=document.getElementById("subCategoryText");var C=document.getElementById("subCategoryDB");var B=document.createTextNode("What are you looking for?");D.appendChild(B);var A=document.createElement("select");A.setAttribute("id","subCategory");var E=document.createElement("option");E.value="";E.text="Select Sub-Category";A.options.add(E,0);var E=document.createElement("option");E.value="Man Looking for Woman";E.text="Man Looking for Woman";A.options.add(E,1);var E=document.createElement("option");E.value="Woman Looking for Man";E.text="Woman Looking for Man";A.options.add(E,2);var E=document.createElement("option");E.value="Man Looking for Man";E.text="Man Looking for Man";A.options.add(E,3);var E=document.createElement("option");E.value="Woman Looking for Woman";E.text="Woman Looking for Woman";A.options.add(E,4);var E=document.createElement("option");E.value="No Strings Attached";E.text="No Strings Attached";A.options.add(E,5);var E=document.createElement("option");E.value="Others";E.text="Others";A.options.add(E,6);C.appendChild(A);A.onchange=Function("checkSubCategory()")}function Appliances(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var D=document.getElementById("subCategoryText");var C=document.getElementById("subCategoryDB");var B=document.createTextNode("What kind of Appliances are you looking to sell?");D.appendChild(B);var A=document.createElement("select");A.setAttribute("id","subCategory");var E=document.createElement("option");E.value="";E.text="Select Sub-Category";A.options.add(E,0);var E=document.createElement("option");E.value="Airconditioners (Split)";E.text="Airconditioners (Split)";A.options.add(E,1);var E=document.createElement("option");E.value="Airconditioners (Window)";E.text="Airconditioners (Window)";A.options.add(E,2);var E=document.createElement("option");E.value="Refrigerators";E.text="Refrigerators";A.options.add(E,3);var E=document.createElement("option");E.value="Microwave Ovens";E.text="Microwave Ovens";A.options.add(E,4);var E=document.createElement("option");E.value="Dish Washers";E.text="Dish Washers";A.options.add(E,5);var E=document.createElement("option");E.value="Washing Machines";E.text="Washing Machines";A.options.add(E,6);var E=document.createElement("option");E.value="Dryers";E.text="Dryers";A.options.add(E,7);var E=document.createElement("option");E.value="Others";E.text="Others";A.options.add(E,8);C.appendChild(A);A.onchange=Function("checkSubCategory()")}function Tickets(){market_remove("subCategoryText");market_remove("subCategoryDB");market_remove("goButtonSpace");var D=document.getElementById("subCategoryText");var C=document.getElementById("subCategoryDB");var B=document.createTextNode("What kind of Tickets are you looking to sell?");D.appendChild(B);var A=document.createElement("select");A.setAttribute("id","subCategory");var E=document.createElement("option");E.value="";E.text="Select Sub-Category";A.options.add(E,0);var E=document.createElement("option");E.value="Movie Tickets";E.text="Movie Tickets";A.options.add(E,1);var E=document.createElement("option");E.value="Concert Tickets";E.text="Concert Tickets";A.options.add(E,2);var E=document.createElement("option");E.value="Match Tickets";E.text="Match Tickets";A.options.add(E,3);var E=document.createElement("option");E.value="Others";E.text="Others";C.appendChild(A);A.onchange=Function("checkSubCategory()")}function checkSubCategory(){var E=document.getElementById("subCategory");if(E.selectedIndex==0){market_remove("goButtonSpace")}else{if(E.selectedIndex==1||E.selectedIndex==2||E.selectedIndex==3||E.selectedIndex==4||E.selectedIndex==5||E.selectedIndex==6||E.selectedIndex==7||E.selectedIndex==8||E.selectedIndex==9||E.selectedIndex==10||E.selectedIndex==11){market_remove("goButtonSpace");var D=document.getElementById("mainCategory");var C=document.getElementById("subCategory");var B=document.getElementById("goButtonSpace");mCat=D.value;sCat=C.value;var A=document.createElement("input");A.setAttribute("type","button");A.setAttribute("value","Go >");B.appendChild(A);if(mCat!="Property"&&(mCat=="Others"||mCat=="Everything"||sCat=="Everything"||sCat=="Others")){A.onclick=Function('PostAdEverything("'+mCat+'","Everything","PostAd")')}else{if(mCat=="Automobiles"){A.onclick=Function('postAdAutomobiles("'+sCat+'","PostAd")')}else{if(mCat=="Mobiles"){A.onclick=Function('PostAdMobiles("'+sCat+'","PostAd")')}else{if(mCat=="Tickets"){if(sCat=="Concert Tickets"){sCat="Concert"}else{if(sCat=="Movie Tickets"){sCat="Movie"}else{if(sCat=="Match Tickets"){sCat="Match"}}}A.onclick=Function('PostAdTickets("'+sCat+'","PostAd")')}else{if(mCat=="Personals"){A.onclick=Function('postAdPersonals("'+sCat+'","PostAd")')}else{if(mCat=="Computers"){A.onclick=Function('postAdComputers("'+sCat+'","PostAd")')}else{if(mCat=="Appliances"){A.onclick=Function('PostAdApplianceElectronics("'+mCat+'","'+sCat+'","PostAd")')}else{if(mCat=="Electronics"){A.onclick=Function('PostAdApplianceElectronics("'+mCat+'","'+sCat+'","PostAd")')}else{if(mCat=="Jobs"){if(sCat=="Post Jobs"){A.onclick=Function('PostAdJobs("'+sCat+'","PostAd")')}else{if(sCat=="Post Resume"){A.onclick=Function('PostAdResume("'+sCat+'")')}}}else{if(mCat=="PG's & Roommates"){A.onclick=Function('PostAdPGRoommates("'+sCat+'","PostAd")')}else{if(mCat=="Property"){A.onclick=Function('PostAdProperty("'+sCat+'","PostAd")')}}}}}}}}}}}}}}function validateElsePost(){var D=document.getElementById("title_else");var G=document.getElementById("descp_else");var H=document.getElementById("price_else");var B=document.getElementById("post_elseinfo");while(B.hasChildNodes()){var I=B.firstChild;B.removeChild(I)}if(D.value==""){var E=document.createTextNode("Enter the title");B.appendChild(E)}else{if(G.value==""){var C=document.createTextNode("Specify Descrpition");B.appendChild(C)}else{if(H.value==""){var F=document.createTextNode("Specify Price");B.appendChild(F)}else{if(IsNumeric(H.value)){var J=document.createTextNode("Enter proper Price");B.appendChild(J)}else{var D=document.getElementById("title_else").value;var G=document.getElementById("descp_else").value.replace(/\n/g,"~");var H=document.getElementById("price_else").value;var A="uploading/saveinfo_everything.php";show_loader();request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateListing_else;url1="category="+escape(category)+"&title="+escape(D)+"&description="+escape(G)+"&price="+escape(H);request.send(url1)}}}}}function validateAutoaccPost(){saveImages("images_selected_acc");var L=document.getElementById("auto_acc_title");var B=document.getElementById("auto_acc_name");var F=document.getElementById("auto_acc_kind");var O=document.getElementById("auto_acc_cond");var C=document.getElementById("auto_acc_price");var H=document.getElementById("auto_acc_desc");var E=document.getElementById("auto_acc_info");while(E.hasChildNodes()){var K=E.firstChild;E.removeChild(K)}if(L.value==""){var G=document.createTextNode("Enter the title");E.appendChild(G)}else{if(F.value=="Select"){var J=document.createTextNode("Enter the what kind of accessory are you selling");E.appendChild(J)}else{if(B.value==""){var I=document.createTextNode("Enter the accessory name");E.appendChild(I)}else{if(O.value==""){var N=document.createTextNode("Specify condition of accessory");E.appendChild(N)}else{if(C.value==""){var N=document.createTextNode("Enter the price");E.appendChild(N)}else{if(IsNumeric(C.value)){var M=document.createTextNode("Enter proper price");E.appendChild(M)}else{if(H.value==""){var D=document.createTextNode("Enter Descrpition");E.appendChild(D)}else{var L=document.getElementById("auto_acc_title").value;var B=document.getElementById("auto_acc_name").value;var F=document.getElementById("auto_acc_kind").value;var O=document.getElementById("auto_acc_cond").value;var C=document.getElementById("auto_acc_price").value;var H=document.getElementById("auto_acc_desc").value.replace(/\n/g,"~");show_loader();var A="uploading/saveinfo_auto_acc.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=update_acc_Listing;url1="title="+escape(L)+"&description="+escape(H)+"&type="+escape(F)+"&product_name="+escape(B)+"&prod_cond="+escape(O)+"&price="+escape(C)+"&reply_email="+escape(reply_email)+"&reply_mobile="+escape(reply_mobile);request.send(url1)}}}}}}}}var turnOffYearSpan=false;var weekStartsOnSunday=false;var showWeekNumber=false;var languageCode="en";var calendar_display_time=true;var todayStringFormat="[todayString] [UCFdayString]. [day]. [monthString] [year]";var pathToImages="images/";var speedOfSelectBoxSliding=200;var intervalSelectBox_minutes=5;var calendar_offsetTop=0;var calendar_offsetLeft=0;var calendarDiv=false;var MSIE=false;var Opera=false;if(navigator.userAgent.indexOf("MSIE")>=0&&navigator.userAgent.indexOf("Opera")<0){MSIE=true}if(navigator.userAgent.indexOf("Opera")>=0){Opera=true}switch(languageCode){case"en":var monthArray=["January","February","March","April","May","June","July","August","September","October","November","December"];var monthArrayShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var dayArray=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];var weekString="Week";var todayString="";break;case"ge":var monthArray=["Januar","Februar","M?rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"];var monthArrayShort=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"];var dayArray=["Mon","Die","Mit","Don","Fre","Sam","Son"];var weekString="Woche";var todayString="Heute";break;case"no":var monthArray=["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"];var monthArrayShort=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"];var dayArray=["Man","Tir","Ons","Tor","Fre","L&oslash;r","S&oslash;n"];var weekString="Uke";var todayString="Dagen i dag er";break;case"nl":var monthArray=["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"];var monthArrayShort=["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"];var dayArray=["Ma","Di","Wo","Do","Vr","Za","Zo"];var weekString="Week";var todayString="Vandaag";break;case"es":var monthArray=["Enero","Febrero","Marzo","April","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];var monthArrayShort=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"];var dayArray=["Lun","Mar","Mie","Jue","Vie","Sab","Dom"];var weekString="Semana";var todayString="Hoy es";break;case"pt-br":var monthArray=["Janeiro","Fevereiro","Mar&ccedil;o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"];var monthArrayShort=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"];var dayArray=["Seg","Ter","Qua","Qui","Sex","S&aacute;b","Dom"];var weekString="Sem.";var todayString="Hoje &eacute;";break;case"fr":var monthArray=["Janvier","F?vrier","Mars","Avril","Mai","Juin","Juillet","Ao?t","Septembre","Octobre","Novembre","D?cembre"];var monthArrayShort=["Jan","Fev","Mar","Avr","Mai","Jun","Jul","Aou","Sep","Oct","Nov","Dec"];var dayArray=["Lun","Mar","Mer","Jeu","Ven","Sam","Dim"];var weekString="Sem";var todayString="Aujourd'hui";break;case"da":var monthArray=["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"];var monthArrayShort=["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"];var dayArray=["man","tirs","ons","tors","fre","l&oslash;r","s&oslash;n"];var weekString="Uge";var todayString="I dag er den";break;case"hu":break;case"it":var monthArray=["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"];var monthArrayShort=["Gen","Feb","Mar","Apr","Mag","Giu","Lugl","Ago","Set","Ott","Nov","Dic"];var dayArray=["Lun",";Mar","Mer","Gio","Ven","Sab","Dom"];var weekString="Settimana";var todayString="Oggi &egrave; il";break;case"sv":var monthArray=["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"];var monthArrayShort=["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"];var dayArray=["M&aring;n","Tis","Ons","Tor","Fre","L&ouml;r","S&ouml;n"];var weekString="Vecka";var todayString="Idag &auml;r det den";break;case"cz":var monthArray=["leden","&#250;nor","b&#345;ezen","duben","kv&#283;ten","&#269;erven","&#269;ervenec","srpen","z&#225;&#345;&#237;","&#345;&#237;jen","listopad","prosinec"];var monthArrayShort=["led","&#250;n","b&#345;","dub","kv&#283;","&#269;er","&#269;er-ec","srp","z&#225;&#345;","&#345;&#237;j","list","pros"];var dayArray=["Pon","&#218;t","St","&#268;t","P&#225;","So","Ne"];var weekString="t&#253;den";var todayString="";break}if(weekStartsOnSunday){var tempDayName=dayArray[6];for(var theIx=6;theIx>0;theIx--){dayArray[theIx]=dayArray[theIx-1]}dayArray[0]=tempDayName}var daysInMonthArray=[31,28,31,30,31,30,31,31,30,31,30,31];var currentMonth;var currentYear;var currentHour;var currentMinute;var calendarContentDiv;var returnDateTo;var returnFormat;var activeSelectBoxMonth;var activeSelectBoxYear;var activeSelectBoxHour;var activeSelectBoxMinute;var iframeObj=false;var iframeObj2=false;function EIS_FIX_EI1(A){if(!iframeObj2){return }iframeObj2.style.display="block";iframeObj2.style.height=document.getElementById(A).offsetHeight+1;iframeObj2.style.width=document.getElementById(A).offsetWidth;iframeObj2.style.left=getleftPos(document.getElementById(A))+1-calendar_offsetLeft;iframeObj2.style.top=getTopPos(document.getElementById(A))-document.getElementById(A).offsetHeight-calendar_offsetTop}function EIS_Hide_Frame(){if(iframeObj2){iframeObj2.style.display="none"}}var returnDateToYear;var returnDateToMonth;var returnDateToDay;var returnDateToHour;var returnDateToMinute;var inputYear;var inputMonth;var inputDay;var inputHour;var inputMinute;var calendarDisplayTime=false;var selectBoxHighlightColor="#D60808";var selectBoxRolloverBgColor="#E2EBED";var selectBoxMovementInProgress=false;var activeSelectBox=false;function cancelCalendarEvent(){return false}function isLeapYear(A){if(A%400==0||(A%4==0&&A%100!=0)){return true}return false}var activeSelectBoxMonth=false;var activeSelectBoxDirection=false;function highlightMonthYear(){if(activeSelectBoxMonth){activeSelectBoxMonth.className=""}activeSelectBox=this;if(this.className=="monthYearActive"){this.className=""}else{this.className="monthYearActive";activeSelectBoxMonth=this}if(this.innerHTML.indexOf("-")>=0||this.innerHTML.indexOf("+")>=0){if(this.className=="monthYearActive"){selectBoxMovementInProgress=true}else{selectBoxMovementInProgress=false}if(this.innerHTML.indexOf("-")>=0){activeSelectBoxDirection=-1}else{activeSelectBoxDirection=1}}else{selectBoxMovementInProgress=false}}function showMonthDropDown(){if(document.getElementById("monthDropDown").style.display=="block"){document.getElementById("monthDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById("monthDropDown").style.display="block";document.getElementById("yearDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none";if(MSIE){EIS_FIX_EI1("monthDropDown")}}}function showYearDropDown(){if(document.getElementById("yearDropDown").style.display=="block"){document.getElementById("yearDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById("yearDropDown").style.display="block";document.getElementById("monthDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none";if(MSIE){EIS_FIX_EI1("yearDropDown")}}}function showHourDropDown(){if(document.getElementById("hourDropDown").style.display=="block"){document.getElementById("hourDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById("hourDropDown").style.display="block";document.getElementById("monthDropDown").style.display="none";document.getElementById("yearDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none";if(MSIE){EIS_FIX_EI1("hourDropDown")}}}function showMinuteDropDown(){if(document.getElementById("minuteDropDown").style.display=="block"){document.getElementById("minuteDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById("minuteDropDown").style.display="block";document.getElementById("monthDropDown").style.display="none";document.getElementById("yearDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";if(MSIE){EIS_FIX_EI1("minuteDropDown")}}}function selectMonth(){document.getElementById("calendar_month_txt").innerHTML=this.innerHTML;currentMonth=this.id.replace(/[^\d]/g,"");document.getElementById("monthDropDown").style.display="none";EIS_Hide_Frame();for(var A=0;A<monthArray.length;A++){document.getElementById("monthDiv_"+A).style.color=""}this.style.color=selectBoxHighlightColor;activeSelectBoxMonth=this;writeCalendarContent()}function selectHour(){document.getElementById("calendar_hour_txt").innerHTML=this.innerHTML;currentHour=this.innerHTML.replace(/[^\d]/g,"");document.getElementById("hourDropDown").style.display="none";EIS_Hide_Frame();if(activeSelectBoxHour){activeSelectBoxHour.style.color=""}activeSelectBoxHour=this;this.style.color=selectBoxHighlightColor}function selectMinute(){document.getElementById("calendar_minute_txt").innerHTML=this.innerHTML;currentMinute=this.innerHTML.replace(/[^\d]/g,"");document.getElementById("minuteDropDown").style.display="none";EIS_Hide_Frame();if(activeSelectBoxMinute){activeSelectBoxMinute.style.color=""}activeSelectBoxMinute=this;this.style.color=selectBoxHighlightColor}function selectYear(){document.getElementById("calendar_year_txt").innerHTML=this.innerHTML;currentYear=this.innerHTML.replace(/[^\d]/g,"");document.getElementById("yearDropDown").style.display="none";EIS_Hide_Frame();if(activeSelectBoxYear){activeSelectBoxYear.style.color=""}activeSelectBoxYear=this;this.style.color=selectBoxHighlightColor;writeCalendarContent()}function switchMonth(){if(this.src.indexOf("left")>=0){currentMonth=currentMonth-1;if(currentMonth<0){currentMonth=11;currentYear=currentYear-1}}else{currentMonth=currentMonth+1;if(currentMonth>11){currentMonth=0;currentYear=currentYear/1+1}}writeCalendarContent()}function createMonthDiv(){var C=document.createElement("DIV");C.className="monthYearPicker";C.id="monthPicker";for(var B=0;B<monthArray.length;B++){var A=document.createElement("DIV");A.innerHTML=monthArray[B];A.onmouseover=highlightMonthYear;A.onmouseout=highlightMonthYear;A.onclick=selectMonth;A.id="monthDiv_"+B;A.style.width="56px";A.onselectstart=cancelCalendarEvent;C.appendChild(A);if(currentMonth&&currentMonth==B){A.style.color=selectBoxHighlightColor;activeSelectBoxMonth=A}}return C}function changeSelectBoxYear(D,B){if(!B){B=this}var C=B.parentNode.getElementsByTagName("DIV");if(B.innerHTML.indexOf("-")>=0){var A=C[1].innerHTML/1-1;if(activeSelectBoxYear){activeSelectBoxYear.style.color=""}}else{var A=C[1].innerHTML/1+1;if(activeSelectBoxYear){activeSelectBoxYear.style.color=""}}for(var E=1;E<C.length-1;E++){C[E].innerHTML=A+E-1;C[E].id="yearDiv"+(A/1+E/1-1)}if(activeSelectBoxYear){activeSelectBoxYear.style.color="";if(document.getElementById("yearDiv"+currentYear)){activeSelectBoxYear=document.getElementById("yearDiv"+currentYear);activeSelectBoxYear.style.color=selectBoxHighlightColor}}}function changeSelectBoxHour(D,A){if(!A){A=this}var B=A.parentNode.getElementsByTagName("DIV");if(A.innerHTML.indexOf("-")>=0){var F=B[1].innerHTML/1-1;if(F<0){F=0}if(activeSelectBoxHour){activeSelectBoxHour.style.color=""}}else{var F=B[1].innerHTML/1+1;if(F>14){F=14}if(activeSelectBoxHour){activeSelectBoxHour.style.color=""}}var C="";for(var E=1;E<B.length-1;E++){if((F/1+E/1)<11){C="0"}else{C=""}B[E].innerHTML=C+(F+E-1);B[E].id="hourDiv"+(F/1+E/1-1)}if(activeSelectBoxHour){activeSelectBoxHour.style.color="";if(document.getElementById("hourDiv"+currentHour)){activeSelectBoxHour=document.getElementById("hourDiv"+currentHour);activeSelectBoxHour.style.color=selectBoxHighlightColor}}}function updateYearDiv(){var B=5;if(turnOffYearSpan){B=0}var D=document.getElementById("yearDropDown");var A=D.getElementsByTagName("DIV");for(var C=1;C<A.length-1;C++){A[C].innerHTML=currentYear/1-B+C;if(currentYear==(currentYear/1-B+C)){A[C].style.color=selectBoxHighlightColor;activeSelectBoxYear=A[C]}else{A[C].style.color=""}}}function updateMonthDiv(){for(no=0;no<12;no++){document.getElementById("monthDiv_"+no).style.color=""}document.getElementById("monthDiv_"+currentMonth).style.color=selectBoxHighlightColor;activeSelectBoxMonth=document.getElementById("monthDiv_"+currentMonth)}function updateHourDiv(){var E=document.getElementById("hourDropDown");var B=E.getElementsByTagName("DIV");var A=0;if((currentHour/1-6+1)<0){A=(currentHour/1-6+1)*-1}for(var D=1;D<B.length-1;D++){var C="";if((currentHour/1-6+D+A)<10){C="0"}B[D].innerHTML=C+(currentHour/1-6+D+A);if(currentHour==(currentHour/1-6+D)){B[D].style.color=selectBoxHighlightColor;activeSelectBoxHour=B[D]}else{B[D].style.color=""}}}function updateMinuteDiv(){for(no=0;no<60;no+=intervalSelectBox_minutes){var A="";if(no<10){A="0"}document.getElementById("minuteDiv_"+A+no).style.color=""}if(document.getElementById("minuteDiv_"+currentMinute)){document.getElementById("minuteDiv_"+currentMinute).style.color=selectBoxHighlightColor;activeSelectBoxMinute=document.getElementById("minuteDiv_"+currentMinute)}}function createYearDiv(){if(!document.getElementById("yearDropDown")){var G=document.createElement("DIV");G.className="monthYearPicker"}else{var G=document.getElementById("yearDropDown");var F=G.getElementsByTagName("DIV");for(var E=0;E<F.length;E++){F[E].parentNode.removeChild(F[E])}}var D=new Date();if(currentYear){D.setFullYear(currentYear)}var A=D.getFullYear()/1-5;var C=10;if(!turnOffYearSpan){var B=document.createElement("DIV");B.innerHTML="&nbsp;&nbsp;- ";B.onclick=changeSelectBoxYear;B.onmouseover=highlightMonthYear;B.onmouseout=function(){selectBoxMovementInProgress=false};B.onselectstart=cancelCalendarEvent;G.appendChild(B)}else{A=D.getFullYear()/1-0;C=2}for(var E=A;E<(A+C);E++){var B=document.createElement("DIV");B.innerHTML=E;B.onmouseover=highlightMonthYear;B.onmouseout=highlightMonthYear;B.onclick=selectYear;B.id="yearDiv"+E;B.onselectstart=cancelCalendarEvent;G.appendChild(B);if(currentYear&&currentYear==E){B.style.color=selectBoxHighlightColor;activeSelectBoxYear=B}}if(!turnOffYearSpan){var B=document.createElement("DIV");B.innerHTML="&nbsp;&nbsp;+ ";B.onclick=changeSelectBoxYear;B.onmouseover=highlightMonthYear;B.onmouseout=function(){selectBoxMovementInProgress=false};B.onselectstart=cancelCalendarEvent;G.appendChild(B)}return G}function slideCalendarSelectBox(){if(selectBoxMovementInProgress){if(activeSelectBox.parentNode.id=="hourDropDown"){changeSelectBoxHour(false,activeSelectBox)}if(activeSelectBox.parentNode.id=="yearDropDown"){changeSelectBoxYear(false,activeSelectBox)}}setTimeout("slideCalendarSelectBox()",speedOfSelectBoxSliding)}function createHourDiv(){if(!document.getElementById("hourDropDown")){var F=document.createElement("DIV");F.className="monthYearPicker"}else{var F=document.getElementById("hourDropDown");var E=F.getElementsByTagName("DIV");for(var D=0;D<E.length;D++){E[D].parentNode.removeChild(E[D])}}if(!currentHour){currentHour=0}var C=currentHour/1;if(C>14){C=14}var A=document.createElement("DIV");A.innerHTML="&nbsp;&nbsp;- ";A.onclick=changeSelectBoxHour;A.onmouseover=highlightMonthYear;A.onmouseout=function(){selectBoxMovementInProgress=false};A.onselectstart=cancelCalendarEvent;F.appendChild(A);for(var D=C;D<C+10;D++){var B="";if(D/1<10){B="0"}var A=document.createElement("DIV");A.innerHTML=B+D;A.onmouseover=highlightMonthYear;A.onmouseout=highlightMonthYear;A.onclick=selectHour;A.id="hourDiv"+D;A.onselectstart=cancelCalendarEvent;F.appendChild(A);if(currentYear&&currentYear==D){A.style.color=selectBoxHighlightColor;activeSelectBoxYear=A}}var A=document.createElement("DIV");A.innerHTML="&nbsp;&nbsp;+ ";A.onclick=changeSelectBoxHour;A.onmouseover=highlightMonthYear;A.onmouseout=function(){selectBoxMovementInProgress=false};A.onselectstart=cancelCalendarEvent;F.appendChild(A);return F}function createMinuteDiv(){if(!document.getElementById("minuteDropDown")){var F=document.createElement("DIV");F.className="monthYearPicker"}else{var F=document.getElementById("minuteDropDown");var E=F.getElementsByTagName("DIV");for(var D=0;D<E.length;D++){E[D].parentNode.removeChild(E[D])}}var A=0;var C="";for(var D=A;D<60;D+=intervalSelectBox_minutes){if(D<10){C="0"}else{C=""}var B=document.createElement("DIV");B.innerHTML=C+D;B.onmouseover=highlightMonthYear;B.onmouseout=highlightMonthYear;B.onclick=selectMinute;B.id="minuteDiv_"+C+D;B.onselectstart=cancelCalendarEvent;F.appendChild(B);if(currentYear&&currentYear==D){B.style.color=selectBoxHighlightColor;activeSelectBoxYear=B}}return F}function highlightSelect(){if(this.className=="selectBoxTime"){this.className="selectBoxTimeOver";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_time_over.gif"}else{if(this.className=="selectBoxTimeOver"){this.className="selectBoxTime";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_time.gif"}}if(this.className=="selectBox"){this.className="selectBoxOver";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_over.gif"}else{if(this.className=="selectBoxOver"){this.className="selectBox";this.getElementsByTagName("IMG")[0].src=pathToImages+"down.gif"}}}function highlightArrow(){if(this.src.indexOf("over")>=0){if(this.src.indexOf("left")>=0){this.src=pathToImages+"left.gif"}if(this.src.indexOf("right")>=0){this.src=pathToImages+"right.gif"}}else{if(this.src.indexOf("left")>=0){this.src=pathToImages+"left_over.gif"}if(this.src.indexOf("right")>=0){this.src=pathToImages+"right_over.gif"}}}function highlightClose(){if(this.src.indexOf("over")>=0){this.src=pathToImages+"close.gif"}else{this.src=pathToImages+"close_over.gif"}}function closeCalendar(){document.getElementById("yearDropDown").style.display="none";document.getElementById("monthDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none";calendarDiv.style.display="none";if(iframeObj){iframeObj.style.display="none";EIS_Hide_Frame()}if(activeSelectBoxMonth){activeSelectBoxMonth.className=""}if(activeSelectBoxYear){activeSelectBoxYear.className=""}}function writeTopBar(){var C=document.createElement("DIV");C.className="topBar";C.id="topBar";calendarDiv.appendChild(C);var G=document.createElement("DIV");G.style.marginRight="1px";var D=document.createElement("IMG");D.src=pathToImages+"left.gif";D.onmouseover=highlightArrow;D.onclick=switchMonth;D.onmouseout=highlightArrow;G.appendChild(D);C.appendChild(G);if(Opera){G.style.width="16px"}var I=document.createElement("DIV");I.style.marginRight="1px";var D=document.createElement("IMG");D.src=pathToImages+"right.gif";D.onclick=switchMonth;D.onmouseover=highlightArrow;D.onmouseout=highlightArrow;I.appendChild(D);if(Opera){I.style.width="16px"}C.appendChild(I);var B=document.createElement("DIV");B.id="monthSelect";B.onmouseover=highlightSelect;B.onmouseout=highlightSelect;B.onclick=showMonthDropDown;var H=document.createElement("SPAN");H.innerHTML=monthArray[currentMonth];H.id="calendar_month_txt";B.appendChild(H);var D=document.createElement("IMG");D.src=pathToImages+"down.gif";D.style.position="absolute";D.style.right="0px";B.appendChild(D);B.className="selectBox";if(Opera){D.style.cssText="float:right;position:relative";D.style.position="relative";D.style.styleFloat="right"}C.appendChild(B);var A=createMonthDiv();A.style.left="37px";A.style.top=B.offsetTop+B.offsetHeight+1+"px";A.style.width="60px";A.id="monthDropDown";calendarDiv.appendChild(A);var F=document.createElement("DIV");F.onmouseover=highlightSelect;F.onmouseout=highlightSelect;F.onclick=showYearDropDown;var H=document.createElement("SPAN");H.innerHTML=currentYear;H.id="calendar_year_txt";F.appendChild(H);C.appendChild(F);var D=document.createElement("IMG");D.src=pathToImages+"down.gif";F.appendChild(D);F.className="selectBox";if(Opera){F.style.width="50px";D.style.cssText="float:right";D.style.position="relative";D.style.styleFloat="right"}var E=createYearDiv();E.style.left="113px";E.style.top=B.offsetTop+B.offsetHeight+1+"px";E.style.width="35px";E.id="yearDropDown";calendarDiv.appendChild(E);var D=document.createElement("IMG");D.src=pathToImages+"close.gif";D.style.styleFloat="right";D.onmouseover=highlightClose;D.onmouseout=highlightClose;D.onclick=closeCalendar;C.appendChild(D);if(!document.all){D.style.position="absolute";D.style.right="2px"}}function writeCalendarContent(){var D=true;if(!calendarContentDiv){calendarContentDiv=document.createElement("DIV");calendarDiv.appendChild(calendarContentDiv);D=false}currentMonth=currentMonth/1;var H=new Date();H.setFullYear(currentYear);H.setDate(1);H.setMonth(currentMonth);var E=H.getDay();if(!weekStartsOnSunday){if(E==0){E=7}E--}document.getElementById("calendar_year_txt").innerHTML=currentYear;document.getElementById("calendar_month_txt").innerHTML=monthArray[currentMonth];document.getElementById("calendar_hour_txt").innerHTML=currentHour;document.getElementById("calendar_minute_txt").innerHTML=currentMinute;var A=calendarContentDiv.getElementsByTagName("TABLE");if(A.length>0){calendarContentDiv.removeChild(A[0])}var G=document.createElement("TABLE");G.width="100%";G.cellSpacing="0";calendarContentDiv.appendChild(G);var F=document.createElement("TBODY");G.appendChild(F);var L=F.insertRow(-1);L.className="calendar_week_row";if(showWeekNumber){var I=L.insertCell(-1);I.innerHTML=weekString;I.className="calendar_week_column";I.style.backgroundColor=selectBoxRolloverBgColor}for(var J=0;J<dayArray.length;J++){var I=L.insertCell(-1);I.innerHTML=dayArray[J]}var L=F.insertRow(-1);if(showWeekNumber){var I=L.insertCell(-1);I.className="calendar_week_column";I.style.backgroundColor=selectBoxRolloverBgColor;var C=getWeek(currentYear,currentMonth,1);I.innerHTML=C}for(var J=0;J<E;J++){var I=L.insertCell(-1);I.innerHTML="&nbsp;"}var K=E;var B=daysInMonthArray[currentMonth];if(B==28){if(isLeapYear(currentYear)){B=29}}for(var J=1;J<=B;J++){H.setDate(J-1);if(K>0&&K%7==0){var L=F.insertRow(-1);if(showWeekNumber){var I=L.insertCell(-1);I.className="calendar_week_column";var C=getWeek(currentYear,currentMonth,J);I.innerHTML=C;I.style.backgroundColor=selectBoxRolloverBgColor}}var I=L.insertCell(-1);if(currentYear==inputYear&&currentMonth==inputMonth&&J==inputDay){I.className="activeDay"}I.innerHTML=J;I.onclick=pickDate;K++}if(!document.all){if(calendarContentDiv.offsetHeight){document.getElementById("topBar").style.top=calendarContentDiv.offsetHeight+document.getElementById("timeBar").offsetHeight+document.getElementById("topBar").offsetHeight-1+"px"}else{document.getElementById("topBar").style.top="";document.getElementById("topBar").style.bottom="0px"}}if(iframeObj){if(!D){setTimeout("resizeIframe()",350)}else{setTimeout("resizeIframe()",10)}}}function resizeIframe(){iframeObj.style.width=calendarDiv.offsetWidth+"px";iframeObj.style.height=calendarDiv.offsetHeight+"px"}function pickTodaysDate(){var A=new Date();currentMonth=A.getMonth();currentYear=A.getFullYear();pickDate(false,A.getDate())}function pickDate(D,C){var B=currentMonth/1+1;if(B<10){B="0"+B}var A;if(!C&&this){A=this.innerHTML}else{A=C}if(A/1<10){A="0"+A}if(returnFormat){returnFormat=returnFormat.replace("dd",A);returnFormat=returnFormat.replace("mm",B);returnFormat=returnFormat.replace("yyyy",currentYear);returnFormat=returnFormat.replace("hh",currentHour);returnFormat=returnFormat.replace("ii",currentMinute);returnFormat=returnFormat.replace("d",A/1);returnFormat=returnFormat.replace("m",B/1);returnDateTo.value=returnFormat;try{returnDateTo.onchange()}catch(D){}}else{for(var E=0;E<returnDateToYear.options.length;E++){if(returnDateToYear.options[E].value==currentYear){returnDateToYear.selectedIndex=E;break}}for(var E=0;E<returnDateToMonth.options.length;E++){if(returnDateToMonth.options[E].value==parseInt(B)){returnDateToMonth.selectedIndex=E;break}}for(var E=0;E<returnDateToDay.options.length;E++){if(returnDateToDay.options[E].value==parseInt(A)){returnDateToDay.selectedIndex=E;break}}if(calendarDisplayTime){for(var E=0;E<returnDateToHour.options.length;E++){if(returnDateToHour.options[E].value==parseInt(currentHour)){returnDateToHour.selectedIndex=E;break}}for(var E=0;E<returnDateToMinute.options.length;E++){if(returnDateToMinute.options[E].value==parseInt(currentMinute)){returnDateToMinute.selectedIndex=E;break}}}}closeCalendar()}function getWeek(E,C,G){if(!weekStartsOnSunday){G=(G/1)}else{G=(G/1)+1}E=E/1;C=C/1+1;var H=Math.floor((14-(C))/12);var F=E+4800-H;var B=(C)+(12*H)-3;var I=G+Math.floor(((153*B)+2)/5)+(365*F)+Math.floor(F/4)-Math.floor(F/100)+Math.floor(F/400)-32045;var J=(I+31741-(I%7))%146097%36524%1461;var D=Math.floor(J/1460);var A=((J-D)%365)+D;NumberOfWeek=Math.floor(A/7)+1;return NumberOfWeek}function writeTimeBar(){var F=document.createElement("DIV");F.id="timeBar";F.className="timeBar";var D=document.createElement("DIV");D.innerHTML="Time:";var A=document.createElement("DIV");A.onmouseover=highlightSelect;A.onmouseout=highlightSelect;A.onclick=showHourDropDown;A.style.width="30px";var E=document.createElement("SPAN");E.innerHTML=currentHour;E.id="calendar_hour_txt";A.appendChild(E);F.appendChild(A);var B=document.createElement("IMG");B.src=pathToImages+"down_time.gif";A.appendChild(B);A.className="selectBoxTime";if(Opera){A.style.width="30px";B.style.cssText="float:right";B.style.position="relative";B.style.styleFloat="right"}var C=createHourDiv();C.style.left="130px";C.style.width="35px";C.id="hourDropDown";calendarDiv.appendChild(C);var H=document.createElement("DIV");H.onmouseover=highlightSelect;H.onmouseout=highlightSelect;H.onclick=showMinuteDropDown;H.style.width="30px";var E=document.createElement("SPAN");E.innerHTML=currentMinute;E.id="calendar_minute_txt";H.appendChild(E);F.appendChild(H);var B=document.createElement("IMG");B.src=pathToImages+"down_time.gif";H.appendChild(B);H.className="selectBoxTime";if(Opera){H.style.width="30px";B.style.cssText="float:right";B.style.position="relative";B.style.styleFloat="right"}var G=createMinuteDiv();G.style.left="167px";G.style.width="35px";G.id="minuteDropDown";calendarDiv.appendChild(G);return F}function writeBottomBar(){var E=new Date();var D=document.createElement("DIV");D.id="bottomBar";D.style.cursor="pointer";D.className="todaysDate";var C=document.createElement("DIV");C.onclick=pickTodaysDate;C.id="todaysDateString";C.style.width=(calendarDiv.offsetWidth-95)+"px";var B=E.getDay();if(!weekStartsOnSunday){if(B==0){B=7}B--}var A=todayStringFormat;A=A.replace("[monthString]",monthArrayShort[E.getMonth()]);A=A.replace("[day]",E.getDate());A=A.replace("[year]",E.getFullYear());A=A.replace("[dayString]",dayArray[B].toLowerCase());A=A.replace("[UCFdayString]",dayArray[B]);A=A.replace("[todayString]",todayString);C.innerHTML=todayString+": "+E.getDate()+". "+monthArrayShort[E.getMonth()]+", "+E.getFullYear();C.innerHTML=A;D.appendChild(C);var F=writeTimeBar();D.appendChild(F);calendarDiv.appendChild(D)}function getTopPos(A){if(A){var B=A.offsetTop+A.offsetHeight;while((A=A.offsetParent)!=null){B+=A.offsetTop}return B+calendar_offsetTop}}function getleftPos(A){if(A){var B=A.offsetLeft;while((A=A.offsetParent)!=null){B+=A.offsetLeft}return B+calendar_offsetLeft}}function positionCalendar(A){calendarDiv.style.left=getleftPos(A)+"px";calendarDiv.style.top=getTopPos(A)+"px";if(iframeObj){iframeObj.style.left=calendarDiv.style.left;iframeObj.style.top=calendarDiv.style.top;iframeObj2.style.left=calendarDiv.style.left;iframeObj2.style.top=calendarDiv.style.top}}function initCalendar(){if(MSIE){iframeObj=document.createElement("IFRAME");iframeObj.style.filter="alpha(opacity=0)";iframeObj.style.position="absolute";iframeObj.border="0px";iframeObj.style.border="0px";iframeObj.style.backgroundColor="#FF0000";iframeObj2=document.createElement("IFRAME");iframeObj2.style.position="absolute";iframeObj2.border="0px";iframeObj2.style.border="0px";iframeObj2.style.height="1px";iframeObj2.style.width="1px";iframeObj2.src="blank.html";iframeObj.src="blank.html";document.body.appendChild(iframeObj2);document.body.appendChild(iframeObj)}calendarDiv=document.createElement("DIV");calendarDiv.id="calendarDiv";calendarDiv.style.zIndex=1000;slideCalendarSelectBox();document.body.appendChild(calendarDiv);writeBottomBar();writeTopBar();if(!currentYear){var A=new Date();currentMonth=A.getMonth();currentYear=A.getFullYear()}writeCalendarContent()}function setTimeProperties(){if(!calendarDisplayTime){document.getElementById("timeBar").style.display="none";document.getElementById("timeBar").style.visibility="hidden";document.getElementById("todaysDateString").style.width="100%"}else{document.getElementById("timeBar").style.display="block";document.getElementById("timeBar").style.visibility="visible";document.getElementById("hourDropDown").style.top=document.getElementById("calendar_minute_txt").parentNode.offsetHeight+calendarContentDiv.offsetHeight+document.getElementById("topBar").offsetHeight+"px";document.getElementById("minuteDropDown").style.top=document.getElementById("calendar_minute_txt").parentNode.offsetHeight+calendarContentDiv.offsetHeight+document.getElementById("topBar").offsetHeight+"px";document.getElementById("minuteDropDown").style.right="50px";document.getElementById("hourDropDown").style.right="50px";document.getElementById("todaysDateString").style.width="115px"}}function calendarSortItems(B,A){return B/1-A/1}function displayCalendar(F,M,D,P,C){F=document.getElementById(F);if(P){calendarDisplayTime=true}else{calendarDisplayTime=false}if(F.value.length>0){if(!M.match(/^[0-9]*?$/gi)){var L=F.value.split(/[^0-9]/gi);var J=new Array();J.m=M.indexOf("mm");if(J.m==-1){J.m=M.indexOf("m")}J.d=M.indexOf("dd");if(J.d==-1){J.d=M.indexOf("d")}J.y=M.indexOf("yyyy");J.h=M.indexOf("hh");J.i=M.indexOf("ii");var B=Array();B[0]=J.m;B[1]=J.d;B[2]=J.y;B[3]=J.h;B[4]=J.i;B=B.sort(calendarSortItems);var A=-1;currentHour="00";currentMinute="00";for(var O=0;O<B.length;O++){if(B[O]==-1){continue}A++;if(B[O]==J.m){currentMonth=L[A]-1;continue}if(B[O]==J.y){currentYear=L[A];continue}if(B[O]==J.d){tmpDay=L[A];continue}if(B[O]==J.h){currentHour=L[A];continue}if(B[O]==J.i){currentMinute=L[A];continue}}currentMonth=currentMonth/1;tmpDay=tmpDay/1}else{var N=M.indexOf("mm");currentMonth=F.value.substr(N,2)/1-1;var G=M.indexOf("yyyy");currentYear=F.value.substr(G,4);var I=M.indexOf("dd");tmpDay=F.value.substr(I,2);var H=M.indexOf("hh");if(H>=0){tmpHour=F.value.substr(H,2);currentHour=tmpHour}else{currentHour="00"}var E=M.indexOf("ii");if(E>=0){tmpMinute=F.value.substr(E,2);currentMinute=tmpMinute}else{currentMinute="00"}}}else{var K=new Date();currentMonth=K.getMonth();currentYear=K.getFullYear();currentHour="08";currentMinute="00";tmpDay=K.getDate()}inputYear=currentYear;inputMonth=currentMonth;inputDay=tmpDay/1;if(!calendarDiv){initCalendar()}else{if(calendarDiv.style.display=="block"){closeCalendar();return false}writeCalendarContent()}returnFormat=M;returnDateTo=F;positionCalendar(D);calendarDiv.style.visibility="visible";calendarDiv.style.display="block";if(iframeObj){iframeObj.style.display="";iframeObj.style.height="140px";iframeObj.style.width="195px";iframeObj2.style.display="";iframeObj2.style.height="140px";iframeObj2.style.width="195px"}setTimeProperties();updateYearDiv();updateMonthDiv();updateMinuteDiv();updateHourDiv()}function displayCalendarSelectBox(E,F,D,C,B,A){if(!C){calendarDisplayTime=false}else{calendarDisplayTime=true}currentMonth=F.options[F.selectedIndex].value/1-1;currentYear=E.options[E.selectedIndex].value;if(C){currentHour=C.options[C.selectedIndex].value;inputHour=currentHour/1}if(B){currentMinute=B.options[B.selectedIndex].value;inputMinute=currentMinute/1}inputYear=E.options[E.selectedIndex].value;inputMonth=F.options[F.selectedIndex].value/1-1;inputDay=D.options[D.selectedIndex].value/1;if(!calendarDiv){initCalendar()}else{writeCalendarContent()}returnDateToYear=E;returnDateToMonth=F;returnDateToDay=D;returnDateToHour=C;returnDateToMinute=B;returnFormat=false;returnDateTo=false;positionCalendar(A);calendarDiv.style.visibility="visible";calendarDiv.style.display="block";if(iframeObj){iframeObj.style.display="";iframeObj.style.height=calendarDiv.offsetHeight+"px";iframeObj.style.width=calendarDiv.offsetWidth+"px";iframeObj2.style.display="";iframeObj2.style.height=calendarDiv.offsetHeight+"px";iframeObj2.style.width=calendarDiv.offsetWidth+"px"}setTimeProperties();updateYearDiv();updateMonthDiv();updateHourDiv();updateMinuteDiv()}function newPageReview(C,A,E,D){category=A;subcategory=E;var B="uploading/set_pid.php";request.open("POST",B,false);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");url1="product_id="+C+"&category="+A+"&subcategory="+E+"&what=Reviews";request.send(url1);window.open("SnatchKing.html#section:"+D)}function show_Review_Listings(F){show_loader();var A="uploading/give_pid.php";request.open("GET",A,false);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.send(null);var D=request.responseText;hide_loader();var I=document.getElementById("Reviews");var E=document.getElementById("My Account");var G=document.getElementById("Contests");var C=document.getElementById("Alerts");var B=document.getElementById("MarketPlace");document.getElementById("myAAccount").style.display="none";document.getElementById("myContest").style.display="none";document.getElementById("myAlerts").style.display="none";Spry.Widget.TabbedPanels.prototype.removeClassName(E,"TabbedPanelsTabSelected");Spry.Widget.TabbedPanels.prototype.removeClassName(G,"TabbedPanelsTabSelected");Spry.Widget.TabbedPanels.prototype.removeClassName(C,"TabbedPanelsTabSelected");if(F=="ShowReviews"){document.getElementById("outerMostDiv").style.display="block";document.getElementById("myMarketPlace").style.display="none";Spry.Widget.TabbedPanels.prototype.addClassName(I,"TabbedPanelsTabSelected");Spry.Widget.TabbedPanels.prototype.removeClassName(B,"TabbedPanelsTabSelected");get_d_reviews(F+":"+D)}else{if(F=="ShowListed"){document.getElementById("outerMostDiv").style.display="none";document.getElementById("myMarketPlace").style.display="block";Spry.Widget.TabbedPanels.prototype.addClassName(B,"TabbedPanelsTabSelected");Spry.Widget.TabbedPanels.prototype.removeClassName(I,"TabbedPanelsTabSelected");var H=D.split(":");get_Listed_Sell(H[0],H[1],H[2],0)}}}function get_Listed_Sell(B,E,F,A){Mcategory=E;Msubcategory=F;limit=A;previous=limit;var C="uploading/getListed.php";request.open("POST",C,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");url1="pid="+B+"&category="+E+"&subcategory="+F+"&limit="+limit;request.onreadystatechange=listingRecentNew;request.send(url1);var D="section:Listed/@1"+Mcategory+"2@"+Msubcategory+"@3&limit="+limit+"&previous="+previous+"&pages="+B;var G="<p>The following location was loaded from our DHTML history: "+D+"</p>";dhtmlHistory.add(D,G)}function onReviewOnLoad(){}function get_pid(){var A="uploading/give_pid.php";request1.open("GET",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updategivePid;request1.send(null)}function updategivePid(){if(request1.readyState==4){if(request1.status==200){var A=new Array;A=request1.responseText.split(";");getValuesForReviews(A[0],A[1],A[2])}}}var outp;var oldins;var posi=-1;var words=new Array();var input;var key;var suggestions=new Array();function xupdate_auto(){if(request1.readyState==4){if(request1.status==200){var B=request1.responseText;var A=B.split(",");suggestions=A;hide_loader()}}}function hide_loader(){if(document.getElementById("divx")){var A=document.getElementById("divx");var B=document.getElementById("divx1");A.className="divx_n";B.className="divx1_n"}}function show_loader(){if(document.all){ht=document.body.offsetHeight;wt=document.body.offsetWidth}else{ht=document.height;wt=document.width}var A=document.getElementById("divx");var B=document.getElementById("divx1");A.className="divx";B.className="divx1";A.style.width=wt+"px";A.style.height=ht+"px";B.style.width=wt+"px";B.style.height=ht+"px"}function change_text(){if(request1.readyState==4){if(request1.status==200){var B=request1.responseText;var A=B.split("*");var C=A[0].split(",");if(C.length==1){document.getElementById("clr").innerHTML='<input id="color_name" size="30">'}else{box_s='<select name="select" id="color_name" style="width:198px;"><option>Select Colour of Your Car</option>';for(t=0;t<C.length;t++){var_f=A[1].split(",");var_d=A[2].split(",");box_s+='<option value="'+C[t]+'">'+C[t]+"</option>"}box_s+="</select>";document.getElementById("clr").innerHTML=box_s}}}}function get_colors(B){var A="Marketplace/get_colors.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=change_text;url1="name="+escape(B);request1.send(url1)}function xsetVisible(F){var B=document.getElementById("shadow_new");var E=document.getElementById("output_new");var C=document.getElementById("first_auto");if(escape(Rcategory)=="Autos"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-124;oy=-A-47}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-134;oy=-A-33+1}}if(escape(Rcategory)=="Appliances"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-86;oy=-A-73+1}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-96;oy=-A-58+1}}if(escape(Rcategory)=="Books"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-111;oy=-A-161}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-122;oy=-A-145+1}}if(escape(Rcategory)=="loc"&&escape(Rsubcategory)=="loc"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-111;oy=-A-125}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-122;oy=-A-109+1}}if(escape(Rcategory)=="Computers"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-86;oy=-A-73}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-97;oy=-A-55+1}}if(Rcategory=="Movies,Games"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-111;oy=-A-126}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-122;oy=-A-110+1}}if(Rcategory=="Mobiles"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-86;oy=-A-73}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-97;oy=-A-57+1}}if(Rcategory=="Electronics"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-86;oy=-A-73}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-97;oy=-A-57+1}}if(Rcategory=="loc"&&Rsubcategory=="loc_1"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-131;oy=-A-62}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-142;oy=-A-45}}if(Rcategory=="loc"&&Rsubcategory=="loc_2"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-241;oy=-A-101}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-252;oy=-A-85}}if(Rcategory=="loc"&&Rsubcategory=="loc_3"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D-111;oy=-A-106}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D-122;oy=-A-104}}if(Rcategory=="loc"&&Rsubcategory=="loc_4"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D;oy=-A}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D;oy=-A}}if(Rcategory=="loc"&&Rsubcategory=="loc_5"){if(navigator.appName=="Microsoft Internet Explorer"){var A=document.documentElement.scrollTop;var D=document.documentElement.scrollLeft;ox=-D;oy=-A}else{var A=window.pageYOffset;var D=window.pageXOffset;ox=-D;oy=-A}}scr_ratio=parseFloat(screen.width/screen.height);if(scr_ratio==1.6){ox=ox-128;oy=oy-36}B.style.position="absolute";B.style.top=getTopPos(C)+"px";B.style.left=getleftPos(C)+"px";B.style.visibility="hidden";E.style.top=getTopPos(C)+"px";E.style.left=getleftPos(C)+"px";E.style.visibility=F;B.style.zIndex=10000;E.style.zIndex=10000}function xauto_init(){show_loader();var A="reviews/auto_select.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=xupdate_auto;url1="category="+escape(Rcategory)+"&subcategory="+escape(Rsubcategory);request1.send(url1);suggestions=new Array();outp=document.getElementById("output_new");t1=window.setInterval("xlookAt()",100);ts1=window.setInterval("check_opt()",500);if(document.getElementById("first_auto")){document.getElementById("output_new").style.width=(parseInt(document.getElementById("first_auto").offsetWidth)-4)+"px";document.getElementById("shadow_new").style.width=(parseInt(document.getElementById("first_auto").offsetWidth)-4)+"px";xsetVisible("hidden")}document.onkeydown=xkeygetter;document.onkeyup=xkeyHandler}function hide_hint2(){xsetVisible("hidden")}function check_opt(){if(tout<=0){xsetVisible("hidden");posi=-1;tout=iv}else{tout--}}function xfindPosX(A){var B=0;if(A.offsetParent){while(A.offsetParent){B+=A.offsetLeft;A=A.offsetParent}}else{if(A.x){B+=A.x}}return B}function xfindPosY(B){var A=0;if(B.offsetParent){A+=B.offsetHeight;while(B.offsetParent){A+=B.offsetTop;B=B.offsetParent}}else{if(B.y){A+=B.y;A+=B.height}}return A}function xlookAt(){if(document.getElementById("first_auto")){var A=document.getElementById("first_auto").value;if(oldins==A){return }else{if(posi>-1){}else{if(A.length>0){words=xgetWord(A);if(words.length>0){xclearOutput();for(var B=0;B<words.length;++B){xaddWord(words[B])}xsetVisible("visible");input=document.getElementById("first_auto").value}else{xsetVisible("hidden");posi=-1}}else{xsetVisible("hidden");posi=-1}}}oldins=A}}function xaddWord(B){var A=document.createElement("div");A.appendChild(document.createTextNode(B));A.onmouseover=xmouseHandler;A.onmouseout=xmouseHandlerOut;A.onclick=xmouseClick;A.className="float_no";A.setAttribute("style","z-index:2000;width:100%;");outp.appendChild(A)}function xclearOutput(){while(outp.hasChildNodes()){noten=outp.firstChild;outp.removeChild(noten)}posi=-1}function xgetWord(E){var D=new Array();for(var C=0;C<suggestions.length;++C){var B=-1;var A=1;while(A==1&&++B<E.length){if(suggestions[C].charAt(B)!=E.charAt(B)&&suggestions[C].charAt(B).toLowerCase()!=E.charAt(B)){A=0}}if(A==1){D[D.length]=suggestions[C]}if(D.length>6){break}}return D}function xsetColor(A,B,C){outp.childNodes[A].style.background=B;outp.childNodes[A].style.color=C;outp.childNodes[A].style.zIndex=0}function xkeygetter(A){if(!A&&window.event){A=window.event}if(A){key=A.keyCode}else{key=A.which}}function xkeyHandler(B){if(document.getElementById("output_new")){if(document.getElementById("output_new").style.visibility=="visible"){tout=iv;var A=document.getElementById("first_auto");if(key==40){if(posi==-1){posi=0;xsetColor(posi,"#51AC84","white");A.value=outp.childNodes[posi].firstChild.nodeValue}else{if(posi==words.length-1){xsetColor(posi,"#fff","black");posi=0;xsetColor(posi,"#51AC84","white");A.value=outp.childNodes[posi].firstChild.nodeValue}else{if(posi>=0&&posi<words.length){xsetColor(posi,"#fff","black");posi++;xsetColor(posi,"#51AC84","white");A.value=outp.childNodes[posi].firstChild.nodeValue}}}}else{if(key==38){if(posi==0&&posi<words.length-1){xsetColor(posi,"#fff","black");posi=words.length-1;xsetColor(posi,"#51AC84","white");A.value=outp.childNodes[posi].firstChild.nodeValue}else{if(posi>0&&posi<=words.length-1){xsetColor(posi,"#fff","black");posi--;xsetColor(posi,"#51AC84","white");A.value=outp.childNodes[posi].firstChild.nodeValue}}}else{if(key==27){A.value=input;xsetVisible("hidden");posi=-1;oldins=input;if(escape(Rsubcategory)=="Cars"){get_colors(input)}}else{if(key==8){posi=-1;oldins=-1}else{if(key==13){xsetVisible("hidden");if(escape(Rsubcategory)=="Cars"){get_colors(outp.childNodes[posi].firstChild.nodeValue)}posi=-1;oldins=outp.childNodes[posi].firstChild.nodeValue}}}}}}}if(document.getElementById("output_new1")){if(document.getElementById("output_new1").style.visibility=="visible"){var A=document.getElementById("first_auto1");tout1=iv;if(key==40){if(posi1==-1){posi1=0;x_setColor(posi1,"#51AC84","white");A.value=outp1.childNodes[posi1].firstChild.nodeValue}else{if(posi1==words.length-1){x_setColor(posi1,"#fff","black");posi1=0;x_setColor(posi1,"#51AC84","white");A.value=outp1.childNodes[posi1].firstChild.nodeValue}else{if(posi1>=0&&posi1<words.length){x_setColor(posi1,"#fff","black");posi1++;x_setColor(posi1,"#51AC84","white");A.value=outp1.childNodes[posi1].firstChild.nodeValue}}}}else{if(key==38){if(posi1==0&&posi1<words.length-1){x_setColor(posi1,"#fff","black");posi1=words.length-1;x_setColor(posi1,"#51AC84","white");A.value=outp1.childNodes[posi1].firstChild.nodeValue}else{if(posi1>0&&posi1<=words.length-1){x_setColor(posi1,"#fff","black");posi1--;x_setColor(posi1,"#51AC84","white");A.value=outp1.childNodes[posi1].firstChild.nodeValue}}}else{if(key==27){A.value=input1;x_setVisible("hidden");posi1=-1;oldins1=input1;if(escape(Rsubcategory)=="Cars"){get_colors(input1)}}else{if(key==8){posi1=-1;oldins1=-1}else{if(key==13){x_setVisible("hidden");posi1=-1;oldins1=outp1.childNodes[posi1].firstChild.nodeValue;if(escape(Rsubcategory)=="Cars"){get_colors(outp1.childNodes[posi1].firstChild.nodeValue)}}}}}}}}if(document.getElementById("output_new2")){if(document.getElementById("output_new2").style.visibility=="visible"){var A=document.getElementById("first_auto2");tout2=iv;if(key==40){if(posi2==-1){posi2=0;x1_setColor(posi2,"#51AC84","white");A.value=outp2.childNodes[posi2].firstChild.nodeValue}else{if(posi2==words.length-1){x1_setColor(posi2,"#fff","black");posi2=0;x1_setColor(posi2,"#51AC84","white");A.value=outp2.childNodes[posi2].firstChild.nodeValue}else{if(posi2>=0&&posi2<words.length){x1_setColor(posi2,"#fff","black");posi2++;x1_setColor(posi2,"#51AC84","white");A.value=outp2.childNodes[posi2].firstChild.nodeValue}}}}else{if(key==38){if(posi2==0&&posi2<words.length-1){x1_setColor(posi2,"#fff","black");posi2=words.length-1;x1_setColor(posi2,"#51AC84","white");A.value=outp2.childNodes[posi2].firstChild.nodeValue}else{if(posi2>0&&posi2<=words.length-1){x1_setColor(posi2,"#fff","black");posi2--;x1_setColor(posi2,"#51AC84","white");A.value=outp2.childNodes[posi2].firstChild.nodeValue}}}else{if(key==27){A.value=input2;x1_setVisible("hidden");posi2=-1;oldins2=input2;if(escape(Rsubcategory)=="Cars"){get_colors(input2)}}else{if(key==8){posi2=-1;oldins2=-1}else{if(key==13){x1_setVisible("hidden");posi2=-1;oldins2=outp2.childNodes[posi2].firstChild.nodeValue;if(escape(Rsubcategory)=="Cars"){get_colors(outp2.childNodes[posi2].firstChild.nodeValue)}}}}}}}}}var xmouseHandler=function(){for(var A=0;A<words.length;++A){xsetColor(A,"white","black")}this.style.background="#51AC84";this.style.color="white";tout=iv};var xmouseHandlerOut=function(){this.style.background="white";this.style.color="black"};var xmouseClick=function(){document.getElementById("first_auto").value=this.firstChild.nodeValue;xsetVisible("hidden");posi=-1;oldins=this.firstChild.nodeValue;if(escape(Rsubcategory)=="Cars"){get_colors(this.firstChild.nodeValue)}};var outp2;var oldins2;var posi2=-1;var words=new Array();var input2;var key2;var suggestions2=new Array();function x1_update_auto(){if(request1.readyState==4){if(request1.status==200){var A=request1.responseText;var B=A.split(",");suggestions2=B;hide_loader();x_auto_init()}}}function x1_setVisible(F){var A=document.getElementById("shadow_new2");var C=document.getElementById("output_new2");var D=document.getElementById("first_auto2");if(escape(Rcategory2)=="loc"&&escape(Rsubcategory2)=="loc"){if(navigator.appName=="Microsoft Internet Explorer"){var E=document.documentElement.scrollTop;var B=document.documentElement.scrollLeft;ox=-B-111;oy=-E-126}else{var E=window.pageYOffset;var B=window.pageXOffset;ox=-B-122;oy=-E-110}}if(Rcategory2=="Movies,Games"){if(navigator.appName=="Microsoft Internet Explorer"){var E=document.documentElement.scrollTop;var B=document.documentElement.scrollLeft;ox=-B-111;oy=-E-106}else{var E=window.pageYOffset;var B=window.pageXOffset;ox=-B-122;oy=-E-103}}scr_ratio=parseFloat(screen.width/screen.height);A.style.posi2tion="absolute";A.style.visibility="hidden";C.style.posi2tion="absolute";C.style.top=getTopPos(D)+"px";C.style.left=getleftPos(D)+"px";C.style.visibility=F;C.style.zIndex=9999}function x1_auto_init(){show_loader();var A="reviews/auto_select.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=x1_update_auto;url1="category="+escape(Rcategory2)+"&subcategory="+escape(Rsubcategory2);request1.send(url1);outp2=document.getElementById("output_new2");t3=window.setInterval("x1_lookAt()",100);ts3=window.setInterval("check_opt2()",500);document.getElementById("output_new2").style.width=(parseInt(document.getElementById("first_auto2").offsetWidth)-4)+"px";document.getElementById("shadow_new2").style.width=(parseInt(document.getElementById("first_auto2").offsetWidth)-4)+"px";x1_setVisible("hidden")}function hide_hint(){x1_setVisible("hidden")}function check_opt2(){if(tout2<=0){x1_setVisible("hidden");posi2=-1;tout2=iv}else{tout2--}}function x1_findPosX(A){var B=0;if(A.offsetParent){while(A.offsetParent){B+=A.offsetLeft;A=A.offsetParent}}else{if(A.x){B+=A.x}}return B}function x1_findPosY(B){var A=0;if(B.offsetParent){A+=B.offsetHeight;while(B.offsetParent){A+=B.offsetTop;B=B.offsetParent}}else{if(B.y){A+=B.y;A+=B.height}}return A}function x1_lookAt(){if(document.getElementById("first_auto2")){var A=document.getElementById("first_auto2").value;if(oldins2==A){return }else{if(posi2>-1){}else{if(A.length>0){words=x1_getWord(A);if(words.length>0){x1_clearoutput2();for(var B=0;B<words.length;++B){x1_addWord(words[B])}x1_setVisible("visible");input2=document.getElementById("first_auto2").value}else{x1_setVisible("hidden");posi2=-1}}else{x1_setVisible("hidden");posi2=-1}}}oldins2=A}}function x1_addWord(B){var A=document.createElement("div");A.appendChild(document.createTextNode(B));A.onmouseover=x1_mouseHandler;A.onmouseout=x1_mouseHandlerOut;A.onclick=x1_mouseClick;A.className="float_no";A.setAttribute("style","z-index:10000;width:100%;");outp2.appendChild(A)}function x1_clearoutput2(){while(outp2.hasChildNodes()){noten=outp2.firstChild;outp2.removeChild(noten)}posi2=-1}function x1_getWord(E){var D=new Array();for(var C=0;C<suggestions2.length;++C){var B=-1;var A=1;while(A==1&&++B<E.length){if(suggestions2[C].charAt(B)!=E.charAt(B)&&suggestions2[C].charAt(B).toLowerCase()!=E.charAt(B)){A=0}}if(A==1){D[D.length]=suggestions2[C]}if(D.length>6){break}}return D}function x1_setColor(A,B,C){outp2.childNodes[A].style.background=B;outp2.childNodes[A].style.color=C;outp2.childNodes[A].style.zIndex=0}function x1_key2getter(A){if(!A&&window.event){A=window.event}if(A){key2=A.keyCode}else{key2=A.which}}function x1_key2Handler(B){if(document.getElementById("shadow_new2").style.visibility=="visible"){var A=document.getElementById("first_auto2");if(key2==40){if(posi2==-1){posi2=0;x1_setColor(posi2,"#51AC84","white");A.value=outp2.childNodes[posi2].firstChild.nodeValue}else{if(posi2==words.length-1){x1_setColor(posi2,"#fff","black");posi2=0;x1_setColor(posi2,"#51AC84","white");A.value=outp2.childNodes[posi2].firstChild.nodeValue}else{if(posi2>=0&&posi2<words.length){x1_setColor(posi2,"#fff","black");posi2++;x1_setColor(posi2,"#51AC84","white");A.value=outp2.childNodes[posi2].firstChild.nodeValue}}}}else{if(key2==38){if(posi2==0&&posi2<words.length-1){x1_setColor(posi2,"#fff","black");posi2=words.length-1;x1_setColor(posi2,"#51AC84","white");A.value=outp2.childNodes[posi2].firstChild.nodeValue}else{if(posi2>0&&posi2<=words.length-1){x1_setColor(posi2,"#fff","black");posi2--;x1_setColor(posi2,"#51AC84","white");A.value=outp2.childNodes[posi2].firstChild.nodeValue}}}else{if(key2==27){A.value=input2;x1_setVisible("hidden");posi2=-1;oldins2=input2}else{if(key2==8){posi2=-1;oldins2=-1}else{if(key2==13){x1_setVisible("hidden");posi2=-1;oldins2=outp2.childNodes[posi2].firstChild.nodeValue}}}}}}}var x1_mouseHandler=function(){for(var A=0;A<words.length;++A){x1_setColor(A,"white","black")}this.style.background="#51AC84";this.style.color="white"};var x1_mouseHandlerOut=function(){this.style.background="white";this.style.color="black"};var x1_mouseClick=function(){document.getElementById("first_auto2").value=this.firstChild.nodeValue;x1_setVisible("hidden");posi2=-1;oldins2=this.firstChild.nodeValue};var outp1;var oldins1;var posi1=-1;var words=new Array();var input1;var key1;var suggestions1=new Array();function x_update_auto(){if(request1.readyState==4){if(request1.status==200){var A=request1.responseText;var B=A.split(",");suggestions1=B;hide_loader();xauto_init()}}}function x_setVisible(F){var A=document.getElementById("shadow_new1");var C=document.getElementById("output_new1");var D=document.getElementById("first_auto1");if(escape(Rcategory1)=="loc"&&escape(Rsubcategory1)=="loc"){if(navigator.appName=="Microsoft Internet Explorer"){var B=document.documentElement.scrollTop;var E=document.documentElement.scrollLeft;ox=-E-111;oy=-B-126}else{var B=window.pageYOffset;var E=window.pageXOffset;ox=-E-122;oy=-B-110}}if(escape(Rcategory1)=="Entertainment"){if(navigator.appName=="Microsoft Internet Explorer"){var B=document.documentElement.scrollTop;var E=document.documentElement.scrollLeft;ox=-E-111;oy=-B-106}else{var B=window.pageYOffset;var E=window.pageXOffset;ox=-E-122;oy=-B-104}}if(escape(Rcategory1)=="loc"&&Rsubcategory1=="loc_5"){if(navigator.appName=="Microsoft Internet Explorer"){var B=document.documentElement.scrollTop;var E=document.documentElement.scrollLeft;ox=-E;oy=-B}else{var B=window.pageYOffset;var E=window.pageXOffset;ox=-E;oy=-B}}scr_ratio1=parseFloat(screen.width/screen.height);if(scr_ratio1==1.6){ox=ox-128;oy=oy-36}A.style.posi1tion="absolute";A.style.top=(x_findPosY(D)+oy)+"px";A.style.left=(x_findPosX(D)+ox)+"px";A.style.visibility="hidden";C.style.posi1tion="absolute";C.style.top=getTopPos(D)+"px";C.style.left=getleftPos(D)+"px";C.style.visibility=F;C.style.zIndex=10000}function x_auto_init(){show_loader();var A="reviews/auto_select.php";request1.open("POST",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=x_update_auto;url1="category="+escape(Rcategory1)+"&subcategory="+escape(Rsubcategory1);request1.send(url1);outp1=document.getElementById("output_new1");t2=window.setInterval("x_lookAt()",100);ts2=window.setInterval("check_opt1()",500);document.getElementById("output_new1").style.width=(parseInt(document.getElementById("first_auto1").offsetWidth)-4)+"px";document.getElementById("shadow_new1").style.width=(parseInt(document.getElementById("first_auto1").offsetWidth)-4)+"px";x_setVisible("hidden")}function hide_hint1(){x_setVisible("hidden")}function check_opt1(){if(tout1<=0){x_setVisible("hidden");posi1=-1;tout1=iv}else{tout1--}}function x_findPosX(A){var B=0;if(A.offsetParent){while(A.offsetParent){B+=A.offsetLeft;A=A.offsetParent}}else{if(A.x){B+=A.x}}return B}function x_findPosY(B){var A=0;if(B.offsetParent){A+=B.offsetHeight;while(B.offsetParent){A+=B.offsetTop;B=B.offsetParent}}else{if(B.y){A+=B.y;A+=B.height}}return A}function x_lookAt(){if(document.getElementById("first_auto1")){var A=document.getElementById("first_auto1").value;if(oldins1==A){return }else{if(posi1>-1){}else{if(A.length>0){words=x_getWord(A);if(words.length>0){x_clearoutput1();for(var B=0;B<words.length;++B){x_addWord(words[B])}x_setVisible("visible");input1=document.getElementById("first_auto1").value}else{x_setVisible("hidden");posi1=-1}}else{x_setVisible("hidden");posi1=-1}}}oldins1=A}}function x_addWord(B){var A=document.createElement("div");A.appendChild(document.createTextNode(B));A.onmouseover=x_mouseHandler;A.onmouseout=x_mouseHandlerOut;A.onclick=x_mouseClick;A.className="float_no";A.setAttribute("style","z-index:10000;width:100%;");outp1.appendChild(A)}function x_clearoutput1(){while(outp1.hasChildNodes()){noten=outp1.firstChild;outp1.removeChild(noten)}posi1=-1}function x_getWord(E){var D=new Array();for(var C=0;C<suggestions1.length;++C){var B=-1;var A=1;while(A==1&&++B<E.length){if(suggestions1[C].charAt(B)!=E.charAt(B)&&suggestions1[C].charAt(B).toLowerCase()!=E.charAt(B)){A=0}}if(A==1){D[D.length]=suggestions1[C]}if(D.length>6){break}}return D}function x_setColor(A,B,C){outp1.childNodes[A].style.background=B;outp1.childNodes[A].style.color=C;outp1.childNodes[A].style.zIndex=0}function x_key1getter(A){if(!A&&window.event){A=window.event}if(A){key1=A.keyCode}else{key1=A.which}}function x_key1Handler(B){if(document.getElementById("shadow_new1").style.visibility=="visible"){var A=document.getElementById("first_auto1");if(key1==40){if(posi1==-1){posi1=0;x_setColor(posi1,"#51AC84","white");A.value=outp1.childNodes[posi1].firstChild.nodeValue}else{if(posi1==words.length-1){x_setColor(posi1,"#fff","black");posi1=0;x_setColor(posi1,"#51AC84","white");A.value=outp1.childNodes[posi1].firstChild.nodeValue}else{if(posi1>=0&&posi1<words.length){x_setColor(posi1,"#fff","black");posi1++;x_setColor(posi1,"#51AC84","white");A.value=outp1.childNodes[posi1].firstChild.nodeValue}}}}else{if(key1==38){if(posi1==0&&posi1<words.length-1){x_setColor(posi1,"#fff","black");posi1=words.length-1;x_setColor(posi1,"#51AC84","white");A.value=outp1.childNodes[posi1].firstChild.nodeValue}else{if(posi1>0&&posi1<=words.length-1){x_setColor(posi1,"#fff","black");posi1--;x_setColor(posi1,"#51AC84","white");A.value=outp1.childNodes[posi1].firstChild.nodeValue}}}else{if(key1==27){A.value=input1;x_setVisible("hidden");posi1=-1;oldins1=input1}else{if(key1==8){posi1=-1;oldins1=-1}else{if(key1==13){x_setVisible("hidden");posi1=-1;oldins1=outp1.childNodes[posi1].firstChild.nodeValue}}}}}}}var x_mouseHandler=function(){for(var A=0;A<words.length;++A){x_setColor(A,"white","black")}this.style.background="#51AC84";this.style.color="white"};var x_mouseHandlerOut=function(){this.style.background="white";this.style.color="black"};var x_mouseClick=function(){document.getElementById("first_auto1").value=this.firstChild.nodeValue;x_setVisible("hidden");posi1=-1;oldins1=this.firstChild.nodeValue};function shortlist(B){var A=checkLoginNew();if(A==1){save_shortlist(B)}else{Message_Shortlist(B)}}function save_shortlist(B){var A="uploading/save_shortlist.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updatesave_shortlist;url1="clid="+escape(B);request.send(url1)}function updatesave_shortlist(){if(request.readyState==4){if(request.status==200){alert("You Have Successfully Shortlisted the Product!");closeMarketWindow()}}}function post_shortlist(){var A="uploading/post_shortlist.php";request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updatepost_shortlist;request.send(A)}function updatepost_shortlist(){if(request.readyState==4){if(request.status==200){}}}function Message_Shortlist(E){windowIsActive=null;var U=getPageSize();var N=document.getElementById("overlay");N.style.height=(U[1]+"px");N.style.display="block";N.className="overlay_alphacube";var G=document.getElementById("overlayiframe");G.style.height=(U[1]+"px");G.style.display="block";market_remove("email_inner_div");document.getElementById("write_reviewDiv1").style.display="none";document.getElementById("AddsDisplayDiv").style.display="none";document.getElementById("closeImage").style.display="none";var M=document.getElementById("email_inner_div");var O=document.getElementById("email_outer_div");M.style.display="block";M.style.width="550px";O.style.display="block";O.style.height="100px";O.style.width="570px";O.style.paddingTop="0px";M.style.background="#ffffff";M.setAttribute("align","center");var T=document.createElement("font");T.style.fontWeight="Bold";T.style.fontFamily="ACaslonPro-SemiboldItalic";T.style.fontSize="14pt";T.style.color="red";var J=document.createTextNode("You need to log in!!");T.appendChild(J);T.appendChild(document.createElement("br"));var L=document.createElement("font");L.className="bold_green";var A=document.createTextNode("You need to login so that you can shortlist this ad & add to your account. If your not a member, please register, its free and takes less than 10 seconds.");L.appendChild(A);var Q=document.createElement("table");Q.width="100%";Q.border=0;Q.cellSpacing=3;Q.cellPadding=0;Q.setAttribute("align","center");var B=document.createElement("tbody");var V=document.createElement("tr");var I=document.createElement("td");I.setAttribute("align","center");I.colSpan=3;L.appendChild(document.createElement("br"));L.appendChild(document.createElement("br"));I.appendChild(T);I.appendChild(L);V.appendChild(I);B.appendChild(V);var R=document.createElement("tr");var S=document.createElement("tr");var H=document.createElement("td");H.setAttribute("align","center");H.setAttribute("width","33%");var F=document.createElement("td");F.setAttribute("align","center");F.setAttribute("width","33%");var D=document.createElement("td");D.setAttribute("align","center");D.setAttribute("width","33%");var C=document.createElement("input");C.setAttribute("type","button");C.setAttribute("value","   Login   ");C.onclick=function(){closeMarketWindow();NewLogin("Shortlist:"+E);document.getElementById("closeImage").style.display="block";return 1};H.appendChild(C);H.appendChild(C);S.appendChild(H);var P=document.createElement("input");P.setAttribute("type","button");P.setAttribute("value"," Register ");P.onclick=function(){NewUserRegister("Shortlist:"+E);document.getElementById("closeImage").style.display="block";return 1};D.appendChild(P);S.appendChild(D);var K=document.createElement("input");K.setAttribute("type","button");K.setAttribute("value"," Close ");K.onclick=Function("closeMarketWindow()");F.appendChild(K);S.appendChild(F);B.appendChild(S);Q.appendChild(B);M.appendChild(Q);testT()}var tech_spec=new Array();var flag=0;function car_features(C){var B="uploading/get_car_features.php?pid="+C;request1.open("GET",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updatecar_features;request1.send(null);var A="uploading/get_prod_rating.php?pid="+C;request.open("GET",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updatecar_rating;request.send(null)}function checkUserLoginOrNo(){var A="uploading/check_login.php";request3.open("GET",A,true);request3.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request3.send(A);request3.onreadystatechange=function(){if(request3.readyState==4){if(request3.status==200){var C=request3.responseText;if(C!=0){var B=C.split(":");userLoggedIn(B[0],B[1],B[2])}}}}}function userLoggedIn(B,E,C){var A=document.getElementById("login_box");var D='<strong>Welcome <span class="orange_head">'+B+'</span><span class="bold_green">('+E+')</span> Ads Posted	</strong>&nbsp;&nbsp;|<strong class="inner_head"><a href="javascript:userLoggedOut()"> Logout </a></strong>';A.className="float_left";A.innerHTML=D}function userLoggedOut(){show_loader();var A="uploading/Logout.php";request1.open("GET",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.send(A);request1.onreadystatechange=function(){if(request1.readyState==4){if(request1.status==200){var C=request1.responseText;var B=document.getElementById("login_box");var D="";B.innerHTML=D;check_myaccount("myaccount/myaccount.php");hide_loader()}}}}function change_city(){market_remove("AddsDisplayDiv");OnlyDisable();get_Window_Div_Account(200,250);var A=document.getElementById("myAccount_inner_div");var F=parent.document.createElement("table");F.setAttribute("border","0");F.setAttribute("width","100%");F.setAttribute("cellsapcing","0");F.setAttribute("cellpadding","0");var B=document.createElement("tbody");var E=document.createElement("tr");var D=document.createElement("td");var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.setAttribute("id","validateAdSpace");D.className="myAdsValidation";E.appendChild(D);var C=document.createElement("td");C.setAttribute("align","right");C.setAttribute("vAlign","top");main_textx='<table width="100%" border="0" cellspacing="0" cellpadding="0">';main_textx+="<tr>";main_textx+="<td><b>Change City : </b></td>";main_textx+='<td><select name="city_name" onchange="javascript:get_city(this);" id="city_name">';main_textx+='<option value="">Select City</option><option value="Mumbai">Mumbai</option><option value="Delhi">Delhi</option><option value="Bangalore">Bangalore</option><option value="Pune">Pune</option></select></td>';main_textx+='<td><img src="images/close.jpg" onclick="javascript:closeMarketWindow();" class="set_hand" alt="Close"></td>';main_textx+="</tr>";main_textx+="</table>";var G=document.createElement("span");G.setAttribute("id","change_city_span");G.innerHTML=main_textx;C.appendChild(G);E.appendChild(C);B.appendChild(E);F.appendChild(B);A.appendChild(F)}function get_city(A){var C=A.options[A.selectedIndex].value;if(C!=""){var B="change_city.php?city="+C;request1.open("GET",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=update_city;request1.send(null);show_loader()}}function update_city(){if(request1.readyState==4){if(request1.status==200){if(request1.responseText!=""){close_sim_objsx();hide_loader();document.getElementById("city_indicator").innerHTML=request1.responseText;show_classified("null","null",0);var B=document.getElementById("overlay");B.style.display="none";var A=document.getElementById("overlayiframe");A.style.display="none"}}}}function updatecar_rating(){if(request.readyState==4){if(request.status==200){var jsonData=eval("("+request.responseText+")");var div_prodimg=document.getElementById("prodimg_div");var filename=jsonData.products.product[0].filename;var dir=jsonData.products.product[0].directory;var imgsrc="../upload/"+filename;var img_prod=document.createElement("img");img_prod.setAttribute("src",imgsrc);img_prod.setAttribute("width","110");img_prod.setAttribute("height","79");div_prodimg.appendChild(img_prod);var name_prod=document.getElementById("p_name");name_prod.className="style1";var exp_rew=document.getElementById("exp_rew");exp_rew.className="style4";var user_rew=document.getElementById("user_rew");user_rew.className="style4";var no_forsale=document.getElementById("no_forsale");no_forsale.className="style4";var starimg_div=document.getElementById("starimg_div");var rating=jsonData.products.product[0].rating;star_img=document.createElement("img");star_img.setAttribute("align","ABSMIDDLE");switch(rating){case"1":star_img.setAttribute("src","images/1starts.jpg");break;case"2":star_img.setAttribute("src","images/2starts.jpg");break;case"3":star_img.setAttribute("src","images/3starts.jpg");break;case"4":star_img.setAttribute("src","images/4starts.jpg");break;case"5":star_img.setAttribute("src","images/5starts.jpg");break}starimg_div.appendChild(star_img);name_prod.appendChild(document.createTextNode(jsonData.products.product[0].p_name));exp_rew.appendChild(document.createTextNode("("+jsonData.products.product[0].exp_review+" expert reviews)"));user_rew.appendChild(document.createTextNode("("+jsonData.products.product[0].user_review+" user reviews)"));no_forsale.appendChild(document.createTextNode("("+jsonData.products.product[0].no_forsale+" for sale)"));var color_tb=document.getElementById("car_color_table");var color_tbody=document.createElement("tbody");var color_len=jsonData.products.product[1].colors.length;var tr_var=color_len/2;tr_var=Math.ceil(tr_var);var flag=0;var imgDiv=document.getElementById("color_available");while(imgDiv.hasChildNodes()){var firstChild=imgDiv.firstChild;imgDiv.removeChild(firstChild)}if(color_len<=0){var det_feature_div=document.getElementById("color_available");det_feature_div.setAttribute("align","center");det_feature_div.setAttribute("vlign","top");var no_feat=document.createElement("font");no_feat.style.fontFamily="Courier New";no_feat.style.fontSize="16pt";no_feat.style.fontWeight="bold";no_feat.style.color="#009933";no_feat.appendChild(document.createTextNode("Sorry!! No colors available "));det_feature_div.appendChild(no_feat)}else{var det_feature_div=document.getElementById("color_available");det_feature_div.setAttribute("align","center");det_feature_div.setAttribute("vlign","top");var no_feat=document.createElement("font");no_feat.style.fontSize="14pt";no_feat.appendChild(document.createTextNode("* Colors shown are indicative and may vary slightly from actual car colors."));det_feature_div.appendChild(no_feat);for(var i=0;i<tr_var;i++){var color_tr=document.createElement("tr");if(flag<color_len){var color_td=document.createElement("td");color_td.setAttribute("align","center");var color_td1=document.createElement("td");color_td1.setAttribute("align","center");var color_imgsrc="images/"+jsonData.products.product[1].colors[flag].filename;var color_img=document.createElement("img");color_img.setAttribute("src",color_imgsrc);color_img.setAttribute("height","60");color_img.setAttribute("width","55");color_img.border="1px";var p_text=document.createElement("p");p_text.className="style5";p_text.appendChild(document.createTextNode(jsonData.products.product[1].colors[flag].name));color_td.appendChild(color_img);color_td.appendChild(p_text);color_tr.appendChild(color_td);flag=flag+1;if(flag<color_len){var color_imgsrc1="images/"+jsonData.products.product[1].colors[flag].filename;var color_img1=document.createElement("img");color_img1.setAttribute("src",color_imgsrc1);color_img1.setAttribute("height","60");color_img1.setAttribute("width","55");color_img1.border="1px";var p_text1=document.createElement("p");p_text1.className="style5";p_text1.appendChild(document.createTextNode(jsonData.products.product[1].colors[flag].name));color_td1.appendChild(color_img1);color_td1.appendChild(p_text1);color_tr.appendChild(color_td1);flag=flag+1}color_tbody.appendChild(color_tr)}}}color_tb.appendChild(color_tbody)}}}function updatecar_features(){if(request1.readyState==4){if(request1.status==200){var AJ=request1.responseXML;var BC=AJ.getElementsByTagName("dimensions_weights")[0];var e=BC.childNodes.length;if(bb=="MO"){e=e/2;e=Math.floor(e)}var A4=document.getElementById("dim_table");var BR=document.createElement("tbody");var o=document.createElement("tr");var A=document.createElement("td");A.setAttribute("align","center");A.colSpan="2";A.className="style5";A.appendChild(document.createTextNode("Dimensions & Weights"));o.appendChild(A);BR.appendChild(o);var AK=new Array();for(var AV=0;AV<e;AV++){var BW=AJ.getElementsByTagName("elementdw")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");AK[AV]=document.createElement("tr");var Bh=document.createElement("td");Bh.className="style6";var AM=document.createElement("td");AM.setAttribute("align","right");AM.className="style6";Bh.appendChild(document.createTextNode(P[0]));AK[AV].appendChild(Bh);AM.appendChild(document.createTextNode(P[1]));AK[AV].appendChild(AM);BR.appendChild(AK[AV])}A4.appendChild(BR);var BB=AJ.getElementsByTagName("capacity")[0];var Ac=BB.childNodes.length;if(bb=="MO"){Ac=Ac/2;Ac=Math.floor(Ac)}var Ak=document.getElementById("capacity_table");var AS=document.createElement("tbody");var c=document.createElement("tr");var BD=document.createElement("td");BD.setAttribute("align","center");BD.colSpan="2";BD.className="style5";BD.appendChild(document.createTextNode("Capacity"));c.appendChild(BD);AS.appendChild(c);var Ah=new Array();for(var AV=0;AV<Ac;AV++){var BW=AJ.getElementsByTagName("elementc")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");Ah[AV]=document.createElement("tr");var g=document.createElement("td");g.className="style6";var Az=document.createElement("td");Az.setAttribute("align","right");Az.className="style6";g.appendChild(document.createTextNode(P[0]));Ah[AV].appendChild(g);Az.appendChild(document.createTextNode(P[1]));Ah[AV].appendChild(Az);AS.appendChild(Ah[AV])}Ak.appendChild(AS);var BY=AJ.getElementsByTagName("fuel_effciency")[0];var w=BY.childNodes.length;if(bb=="MO"){w=w/2;w=Math.floor(w)}var d=document.getElementById("fuel_eff_table");var AC=document.createElement("tbody");var h=document.createElement("tr");var BE=document.createElement("td");BE.setAttribute("align","center");BE.colSpan="2";BE.className="style5";BE.appendChild(document.createTextNode("Fuel Efficiency"));h.appendChild(BE);AC.appendChild(h);var p=new Array();for(var AV=0;AV<w;AV++){var BW=AJ.getElementsByTagName("elementfe")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");p[AV]=document.createElement("tr");var B=document.createElement("td");B.className="style6";var L=document.createElement("td");L.setAttribute("align","right");L.className="style6";B.appendChild(document.createTextNode(P[0]));p[AV].appendChild(B);L.appendChild(document.createTextNode(P[1]));p[AV].appendChild(L);AC.appendChild(p[AV])}d.appendChild(AC);var v=AJ.getElementsByTagName("performance")[0];var Ba=v.childNodes.length;if(bb=="MO"){Ba=Ba/2;Ba=Math.floor(Ba)}var R=document.getElementById("perform_table");var y=document.createElement("tbody");var BF=document.createElement("tr");var r=document.createElement("td");r.setAttribute("align","center");r.colSpan="2";r.className="style5";r.appendChild(document.createTextNode("Performance"));BF.appendChild(r);y.appendChild(BF);var AF=new Array();for(var AV=0;AV<Ba;AV++){var BW=AJ.getElementsByTagName("elementp")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");AF[AV]=document.createElement("tr");var Ai=document.createElement("td");Ai.className="style6";var Aj=document.createElement("td");Aj.setAttribute("align","right");Aj.className="style6";Ai.appendChild(document.createTextNode(P[0]));AF[AV].appendChild(Ai);Aj.appendChild(document.createTextNode(P[1]));AF[AV].appendChild(Aj);y.appendChild(AF[AV])}R.appendChild(y);var W=AJ.getElementsByTagName("engine")[0];var As=W.childNodes.length;if(bb=="MO"){As=As/2;As=Math.floor(As)}var BG=document.getElementById("engine_table");var Ap=document.createElement("tbody");var AP=document.createElement("tr");var BS=document.createElement("td");BS.setAttribute("align","center");BS.colSpan="2";BS.className="style5";BS.appendChild(document.createTextNode("Engine"));AP.appendChild(BS);Ap.appendChild(AP);var A8=new Array();for(var AV=0;AV<As;AV++){var BW=AJ.getElementsByTagName("elementen")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");A8[AV]=document.createElement("tr");var Q=document.createElement("td");Q.className="style6";var l=document.createElement("td");l.setAttribute("align","right");l.className="style6";Q.appendChild(document.createTextNode(P[0]));A8[AV].appendChild(Q);l.appendChild(document.createTextNode(P[1]));A8[AV].appendChild(l);Ap.appendChild(A8[AV])}BG.appendChild(Ap);var BX=AJ.getElementsByTagName("transmission")[0];var BT=BX.childNodes.length;if(bb=="MO"){BT=BT/2;BT=Math.floor(BT)}var An=document.getElementById("trans_table");var Ae=document.createElement("tbody");var Ab=document.createElement("tr");var z=document.createElement("td");z.setAttribute("align","center");z.colSpan="2";z.className="style5";z.appendChild(document.createTextNode("Transmission"));Ab.appendChild(z);Ae.appendChild(Ab);var C=new Array();for(var AV=0;AV<BT;AV++){var BW=AJ.getElementsByTagName("elementtr")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");C[AV]=document.createElement("tr");var Ag=document.createElement("td");Ag.className="style6";var Bi=document.createElement("td");Bi.setAttribute("align","right");Bi.className="style6";Ag.appendChild(document.createTextNode(P[0]));C[AV].appendChild(Ag);Bi.appendChild(document.createTextNode(P[1]));C[AV].appendChild(Bi);Ae.appendChild(C[AV])}An.appendChild(Ae);var Bd=AJ.getElementsByTagName("suspensions")[0];var Z=Bd.childNodes.length;if(bb=="MO"){Z=Z/2;Z=Math.floor(Z)}var Bb=document.getElementById("suspsn_table");var M=document.createElement("tbody");var Af=document.createElement("tr");var G=document.createElement("td");G.setAttribute("align","center");G.colSpan="2";G.className="style5";G.appendChild(document.createTextNode("Suspensions"));Af.appendChild(G);M.appendChild(Af);var D=new Array();for(var AV=0;AV<Z;AV++){var BW=AJ.getElementsByTagName("elementsp")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");D[AV]=document.createElement("tr");var q=document.createElement("td");q.className="style6";var s=document.createElement("td");s.setAttribute("align","right");s.className="style6";q.appendChild(document.createTextNode(P[0]));D[AV].appendChild(q);s.appendChild(document.createTextNode(P[1]));D[AV].appendChild(s);M.appendChild(D[AV])}Bb.appendChild(M);var BH=AJ.getElementsByTagName("steering")[0];var AH=BH.childNodes.length;if(bb=="MO"){AH=AH/2;AH=Math.floor(AH)}var Au=document.getElementById("stear_table");var At=document.createElement("tbody");var AB=document.createElement("tr");var BJ=document.createElement("td");BJ.setAttribute("align","center");BJ.colSpan="2";BJ.className="style5";BJ.appendChild(document.createTextNode("Steering"));AB.appendChild(BJ);At.appendChild(AB);var Ao=new Array();for(var AV=0;AV<AH;AV++){var BW=AJ.getElementsByTagName("elementst")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");Ao[AV]=document.createElement("tr");var m=document.createElement("td");m.className="style6";var A5=document.createElement("td");A5.setAttribute("align","right");A5.className="style6";m.appendChild(document.createTextNode(P[0]));Ao[AV].appendChild(m);A5.appendChild(document.createTextNode(P[1]));Ao[AV].appendChild(A5);At.appendChild(Ao[AV])}Au.appendChild(At);var K=AJ.getElementsByTagName("brakes")[0];var A2=K.childNodes.length;if(bb=="MO"){A2=A2/2;A2=Math.floor(A2)}var A6=document.getElementById("breaks_table");var Aa=document.createElement("tbody");var AI=document.createElement("tr");var BN=document.createElement("td");BN.setAttribute("align","center");BN.colSpan="2";BN.className="style5";BN.appendChild(document.createTextNode("Brakes"));AI.appendChild(BN);Aa.appendChild(AI);var Ay=new Array();for(var AV=0;AV<A2;AV++){var BW=AJ.getElementsByTagName("elementb")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");Ay[AV]=document.createElement("tr");var F=document.createElement("td");F.className="style6";var b=document.createElement("td");b.setAttribute("align","right");b.className="style6";F.appendChild(document.createTextNode(P[0]));Ay[AV].appendChild(F);b.appendChild(document.createTextNode(P[1]));Ay[AV].appendChild(b);Aa.appendChild(Ay[AV])}A6.appendChild(Aa);var BV=AJ.getElementsByTagName("wheels_tyres")[0];var AU=BV.childNodes.length;if(bb=="MO"){AU=AU/2;AU=Math.floor(AU)}var Am=document.getElementById("wheels_table");var A0=document.createElement("tbody");var AZ=document.createElement("tr");var AL=document.createElement("td");AL.setAttribute("align","center");AL.colSpan="2";AL.className="style5";AL.appendChild(document.createTextNode("Wheels & Tyres"));AZ.appendChild(AL);A0.appendChild(AZ);var Y=new Array();for(var AV=0;AV<AU;AV++){var BW=AJ.getElementsByTagName("elementwt")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");Y[AV]=document.createElement("tr");var Ad=document.createElement("td");Ad.className="style6";var U=document.createElement("td");U.setAttribute("align","right");U.className="style6";Ad.appendChild(document.createTextNode(P[0]));Y[AV].appendChild(Ad);U.appendChild(document.createTextNode(P[1]));Y[AV].appendChild(U);A0.appendChild(Y[AV])}Am.appendChild(A0);var BZ=document.getElementById("feature_div");BZ.setAttribute("align","center");var T=AJ.getElementsByTagName("features")[0];var AQ=T.childNodes.length;if(bb=="MO"){AQ=AQ/2;AQ=Math.floor(AQ)}var Bf=document.getElementById("features_table");var BU=document.createElement("tbody");var A9=document.createElement("tr");A9.setAttribute("align","center");var BL=document.createElement("td");BL.setAttribute("align","center");var x=document.createElement("td");x.setAttribute("align","center");A9.className="style5";BL.appendChild(document.createTextNode("Features"));x.appendChild(document.createTextNode("Availability"));A9.appendChild(BL);A9.appendChild(x);BU.appendChild(A9);var Bc=new Array();for(var AV=0;AV<AQ;AV++){var BW=AJ.getElementsByTagName("feature_element")[AV];var BO=BW.firstChild.nodeValue;var P=BO.split(":");Bc[AV]=document.createElement("tr");Bc[AV].setAttribute("align","center");var Ar=document.createElement("td");Ar.setAttribute("align","center");Ar.className="style6";var E=document.createElement("td");E.setAttribute("align","center");E.className="style6";Ar.appendChild(document.createTextNode(P[0]));Bc[AV].appendChild(Ar);if(P[1]==0){var Aq=document.createElement("img");Aq.setAttribute("src","images/cross.jpg");E.appendChild(Aq)}else{if(P[1]==1){var V=document.createElement("img");V.setAttribute("src","images/tick.jpg");E.appendChild(V)}else{E.appendChild(document.createTextNode(P[1]))}}Bc[AV].appendChild(E);BU.appendChild(Bc[AV])}Bf.appendChild(BU);var BI=0;var BA=document.getElementById("det_feature_div");BA.setAttribute("align","center");var A3=AJ.getElementsByTagName("exterior")[0];var A1=A3.childNodes.length;if(A1!=0){if(bb=="MO"){A1=A1/2;A1=Math.floor(A1)}var AY=document.getElementById("features_ext_table");AY.setAttribute("align","center");var AN=document.createElement("tbody");var S=document.createElement("tr");S.setAttribute("align","center");var AA=document.createElement("td");AA.setAttribute("align","left");AA.className="bottom_border";S.className="style5";AA.appendChild(document.createTextNode("Exterior"));S.appendChild(AA);AN.appendChild(S);var AX=new Array();for(var AV=0;AV<A1;AV++){var BW=AJ.getElementsByTagName("elementext")[AV];var BO=BW.firstChild.nodeValue;AX[AV]=document.createElement("tr");AX[AV].setAttribute("align","center");var X=document.createElement("td");X.setAttribute("align","left");X.className="style6";X.appendChild(document.createTextNode(BO));AX[AV].appendChild(X);AN.appendChild(AX[AV])}AY.appendChild(AN)}else{BI=BI+1}var AD=AJ.getElementsByTagName("interior")[0];var Aw=AD.childNodes.length;if(Aw!=0){if(bb=="MO"){Aw=Aw/2;Aw=Math.floor(Aw)}var J=document.getElementById("features_int_table");var I=document.createElement("tbody");var BP=document.createElement("tr");var Be=document.createElement("td");Be.setAttribute("align","left");Be.className="bottom_border";BP.className="style5";Be.appendChild(document.createTextNode("Interior"));BP.appendChild(Be);I.appendChild(BP);var f=new Array();for(var AV=0;AV<Aw;AV++){var BW=AJ.getElementsByTagName("elementint")[AV];var BO=BW.firstChild.nodeValue;f[AV]=document.createElement("tr");var A7=document.createElement("td");A7.setAttribute("align","left");A7.className="style6";A7.appendChild(document.createTextNode(BO));f[AV].appendChild(A7);I.appendChild(f[AV])}J.appendChild(I)}else{BI=BI+1}var BQ=AJ.getElementsByTagName("safety")[0];var AE=BQ.childNodes.length;if(AE!=0){if(bb=="MO"){AE=AE/2;AE=Math.floor(AE)}var AO=document.getElementById("features_saf_table");var u=document.createElement("tbody");var O=document.createElement("tr");var N=document.createElement("td");N.setAttribute("align","left");N.className="bottom_border";O.className="style5";N.appendChild(document.createTextNode("Safety"));O.appendChild(N);u.appendChild(O);var AG=new Array();for(var AV=0;AV<AE;AV++){var BW=AJ.getElementsByTagName("elementsaf")[AV];var BO=BW.firstChild.nodeValue;AG[AV]=document.createElement("tr");var BM=document.createElement("td");BM.setAttribute("align","left");BM.className="style6";BM.appendChild(document.createTextNode(BO));AG[AV].appendChild(BM);u.appendChild(AG[AV])}AO.appendChild(u)}else{BI=BI+1}var AW=AJ.getElementsByTagName("electricals")[0];var AT=AW.childNodes.length;if(AT!=0){if(bb=="MO"){AT=AT/2;AT=Math.floor(AT)}var AR=document.getElementById("features_elec_table");var Av=document.createElement("tbody");var H=document.createElement("tr");var Ax=document.createElement("td");Ax.setAttribute("align","left");Ax.className="bottom_border";H.className="style5";Ax.appendChild(document.createTextNode("Electricals"));H.appendChild(Ax);Av.appendChild(H);var Al=new Array();for(var AV=0;AV<AT;AV++){var BW=AJ.getElementsByTagName("elementelc")[AV];var BO=BW.firstChild.nodeValue;Al[AV]=document.createElement("tr");var BK=document.createElement("td");BK.setAttribute("align","left");BK.className="style6";BK.appendChild(document.createTextNode(BO));Al[AV].appendChild(BK);Av.appendChild(Al[AV])}AR.appendChild(Av)}else{BI=BI+1}if(BI==4){var BA=document.getElementById("det_feature_div");BA.setAttribute("align","center");BA.setAttribute("vlign","top");var Bg=document.createElement("font");Bg.style.fontFamily="Courier New";Bg.style.fontSize="16pt";Bg.style.fontWeight="bold";Bg.style.color="#009933";Bg.appendChild(document.createTextNode("Sorry!! No features available "));BA.appendChild(Bg)}}}}window.dhtmlHistory={initialize:function(){if(this.isInternetExplorer()==false){return }if(historyStorage.hasKey("DhtmlHistory_pageLoaded")==false){this.fireOnNewListener=false;this.firstLoad=true;historyStorage.put("DhtmlHistory_pageLoaded",true)}else{this.fireOnNewListener=true;this.firstLoad=false}},addListener:function(A){this.listener=A;if(this.fireOnNewListener==true){this.fireHistoryEvent(this.currentLocation);this.fireOnNewListener=false}},add:function(C,D){var A=this;var B=function(){if(A.currentWaitTime>0){A.currentWaitTime=A.currentWaitTime-A.WAIT_TIME}C=A.removeHash(C);var F=document.getElementById(C);if(F!=undefined||F!=null){var E="Exception: History locations can not have the same value as _any_ id's that might be in the document, due to a bug in Internet Explorer; please ask the developer to choose a history location that does not match any HTML id's in this document. The following ID is already taken and can not be a location: "+C;throw E}historyStorage.put(C,D);A.ignoreLocationChange=true;this.ieAtomicLocationChange=true;A.currentLocation=C;window.location.hash=C;if(A.isInternetExplorer()){A.iframe.src="blank.html?"+C}this.ieAtomicLocationChange=false};window.setTimeout(B,this.currentWaitTime);this.currentWaitTime=this.currentWaitTime+this.WAIT_TIME},isFirstLoad:function(){if(this.firstLoad==true){return true}else{return false}},isInternational:function(){return false},getVersion:function(){return"0.05"},getCurrentLocation:function(){var A=this.removeHash(window.location.hash);return A},currentLocation:null,listener:null,iframe:null,ignoreLocationChange:null,WAIT_TIME:200,currentWaitTime:0,fireOnNewListener:null,firstLoad:null,ieAtomicLocationChange:null,create:function(){var A=this.getCurrentLocation();this.currentLocation=A;if(this.isInternetExplorer()){document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='DhtmlHistoryFrame' id='DhtmlHistoryFrame' src='blank.html?"+A+"'></iframe>");this.WAIT_TIME=400}var B=this;window.onunload=function(){B.firstLoad=null};if(this.isInternetExplorer()==false){if(historyStorage.hasKey("DhtmlHistory_pageLoaded")==false){this.ignoreLocationChange=true;this.firstLoad=true;historyStorage.put("DhtmlHistory_pageLoaded",true)}else{this.ignoreLocationChange=false;this.fireOnNewListener=true}}else{this.ignoreLocationChange=true}if(this.isInternetExplorer()){this.iframe=document.getElementById("DhtmlHistoryFrame")}var B=this;var C=function(){B.checkLocation()};setInterval(C,100)},fireHistoryEvent:function(A){var B=historyStorage.get(A);this.listener.call(null,A,B)},checkLocation:function(){if(this.isInternetExplorer()==false&&this.ignoreLocationChange==true){this.ignoreLocationChange=false;return }if(this.isInternetExplorer()==false&&this.ieAtomicLocationChange==true){return }var A=this.getCurrentLocation();if(A==this.currentLocation){return }this.ieAtomicLocationChange=true;if(this.isInternetExplorer()&&this.getIFrameHash()!=A){this.iframe.src="blank.html?"+A}else{if(this.isInternetExplorer()){return }}this.currentLocation=A;this.ieAtomicLocationChange=false;this.fireHistoryEvent(A)},getIFrameHash:function(){var A=document.getElementById("DhtmlHistoryFrame");var C=A.contentWindow.document;var B=new String(C.location.search);if(B.length==1&&B.charAt(0)=="?"){B=""}else{if(B.length>=2&&B.charAt(0)=="?"){B=B.substring(1)}}return B},removeHash:function(A){if(A==null||A==undefined){return null}else{if(A==""){return""}else{if(A.length==1&&A.charAt(0)=="#"){return""}else{if(A.length>1&&A.charAt(0)=="#"){return A.substring(1)}else{return A}}}}},iframeLoaded:function(A){if(this.ignoreLocationChange==true){this.ignoreLocationChange=false;return }var B=new String(A.search);if(B.length==1&&B.charAt(0)=="?"){B=""}else{if(B.length>=2&&B.charAt(0)=="?"){B=B.substring(1)}}if(this.pageLoadEvent!=true){window.location.hash=B}this.fireHistoryEvent(B)},isInternetExplorer:function(){var A=navigator.userAgent.toLowerCase();if(document.all&&A.indexOf("msie")!=-1){return true}else{return false}}};window.historyStorage={debugging:false,storageHash:new Object(),hashLoaded:false,put:function(A,B){this.assertValidKey(A);if(this.hasKey(A)){this.remove(A)}this.storageHash[A]=B;this.saveHashTable()},get:function(A){this.assertValidKey(A);this.loadHashTable();var B=this.storageHash[A];if(B==undefined){return null}else{return B}},remove:function(A){this.assertValidKey(A);this.loadHashTable();delete this.storageHash[A];this.saveHashTable()},reset:function(){this.storageField.value="";this.storageHash=new Object()},hasKey:function(A){this.assertValidKey(A);this.loadHashTable();if(typeof this.storageHash[A]=="undefined"){return false}else{return true}},isValidKey:function(A){return(typeof A=="string")},storageField:null,init:function(){var B="position: absolute; top: -1000px; left: -1000px;";if(this.debugging==true){B="width: 30em; height: 30em;"}var A="<form id='historyStorageForm' method='GET' style='"+B+"'><textarea id='historyStorageField' style='"+B+"'left: -1000px;' name='historyStorageField'></textarea></form>";document.write(A);this.storageField=document.getElementById("historyStorageField")},assertValidKey:function(B){if(this.isValidKey(B)==false){try{throw"Please provide a valid key for window.historyStorage, key= "+B}catch(C){var A=C}}},loadHashTable:function(){if(this.hashLoaded==false){var serializedHashTable=this.storageField.value;if(serializedHashTable!=""&&serializedHashTable!=null){this.storageHash=eval("("+serializedHashTable+")")}this.hashLoaded=true}},saveHashTable:function(){this.loadHashTable();var A=JSON.stringify(this.storageHash);this.storageField.value=A}};Array.prototype.______array="______array";var JSON={org:"http://www.JSON.org",copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(A){var F,D,B,E="",C;switch(typeof A){case"object":if(A){if(A.______array=="______array"){for(D=0;D<A.length;++D){C=this.stringify(A[D]);if(E){E+=","}E+=C}return"["+E+"]"}else{if(typeof A.toString!="undefined"){for(D in A){C=A[D];if(typeof C!="undefined"&&typeof C!="function"){C=this.stringify(C);if(E){E+=","}E+=this.stringify(D)+":"+C}}return"{"+E+"}"}}}return"null";case"number":return isFinite(A)?String(A):"null";case"string":B=A.length;E='"';for(D=0;D<B;D+=1){F=A.charAt(D);if(F>=" "){if(F=="\\"||F=='"'){E+="\\"}E+=F}else{switch(F){case"\b":E+="\\b";break;case"\f":E+="\\f";break;case"\n":E+="\\n";break;case"\r":E+="\\r";break;case"\t":E+="\\t";break;default:F=F.charCodeAt();E+="\\u00"+Math.floor(F/16).toString(16)+(F%16).toString(16)}}}return E+'"';case"boolean":return String(A);default:return"null"}},parse:function(L){var D=0;var A=" ";function K(M){throw {name:"JSONError",message:M,at:D-1,text:L}}function G(){A=L.charAt(D);D+=1;return A}function I(){while(A!=""&&A<=" "){G()}}function J(){var O,P="",N,M;if(A=='"'){outer:while(G()){if(A=='"'){G();return P}else{if(A=="\\"){switch(G()){case"b":P+="\b";break;case"f":P+="\f";break;case"n":P+="\n";break;case"r":P+="\r";break;case"t":P+="\t";break;case"u":M=0;for(O=0;O<4;O+=1){N=parseInt(G(),16);if(!isFinite(N)){break outer}M=M*16+N}P+=String.fromCharCode(M);break;default:P+=A}}else{P+=A}}}}K("Bad string")}function H(){var M=[];if(A=="["){G();I();if(A=="]"){G();return M}while(A){M.push(C());I();if(A=="]"){G();return M}else{if(A!=","){break}}G();I()}}K("Bad array")}function E(){var M,N={};if(A=="{"){G();I();if(A=="}"){G();return N}while(A){M=J();I();if(A!=":"){break}G();N[M]=C();I();if(A=="}"){G();return N}else{if(A!=","){break}}G();I()}}K("Bad object")}function F(){var N="",M;if(A=="-"){N="-";G()}while(A>="0"&&A<="9"){N+=A;G()}if(A=="."){N+=".";while(G()&&A>="0"&&A<="9"){N+=A}}if(A=="e"||A=="E"){N+="e";G();if(A=="-"||A=="+"){N+=A;G()}while(A>="0"&&A<="9"){N+=A;G()}}M=+N;if(!isFinite(M)){K("Bad number")}else{return M}}function B(){switch(A){case"t":if(G()=="r"&&G()=="u"&&G()=="e"){G();return true}break;case"f":if(G()=="a"&&G()=="l"&&G()=="s"&&G()=="e"){G();return false}break;case"n":if(G()=="u"&&G()=="l"&&G()=="l"){G();return null}break}K("Syntax error")}function C(){I();switch(A){case"{":return E();case"[":return H();case'"':return J();case"-":return F();default:return A>="0"&&A<="9"?F():B()}}return C()}};window.historyStorage.init();window.dhtmlHistory.create();window.onload=initialize;function initialize(){var C=String(document.location);if(C.indexOf("show_detail_listing")==-1){}else{var A=C.lastIndexOf("/");var D=C.substr((A+1),C.length);document.getElementById("city_indicator").innerHTML=D}checkUserLoginOrNo();dhtmlHistory.initialize();dhtmlHistory.addListener(handleHistoryChange);var B=dhtmlHistory.getCurrentLocation();if(B==""){B="section:MarketPlace";show_classified("null","null",0)}else{if(B=="section:MarketPlace"){}else{if(B=="section:ShowReviews"){}else{if(B=="section:ShowListed"){}else{if(B!=""){B=B.replace(/section\:/,"");displayLocation(B,"")}}}}}}function handleHistoryChange(A,B){if(A==""){A="section:MarketPlace"}A=A.replace(/section\:/,"");displayLocation(A,B)}function Reviews_Back(targetPageScript,test){var temp1='("';var temp3='");';var temp2="";var temp;var len=test.length;for(i=0;i<len;i++){temp2=temp2+test[i];if(i!=len-1){temp2=temp2+'", "'}}temp=temp1+temp2+temp3;if(eval("typeof(window.frames.reviewIframe."+targetPageScript+")")=="function"){eval("window.frames.reviewIframe."+targetPageScript+temp)}else{alert('JavaScript function "'+targetPageScript+'" could not be found.  No attempt was made to call the function.')}}function Classifieds_Back(targetPageScript,test){var temp1='("';var temp3='");';var temp2="";var temp;var len=test.length;for(i=0;i<len;i++){temp2=temp2+test[i];if(i!=len-1){temp2=temp2+'", "'}}temp=temp1+temp2+temp3;if(eval("typeof("+targetPageScript+")")=="function"){eval(targetPageScript+temp)}else{alert('JavaScript function "'+targetPageScript+'" could not be found.  No attempt was made to call the function.')}}function displayLocation(E,D){if(E.indexOf("/")>0){var C=E.split("/");var F=new Array();var B=0;if(C[0]=="Reviews"){for(i=2;i<C.length;i++){F[B]=C[i];B++}Reviews_Back(C[1],F)}else{if(C[0]=="Classifieds"){document.getElementById("myMarketPlace").style.display="block";document.getElementById("myaccount_here").style.display="none";for(i=2;i<C.length;i++){F[B]=C[i];B++}Classifieds_Back(C[1],F)}else{if(C[0]=="AccDet1"){document.getElementById("myMarketPlace").style.display="none";document.getElementById("myaccount_here").style.display="block";var A="";for(i=1;i<C.length;i++){if(i==1){A=A+C[i]}else{A=A+"/"+C[i]}}A=A.replace("xzuykt",".php?");check_myaccount(A)}else{if(C[0]=="Search"){}else{if(C[0]=="DetailedListingView"){}else{if(C[0]=="DetailedListingApp"){}else{if(C[0]=="Listings"){}else{if(C[0]=="Listed"){}}}}}}}}}else{show_classified("null","null",0)}}function handleMouseClick(E){var A;if(typeof window.event!="undefined"){A=window.event}else{A=E}var D;if(typeof A.srcElement!="undefined"){D=A.srcElement}else{D=A.target}var C=D.id;var B="section:"+C;var F="<p>The following location was loaded from our DHTML history: "+B+"</p>";dhtmlHistory.add(B,F)}function testR(){if(document.getElementById("reviewIframe")){alert(window.frames.reviewIframe.document.getElementById("review_next"))}else{alert("No")}}function a(B,A,C){alert(B+A+C)}function PostAdEverything(Ag,P,AT){OnlyDisable();windowIsActive=true;market_remove("AddsDisplayDiv");var AE=document.getElementById("AddsDisplayDiv");var o=document.getElementById("write_reviewDiv1");AE.style.display="block";o.style.display="block";o.style.height="340px";AE.style.width="760px";o.style.width="780px";var E=AE;AE.style.background="#ffffff";E.setAttribute("align","center");var Ah=1;var Q=document.createElement("table");Q.width="100%";Q.border=0;Q.cellSpacing=0;Q.cellPadding=0;Q.setAttribute("align","center");var e=document.createElement("tbody");var AL=document.createElement("tr");var H=document.createElement("td");var H=document.createElement("td");H.setAttribute("align","left");H.setAttribute("vAlign","middle");H.className="myAdsValidation";H.colSpan=2;var J=document.createElement("div");J.setAttribute("id","validation_info");H.appendChild(J);AL.appendChild(H);var G=document.createElement("td");G.setAttribute("align","right");G.setAttribute("vAlign","middle");G.className="windowTitle";var I=document.createElement("img");I.setAttribute("src","images/close.jpg");I.onclick=Function("closeMarketWindow()");I.setAttribute("height","16");I.setAttribute("width","16");G.appendChild(I);e.appendChild(AL);var AK=document.createElement("tr");var Af=document.createElement("td");Af.colSpan=2;Af.className="windowTitle";var X=document.createElement("table");X.width="100%";X.border=0;X.cellSpacing=0;X.cellPadding=0;X.setAttribute("align","center");var l=document.createElement("tbody");var AB=document.createElement("tr");var AI=document.createElement("td");AI.setAttribute("align","left");AI.setAttribute("vAlign","middle");AI.className="fieldNames";AI.setAttribute("width","20%");var N=document.createTextNode("Step"+Ah+" - Ad Title");AI.appendChild(N);AB.appendChild(AI);var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","middle");AH.setAttribute("width","1%");AH.className="fieldNames";var AR=document.createTextNode(":");AH.appendChild(AR);AB.appendChild(AH);var AG=document.createElement("td");AG.setAttribute("align","left");AG.setAttribute("vAlign","middle");AG.setAttribute("width","27%");AG.className="fieldNames";var Ad=document.createElement("input");Ad.setAttribute("size","30");Ad.setAttribute("id","title_fur");AG.appendChild(Ad);AB.appendChild(AG);var AF=document.createElement("td");AF.setAttribute("align","left");AF.setAttribute("vAlign","middle");AF.className="myAdsEditDesp";var AD=document.createTextNode("(Enter a short title for your ad)");AF.appendChild(AD);AB.appendChild(AF);l.appendChild(AB);var AA=document.createElement("tr");var s=document.createElement("td");s.setAttribute("align","left");s.setAttribute("vAlign","middle");s.setAttribute("width","23%");s.className="fieldNames";Ah++;var d=document.createTextNode("Step"+Ah+" - Type");s.appendChild(d);AA.appendChild(s);var q=document.createElement("td");q.setAttribute("align","left");q.setAttribute("vAlign","middle");q.className="fieldNames";var AQ=document.createTextNode(":");q.appendChild(AQ);AA.appendChild(q);var p=document.createElement("td");p.setAttribute("align","left");p.setAttribute("vAlign","middle");p.className="fieldNames";var g=document.createElement("select");g.setAttribute("id","type_fur");var U=document.createElement("option");U.value="Select";U.text="Select";g.options.add(U,0);var S=document.createElement("option");S.value="Home";S.text="Home";g.options.add(S,1);var R=document.createElement("option");R.value="Office";R.text="Office";g.options.add(R,2);p.appendChild(g);AA.appendChild(p);var m=document.createElement("td");m.setAttribute("align","left");m.setAttribute("vAlign","middle");m.className="myAdsEditDesp";var f=document.createTextNode("(Select the type of furniture)");m.appendChild(f);m.appendChild(f);AA.appendChild(m);var z=document.createElement("tr");var b=document.createElement("td");b.setAttribute("align","left");b.setAttribute("vAlign","middle");b.className="fieldNames";Ah++;var u=document.createTextNode("Step"+Ah+" - Price");b.appendChild(u);z.appendChild(b);var Z=document.createElement("td");Z.setAttribute("align","left");Z.setAttribute("vAlign","middle");Z.className="fieldNames";var AP=document.createTextNode(":");Z.appendChild(AP);z.appendChild(Z);var Y=document.createElement("td");Y.setAttribute("align","left");Y.setAttribute("vAlign","middle");Y.className="fieldNames";var AV=document.createElement("input");AV.setAttribute("size","10");AV.setAttribute("id","price_fur");Y.appendChild(AV);z.appendChild(Y);var W=document.createElement("td");W.setAttribute("align","left");W.setAttribute("vAlign","middle");W.className="myAdsEditDesp";var O=document.createTextNode("(Enter your selling price)");W.appendChild(O);z.appendChild(W);l.appendChild(z);var y=document.createElement("tr");var M=document.createElement("td");M.setAttribute("align","left");M.setAttribute("vAlign","top");M.className="fieldNames";Ah++;var AJ=document.createTextNode("Step"+Ah+" - Description");M.appendChild(AJ);y.appendChild(M);var L=document.createElement("td");L.setAttribute("align","left");L.setAttribute("vAlign","top");L.className="fieldNames";var AO=document.createTextNode(":");L.appendChild(AO);y.appendChild(L);var K=document.createElement("td");K.colSpan=2;var V=document.createElement("table");V.width="100%";V.border=0;V.cellSpacing=0;V.cellPadding=0;V.setAttribute("align","center");var h=document.createElement("tbody");var AB=document.createElement("tr");var AI=document.createElement("td");AI.setAttribute("align","left");AI.setAttribute("vAlign","middle");AI.setAttribute("width","370");AI.className="fieldNames";var AU=document.createElement("textArea");AU.setAttribute("rows","7");AU.setAttribute("cols","55");AU.setAttribute("id","description_fur");AI.appendChild(AU);AB.appendChild(AI);var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","top");AH.className="myAdsEditDesp";var F=document.createTextNode("(Enter a brief description of the product , its condition & terms of sale)");AH.appendChild(F);AB.appendChild(AH);h.appendChild(AB);V.appendChild(h);K.appendChild(V);y.appendChild(K);l.appendChild(y);var x=document.createElement("tr");var D=document.createElement("td");D.setAttribute("align","left");D.setAttribute("vAlign","middle");D.className="fieldNames";Ah++;var AW=document.createTextNode("Step"+Ah+" - Images");D.appendChild(AW);x.appendChild(D);var C=document.createElement("td");C.setAttribute("align","left");C.setAttribute("vAlign","middle");C.className="fieldNames";var AN=document.createTextNode(":");C.appendChild(AN);x.appendChild(C);var B=document.createElement("td");B.setAttribute("align","left");B.setAttribute("vAlign","middle");B.setAttribute("id","Td_UploadFile");B.className="fieldNames";var AS=document.createElement("input");AS.setAttribute("type","file");AS.setAttribute("id","file");AS.setAttribute("name","userfile");B.appendChild(AS);var Aa=document.createElement("iframe");Aa.setAttribute("src","#");Aa.setAttribute("height","0");Aa.setAttribute("width","0");Aa.setAttribute("scrolling","no");Aa.setAttribute("id","");Aa.setAttribute("frameBorder","no");Aa.frameBorder="0";B.appendChild(Aa);x.appendChild(B);var A=document.createElement("td");A.setAttribute("align","left");A.setAttribute("vAlign","middle");A.setAttribute("id","Td_UploadButton");A.className="myAdsEditDesp";var Ac=document.createElement("input");Ac.setAttribute("type","submit");Ac.setAttribute("value","Upload");Ac.setAttribute("id","upload_button");Ac.onclick=Function();A.appendChild(Ac);var AC=document.createTextNode(" ");A.appendChild(AC);var AY=document.createTextNode("(Upload Photos of your product - Optional)");A.appendChild(AY);x.appendChild(A);l.appendChild(x);var w=document.createElement("tr");var Ab=document.createElement("td");Ab.setAttribute("align","left");Ab.setAttribute("vAlign","middle");Ab.className="fieldNames";w.appendChild(Ab);var AZ=document.createElement("td");AZ.setAttribute("align","left");AZ.setAttribute("vAlign","middle");AZ.className="fieldNames";w.appendChild(AZ);var AX=document.createElement("td");var V=document.createElement("table");V.width="100%";V.border=0;V.cellSpacing=0;V.cellPadding=0;V.setAttribute("align","center");var h=document.createElement("tbody");var AB=document.createElement("tr");var AI=document.createElement("td");AI.setAttribute("align","left");AI.setAttribute("vAlign","middle");AI.className="fieldNames";var T=document.createElement("select");T.setAttribute("size","3");T.setAttribute("id","new_img_select");AI.appendChild(T);AB.appendChild(AI);var AH=document.createElement("td");AH.setAttribute("align","left");AH.setAttribute("vAlign","middle");AH.className="myAdsEditDesp";var Ae=document.createElement("input");Ae.setAttribute("type","button");Ae.setAttribute("value","Remove Image");Ae.onclick=Function('removeImage("new_img_select","'+AT+'")');AH.appendChild(Ae);AB.appendChild(AH);h.appendChild(AB);V.appendChild(h);AX.appendChild(V);w.appendChild(AX);l.appendChild(w);var v=document.createElement("tr");var AM=document.createElement("td");AM.setAttribute("align","right");AM.setAttribute("vAlign","middle");AM.colSpan=4;var r=document.createElement("input");r.setAttribute("type","button");r.setAttribute("value","Back");r.onclick=Function("postMarketAds()");AM.appendChild(r);var AC=document.createTextNode(" ");AM.appendChild(AC);var c=document.createElement("input");c.setAttribute("type","button");c.setAttribute("value","Next");c.onclick=Function('validateEverythingPost("'+Ag+'","'+P+'","'+AT+'")');if(AT=="Edit"){c.setAttribute("value","Save");r.setAttribute("value","Cancel");r.onclick=Function("closeMarketWindow()")}AM.appendChild(c);v.appendChild(AM);l.appendChild(v);X.appendChild(l);Af.appendChild(X);AK.appendChild(Af);e.appendChild(AK);Q.appendChild(e);E.appendChild(Q);testT()}function validateEverythingPost(B,G,O){var K=document.getElementById("title_fur");var C=document.getElementById("description_fur").value.replace(/\n/g," ");var H=document.getElementById("price_fur");var F=document.getElementById("validation_info");var N=document.createTextNode("Invalid Images");while(F.hasChildNodes()){var M=F.firstChild;F.removeChild(M)}if(K.value==""){var J=document.createTextNode("Please Enter Title for your Ad");F.appendChild(J)}else{if(IsNumeric(H.value)&&H.value.length>0){var I=document.createTextNode("Please Enter Valid Price");F.appendChild(I)}else{if(C.value==""){var E=document.createTextNode("Please Enter the Description");F.appendChild(E)}else{if(O=="PostAd"){var L=checkLoginNew();if(L==1){NewEverythingPost(B,G)}else{NewPostAdsLogin(B,G)}}else{if(O=="Edit"){var D=getSelectedImages();var A="title="+escape(K.value)+"&description="+escape(C.value)+"&price="+escape(H.value)+"&category="+escape(B)+"&subcategory="+escape(G)+"&clid="+escape(clid)+D;postEditEverithing(B,A)}}}}}}function NewEverythingPost(D,I){var K=document.getElementById("title_fur").value;var J=document.getElementById("price_fur").value;var H=document.getElementById("description_fur").value.replace(/\n/g," ");var C="Everything";if(D=="Automobiles"){D="Autos"}var I="Everything";var N=document.getElementById("new_img_select");var M=N.options.length;var O="";var P="";for(i=0;i<M;i++){var B=N.options[i].text;var F=N.options[i].value;if(i==0){O=B;P=F}else{O=O+":"+B;P=P+":"+F}}var G="";var E=0;if(document.getElementById("market_post_email")){var G=document.getElementById("market_post_email").value}else{G="0"}if(document.getElementById("market_post_mobile")){E=document.getElementById("market_post_mobile").value}else{E=0}if(G!=""){show_loader();if(D=="Autos"){var A="Marketplace/post_autos_listing.php";var L="title="+escape(K)+"&subcategory="+I+"&description="+H+"&pstring="+escape("")+"&kms="+escape("")+"&year="+escape("")+"&price="+escape(J)+"&color="+escape("")+"&autos_cond="+escape("")+"&reply_email="+escape(G)+"&reply_mobile="+escape(E)+"&imageName="+escape(O)+"&imageRandomName="+escape(P)}else{if(D=="Personals"){var A="Marketplace/post_personals_listing.php";var L="description="+escape(H)+"&title="+escape(K)+"&age="+escape("")+"&locality="+escape("")+"&subcategory="+escape(I)+"&age_of_partner="+escape("")+"&reply_email="+escape(G)+"&reply_mobile="+escape(E)+"&imageName="+escape(O)+"&imageRandomName="+escape(P)}else{if(D=="Electronics"||D=="Appliances"||D=="Computers"||D=="Mobiles"){var A="Marketplace/post_aec_listing.php";var L="title="+escape(K)+"&description="+escape(H)+"&make="+escape("")+"&model="+escape("")+"&price="+escape(J)+"&subcategory="+escape(I)+"&category="+escape(D)+"&mob_condition="+escape("")+"&tv_type="+escape("")+"&tv_size="+escape("")+"&cam_mp="+escape("")+"&mouse_key_type="+escape("")+"&subcategory2="+escape("")+"&desk_type="+escape("")+"&ram_type="+escape("")+"&ram_size="+escape("")+"&processor="+escape("")+"&cd_dvd="+escape("")+"&hdd="+escape("")+"&monitor_type="+escape("")+"&monitor="+escape("")+"&reply_email="+escape(G)+"&reply_mobile="+escape(E)+"&imageName="+escape(O)+"&imageRandomName="+escape(P)}else{var A="Marketplace/post_everything_listing.php";var L="title="+escape(K)+"&description="+escape(H)+"&price="+escape(J)+"&category="+escape(D)+"&subcategory="+escape(I)+"&reply_email="+escape(G)+"&reply_mobile="+escape(E)+"&imageName="+escape(O)+"&imageRandomName="+escape(P)}}}request.open("POST",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=updateNewEverythingPostListing;request.send(L)}else{alert("Please Enter the complete details")}}function updateNewEverythingPostListing(){if(request.readyState==4){if(request.status==200){var A=request.responseText;hide_loader();closeMarketWindow();show_classified("null","null",0);update_log_box();hide_loader()}}}function show_page(C,B){var D=new Array("myMarketPlace","reviews_here","myaccount_here","myAlertsx");var A=new Array("MarketPlace","Reviews","My_Account","Alerts");for(i=0;i<D.length;i++){if(document.getElementById(D[i])){temp=document.getElementById(D[i]);if(D[i]==C){temp.style.display="block";document.getElementById(A[i]).className="menu_blr"}else{temp.style.display="none";document.getElementById(A[i]).className="menu_act";document.getElementById(A[i]).style.backgroundImage="url(images/menu_bg.gif)"}}}}function set_focus(A){temp=document.getElementById(A);if(temp.className!="menu_blr"){temp.style.backgroundImage="url(images/menu_bg_over.gif)"}}function remove_focus(A){temp=document.getElementById(A);if(temp.className!="menu_blr"){temp.style.backgroundImage="url(images/menu_bg.gif)"}}function check_myaccount(C){if(request.readyState==4||request.readyState==0){show_loader();var B=C;var A=C.replace(".php?","xzuykt");request.open("GET",B,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=update_myaccount;var D="section:AccDet1/"+A;var E="<p>The following location was loaded from our DHTML history: "+D+"</p>";dhtmlHistory.add(D,E);request.send(null)}}function show_user_detail_form(B){show_loader();var A="myaccount/"+B;request.open("GET",A,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=update_account_detail;request.send(null)}function mpqst(){}function update_account_detail(){if(request.readyState==4){if(request.status==200){document.getElementById("user_detail_span").innerHTML=request.responseText;hide_loader()}}}function show_myac(){document.getElementById("myMarketPlace").style.display="none";document.getElementById("myaccount_here").style.display="block";check_myaccount("myaccount/myaccount.php")}function show_class(){document.getElementById("myMarketPlace").style.display="block";document.getElementById("myaccount_here").style.display="none";check_myaccount("myaccount/myaccount.php")}function delete_ads_now(A,D,B,E){var F=confirm("Are You Sure, You Want To Delete '"+A+"'???");if(F){show_loader();var C="my_account/My_Ads_Delete.php";url1="clid="+D+"&city="+E;request1.open("POST",C,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=function(){if(request1.readyState==4){if(request1.status==200){check_myaccount("myaccount/myads.php?sel_menu=1&limit="+B)}}};request1.send(url1)}}function delete_review_now(A,D,B){var E=confirm("Are You Sure, You Want To Delete '"+A+"'???");if(E){show_loader();var C="my_account/My_Reviews_Delete.php";url1="user_rev_id="+D;request.open("POST",C,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=function(){if(request.readyState==4){if(request.status==200){if(request.responseText==1){check_myaccount("myaccount/myreviews.php?sel_menu=2&limit="+B)}else{hide_loader();alert("Could Not Delete")}}}};request.send(url1)}}function delete_listing_now(A,D,B){var E=confirm("Are You Sure, You Want To Delete '"+A+"'???");if(E){show_loader();var C="my_account/My_Saved_Listings_Delete.php";url1="clid="+D;request1.open("POST",C,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=function(){if(request1.readyState==4){if(request1.status==200){if(request1.responseText==1){check_myaccount("myaccount/mysaved.php?sel_menu=3&limit="+B)}else{hide_loader();alert("Could Not Delete")}}}};request1.send(url1)}}function login(B){show_loader();var A=B;request1.open("GET",A,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=function(){if(request1.readyState==4){if(request1.status==200){if(request1.responseText==1&&request1.responseText!=""){check_myaccount("myaccount/myaccount.php?msg=Invalid Password.")}else{if(request1.responseText==2){check_myaccount("myaccount/myaccount.php?msg=Username Does not Exist.")}else{check_myaccount("myaccount/myaccount.php")}}}}};request1.send(null)}function update_myaccount(){if(request.readyState==4){if(request.status==200){window.scrollTo(0,0);document.getElementById("myaccount_page").innerHTML=request.responseText;update_log_box();hide_loader()}}}function Edit_User_Ads_Images(F,E){if(F!=""&&E!=""){var B=document.getElementById("new_img_select");var G=F.split(":");var A=E.split(":");for(i=0;i<G.length;i++){var D=document.getElementById("new_img_select");var C=document.createElement("OPTION");C.value=A[i];C.text=G[i];B.options.add(C,i)}}}function getSelectedImages(){var C=document.getElementById("new_img_select");var B=C.options.length;var G="";var A="";for(i=0;i<B;i++){var E=C.options[i].text;var F=C.options[i].value;if(i==0){G=E;A=F}else{G=G+":"+E;A=A+":"+F}}var D="&imageName="+G+"&imageRandomName="+A;return D}function show_ads_edit(A,D,C){show_loader();var E="my_account/My_Ads_Edit.php";request.open("POST",E,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.onreadystatechange=update_show_ads_edit;var B="clid="+C+"&category="+A+"&subcategory="+D;request.send(B)}function update_show_ads_edit(){if(request.readyState==4){if(request.status==200){var response=request.responseText;var jsonData=eval("("+response+")");var category=jsonData.listings.listing[0].category;var subcategory=jsonData.listings.listing[0].subcategory;if(category!="Properties"&&(category=="Everything"||subcategory=="Everything")){PostAdEverything(category,subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditEverything(jsonData)}else{if(category=="Autos"){postAdAutomobiles(subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditAutos(jsonData)}else{if(category=="Furniture"){PostAdFurniture("Edit");clid=jsonData.listings.listing[0].clid;updateEditFurniture(jsonData)}else{if(category=="Books"){PostAdBooks("Edit");clid=jsonData.listings.listing[0].clid;updateEditBooks(jsonData)}else{if(category=="Communities"&&subcategory=="Carpool"){PostAdCarPool("Carpoos","Edit");clid=jsonData.listings.listing[0].clid;updateEditCarpool(jsonData)}else{if(category=="Movies,Games"){PostMoviesGames(subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditMoviesGames(jsonData)}else{if(category=="Tickets"){PostAdTickets(subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditTickets(jsonData)}else{if(category=="Personals"){postAdPersonals(subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditPersonals(jsonData)}else{if(category=="Computers"){postAdComputers(subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditComputers(jsonData)}else{if(category=="Communities"&&subcategory=="Events"){PostAdEvents("Edit");clid=jsonData.listings.listing[0].clid;updateEditEvents(jsonData)}else{if(category=="Jobs"){PostAdJobs(subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditJobs(jsonData)}else{if(category=="Properties"){PostAdProperty(subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditProperty(jsonData)}else{if(category=="Housing"){PostAdPGRoommates(subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditPGRoommates(jsonData)}else{if(category=="Mobiles"){PostAdMobiles(subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditMobiles(jsonData)}else{if(category=="Appliances"||category=="Electronics"){PostAdApplianceElectronics(category,subcategory,"Edit");clid=jsonData.listings.listing[0].clid;updateEditAEC(jsonData)}}}}}}}}}}}}}}}}}hide_loader()}function updateEditAds(){if(request1.readyState==4){if(request1.status==200){var A=request1.responseText;closeMarketWindow();check_myaccount("myaccount/myads.php?sel_menu=1")}}}function updateEditAutos(A){document.getElementById("title_car").value=A.listings.listing[0].title;document.getElementById("kms_car").value=A.listings.listing[0].kms;document.getElementById("color_name").value=A.listings.listing[0].color;document.getElementById("year_car").value=A.listings.listing[0].year;document.getElementById("price_car").value=A.listings.listing[0].price;document.getElementById("desc_car").value=A.listings.listing[0].desc;document.getElementById("first_auto").value=A.listings.listing[0].make;document.getElementById("cond_car").value=A.listings.listing[0].auto_cond;Edit_User_Ads_Images(A.listings.listing[0].image,A.listings.listing[0].randomImage)}function postEditAutos(A){var B="my_account/My_Ads_Save_Edit_Autos.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditMobiles(A){document.getElementById("AEC_title").value=A.listings.listing[0].title;document.getElementById("first_auto").value=A.listings.listing[0].make;document.getElementById("AEC_condition").value=A.listings.listing[0].condition;document.getElementById("AEC_price").value=A.listings.listing[0].price;document.getElementById("AEC_description").value=A.listings.listing[0].desc;Edit_User_Ads_Images(A.listings.listing[0].image,A.listings.listing[0].randomImage)}function postEditMobiles(A){var B="my_account/My_Ads_Save_Edit_AEC.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditAEC(A){document.getElementById("AEC_title").value=A.listings.listing[0].title;document.getElementById("first_auto").value=A.listings.listing[0].make;document.getElementById("AEC_condition").value=A.listings.listing[0].condition;document.getElementById("AEC_price").value=A.listings.listing[0].price;document.getElementById("AEC_description").value=A.listings.listing[0].desc;var B=A.listings.listing[0].subcategory;if(B=="Cameras"){document.getElementById("camera_mp").value=A.listings.listing[0].cam_mp}else{if(B=="Televisions"){document.getElementById("tv_size").value=A.listings.listing[0].tv_size;document.getElementById("tv_type").value=A.listings.listing[0].tv_type}}Edit_User_Ads_Images(A.listings.listing[0].image,A.listings.listing[0].randomImage)}function postEditAEC(A){var B="my_account/My_Ads_Save_Edit_AEC.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditJobs(A){document.getElementById("job_title").value=A.listings.listing[0].title;document.getElementById("job_designation").value=A.listings.listing[0].designation;document.getElementById("job_candidate_profile").value=A.listings.listing[0].candidate_profile;document.getElementById("job_functionalarea").value=A.listings.listing[0].fucntional_area;document.getElementById("job_industry").value=A.listings.listing[0].industry;document.getElementById("job_role").value=A.listings.listing[0].role;document.getElementById("job_salaryLacs").value=A.listings.listing[0].salary_max;document.getElementById("job_salaryThousands").value=A.listings.listing[0].salary_min;document.getElementById("job_max_workexp").value=A.listings.listing[0].exp_max;document.getElementById("job_min_workexp").value=A.listings.listing[0].exp_min;document.getElementById("UGCourse").value=A.listings.listing[0].ug_qualification;document.getElementById("PGCourse").value=A.listings.listing[0].pg_qualification;document.getElementById("job_location").value=A.listings.listing[0].location1;document.getElementById("job_company_name").value=A.listings.listing[0].company_name;document.getElementById("job_designation").value=A.listings.listing[0].candidate_position;document.getElementById("job_company_profile").value=A.listings.listing[0].company_profile}function postEditJobs(A){var B="my_account/My_Ads_Save_Edit_Jobs.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditProperty(G){var C=G.listings.listing[0].subcategory;document.getElementById("property_title").value=G.listings.listing[0].title;document.getElementById("property_description").value=G.listings.listing[0].desc;document.getElementById("transaction_type").value=G.listings.listing[0].transaction;var E=parseInt(G.listings.listing[0].price);var H=Math.round(E/10000000);var D=Math.round((E/100000)%100);var J=Math.round((E/1000)%100);document.getElementById("property_price_cr").value=H;document.getElementById("property_price_lacs").value=D;document.getElementById("property_price_thousands").value=J;if(C=="Apartments"){document.getElementById("property_built_area").value=G.listings.listing[0].area;document.getElementById("property_on_floor").value=G.listings.listing[0].prop_on_floor;document.getElementById("property_car_park").value=G.listings.listing[0].no_of_parking;document.getElementById("property_bedrooms").value=G.listings.listing[0].no_of_bedroom;document.getElementById("property_bathrooms").value=G.listings.listing[0].no_of_bathroom}else{if(C=="Independent House"){document.getElementById("property_built_area").value=G.listings.listing[0].area;document.getElementById("property_no_of_floors").value=G.listings.listing[0].no_of_floors;document.getElementById("property_car_park").value=G.listings.listing[0].no_of_parking;document.getElementById("property_bedrooms").value=G.listings.listing[0].no_of_bedroom;document.getElementById("property_bathrooms").value=G.listings.listing[0].no_of_bathroom}else{if(C=="Office Space"){document.getElementById("property_built_area").value=G.listings.listing[0].area;document.getElementById("property_on_floor").value=G.listings.listing[0].prop_on_floor;document.getElementById("office_seating_capacity").value=G.listings.listing[0].seating_capacity;document.getElementById("office_restroom").value=G.listings.listing[0].no_restrooms}else{if(C=="Retail Space"){document.getElementById("property_no_of_floors").value=G.listings.listing[0].no_of_floors;document.getElementById("frontage_width").value=G.listings.listing[0].frontarea_width;var I=document.getElementById("frontage_yes");var B=document.getElementById("frontage_no");if(G.listings.listing[0].frontarea_visible="Yes"){I.checked=true}else{B.checked=true}}else{if(C=="Land"){document.getElementById("property_land_area").value=G.listings.listing[0].area;document.getElementById("property_electricity").value=G.listings.listing[0].electric_supply;document.getElementById("water_supply").value=G.listings.listing[0].water_supply;var F=document.getElementById("land_cultivation_yes");var A=document.getElementById("land_cultivation_no");if(G.listings.listing[0].land_cultivation="Yes"){F.checked=true}else{A.checked=true}}else{if(C=="Others"){}}}}}}Edit_User_Ads_Images(G.listings.listing[0].image,G.listings.listing[0].randomImage)}function postEditProperty(A){var B="my_account/My_Ads_Save_Edit_Property.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditPGRoommates(I){var D=I.listings.listing[0].subcategory;document.getElementById("PG_title").value=I.listings.listing[0].title;document.getElementById("PG_description").value=I.listings.listing[0].desc;document.getElementById("PG_gender").value=I.listings.listing[0].gender;var F=document.getElementById("PG_bathroom_yes");var C=document.getElementById("PG_bathroom_no");var E=document.getElementById("PG_single");var G=document.getElementById("PG_sharing");if(D=="Accomodation"){var B=document.getElementById("PG_any");if(I.listings.listing[0].room_type=="Any"){B.checked=true}else{if(I.listings.listing[0].room_type=="Sharing"){G.checked=true}else{if(I.listings.listing[0].room_type=="Single"){E.checked=true}}}document.getElementById("PG_rent_from").value=I.listings.listing[0].rent1;document.getElementById("PG_rent_to").value=I.listings.listing[0].rent2;var J=document.getElementById("PG_localtiy_one");var K=document.getElementById("PG_locality_two");var H=I.listings.listing[0].location1.split(",");for(i=0;i<H.length;i++){var A=document.createElement("OPTION");A.value=H[i];A.text=H[i];K.options.add(A,i)}}else{document.getElementById("PG_rent_tenant").value=I.listings.listing[0].rent1;document.getElementById("first_auto").value=I.listings.listing[0].location1;if(I.listings.listing[0].room_type=="Sharing"){G.checked=true}else{if(I.listings.listing[0].room_type=="Single"){E.checked=true}}}if(I.listings.listing[0].bathroom=="Yes"){F.checked=true}else{if(I.listings.listing[0].bathroom=="No"){C.checked=true}}Edit_User_Ads_Images(I.listings.listing[0].image,I.listings.listing[0].randomImage)}function postEditPGRoommates(A){var B="my_account/My_Ads_Save_Edit_PGRoommates.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditMoviesGames(A){document.getElementById("cd_dvd_title").value=A.listings.listing[0].title;document.getElementById("cd_dvd_note").value=A.listings.listing[0].desc;document.getElementById("first_auto").value=A.listings.listing[0].name;document.getElementById("cd_dvd_price").value=A.listings.listing[0].price;document.getElementById("cd_dvd_media").value=A.listings.listing[0].media;if(A.listings.listing[0].subcategory=="Games"){document.getElementById("games_platform").value=A.listings.listing[0].game_platform}}function postEditMoviesGames(A){var B="my_account/My_Ads_Save_Edit_MoviesGames.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditBooks(A){document.getElementById("book_ad_title").value=A.listings.listing[0].title;document.getElementById("first_auto").value=A.listings.listing[0].bookname;document.getElementById("book_note").value=A.listings.listing[0].desc;document.getElementById("book_price").value=A.listings.listing[0].price}function postEditBooks(A){var B="my_account/My_Ads_Save_Edit_Books.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditPersonals(A){document.getElementById("title_personal").value=A.listings.listing[0].title;document.getElementById("descp_personal").value=A.listings.listing[0].desc;document.getElementById("ageself_personal").value=A.listings.listing[0].age_self;document.getElementById("first_auto").value=A.listings.listing[0].locality;document.getElementById("agepartner_personal").value=A.listings.listing[0].agepartner;Edit_User_Ads_Images(A.listings.listing[0].image,A.listings.listing[0].randomImage)}function postEditPersonals(A){var B="my_account/My_Ads_Save_Edit_Personals.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditCarpool(B){var E=B.listings.listing[0].days.split(",");var A=E.length;for(i=1;i<8;i++){if(B.listings.listing[0].days.indexOf(document.getElementById("weekday"+i).value)!=-1){document.getElementById("weekday"+i).checked=true}}document.getElementById("title_pool").value=B.listings.listing[0].title;document.getElementById("first_auto").value=B.listings.listing[0].from;document.getElementById("first_auto1").value=B.listings.listing[0].to;document.getElementById("descp_pool").value=B.listings.listing[0].desc;var D=B.listings.listing[0].time1.split(":");document.getElementById("Bhours").value=D[0];document.getElementById("Bminutes").value=D[1];document.getElementById("BAM_PM").value=D[2];var C=B.listings.listing[0].time2.split(":");document.getElementById("Thours").value=C[0];document.getElementById("Tminutes").value=C[1];document.getElementById("TAM_PM").value=C[2]}function postEditCarPool(A){var B="my_account/My_Ads_Save_Edit_CarPool.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditFurniture(A){document.getElementById("title_fur").value=A.listings.listing[0].title;document.getElementById("type_fur").value=A.listings.listing[0].subcategory;document.getElementById("description_fur").value=A.listings.listing[0].desc;document.getElementById("price_fur").value=A.listings.listing[0].price;Edit_User_Ads_Images(A.listings.listing[0].image,A.listings.listing[0].randomImage)}function postEditFurniture(A){var B="my_account/My_Ads_Save_Edit_Furniture.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditEvents(A){document.getElementById("title_event").value=A.listings.listing[0].title;document.getElementById("name_event").value=A.listings.listing[0].name;document.getElementById("theDate").value=A.listings.listing[0].date;document.getElementById("descp_event").value=A.listings.listing[0].desc;document.getElementById("first_auto").value=A.listings.listing[0].locality;var B=A.listings.listing[0].time.split(":");document.getElementById("Bhours").value=B[0];document.getElementById("Bminutes").value=B[1];document.getElementById("BAM_PM").value=B[2]}function postEditEvents(A){var B="my_account/My_Ads_Save_Edit_Events.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditTickets(A){document.getElementById("ticket_title").value=A.listings.listing[0].title;document.getElementById("first_auto2").value=A.listings.listing[0].name;document.getElementById("ticket_date").value=A.listings.listing[0].date;document.getElementById("first_auto").value=A.listings.listing[0].locality;document.getElementById("first_auto1").value=A.listings.listing[0].hall;document.getElementById("ticket_price").value=A.listings.listing[0].price;document.getElementById("ticket_description").value=A.listings.listing[0].desc;var B=A.listings.listing[0].time.split(":");document.getElementById("Thours").value=B[0];document.getElementById("Tminutes").value=B[1];document.getElementById("TAM_PM").value=B[2]}function postEditTickets(A){var B="my_account/My_Ads_Save_Edit_Tickets.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditComputers(A){var B=A.listings.listing[0].subcategory;document.getElementById("AEC_title").value=A.listings.listing[0].title;document.getElementById("AEC_condition").value=A.listings.listing[0].condition;document.getElementById("AEC_price").value=A.listings.listing[0].price;document.getElementById("AEC_description").value=A.listings.listing[0].desc;if(B=="Desktops"){document.getElementById("desk_type_BA").value=A.listings.listing[0].desk_type;checkDesktopType();if(A.listings.listing[0].desk_type=="Assembled"){document.getElementById("RAM_type").value=A.listings.listing[0].ram_type;document.getElementById("RAM_size").value=A.listings.listing[0].ram_size;document.getElementById("desk_Processor").value=A.listings.listing[0].processor;document.getElementById("CD_DVD_ROM").value=A.listings.listing[0].cd_dvd;document.getElementById("HDD").value=A.listings.listing[0].hdd;document.getElementById("Monitor_type").value=A.listings.listing[0].monitor_type;document.getElementById("Monitor_size").value=A.listings.listing[0].monitor}else{if(A.listings.listing[0].desk_type=="Branded"){document.getElementById("first_auto").value=A.listings.listing[0].make}}}else{if(B=="Laptops"||B=="Printers"||B=="Scanners"||B=="Keyboard"||B=="Mouse"){document.getElementById("first_auto").value=A.listings.listing[0].make}else{if(B=="Monitors"){document.getElementById("monitor_type").value=A.listings.listing[0].monitor_type;document.getElementById("monitor_size").value=A.listings.listing[0].monitor;document.getElementById("first_auto").value=A.listings.listing[0].make}}}Edit_User_Ads_Images(A.listings.listing[0].image,A.listings.listing[0].randomImage)}function postEditComputers(A){var B="my_account/My_Ads_Save_Edit_AEC.php";request1.open("POST",B,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(A)}function updateEditEverything(A){document.getElementById("title_fur").value=A.listings.listing[0].title;document.getElementById("price_fur").value=A.listings.listing[0].price;document.getElementById("description_fur").value=A.listings.listing[0].desc;Edit_User_Ads_Images(A.listings.listing[0].image,A.listings.listing[0].randomImage)}function postEditEverithing(B,A){if(B=="Autos"){var D="my_account/My_Ads_Save_Edit_Autos.php";var C=A+"&pstring="+escape("")+"&kms="+escape("")+"&year="+escape("")+"&color="+escape("")}else{if(B=="Personals"){var D="my_account/My_Ads_Save_Edit_Personals.php";var C=A+"&age="+escape("")+"&locality="+escape("")+"&age_of_partner="+escape("")}else{if(B=="Electronics"||B=="Appliances"||B=="Computers"||B=="Mobiles"){var D="my_account/My_Ads_Save_Edit_AEC.php";var C=A+"&make="+escape("")+"&model="+escape("")+"&mob_condition="+escape("")+"&tv_type="+escape("")+"&tv_size="+escape("")+"&cam_mp="+escape("")+"&mouse_key_type="+escape("")+"&subcategory2="+escape("")+"&desk_type="+escape("")+"&ram_type="+escape("")+"&ram_size="+escape("")+"&processor="+escape("")+"&cd_dvd="+escape("")+"&hdd="+escape("")+"&monitor_type="+escape("")+"&monitor="+escape("")}else{var D="my_account/My_Ads_Save_Edit_Everything.php";var C=A}}}request1.open("POST",D,true);request1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request1.onreadystatechange=updateEditAds;request1.send(C)};