var WebserviceRequestInitialized=false;function WebserviceRequestModalShow(){if(!WebserviceRequestInitialized){initWebserviceRequest()}var a=document.getElementById("WebserviceRequestDlg");a.style.display="block";a.style.width="710px";document.getElementById("WebserviceRequestFeedback").style.display="none";document.getElementById("WebserviceRequestFeedbackCD").style.display="none";document.getElementById("WebserviceRequestTable").style.display="";YWebserviceRequestDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleWebserviceRequestSubmit},{text:"Close",handler:handleWebserviceRequestCancel}]);YWebserviceRequestDialog.render();YWebserviceRequestDialog.show()}var WebserviceRequestTimer=3;function WebserviceRequestTimerCountDown(){if(WebserviceRequestTimer>0){var a=document.getElementById("WebserviceRequestFeedbackCD");a.innerHTML="This message will self destruct in "+WebserviceRequestTimer+" seconds";WebserviceRequestTimer=WebserviceRequestTimer-1;var b=window.setTimeout("WebserviceRequestTimerCountDown()",1000)}else{YWebserviceRequestDialog.hide();WebserviceRequestTimer=3}}function WebserviceRequestSubmitCallback(c){var a=c.responseText;document.webserviceRequestBean.reset();var b=document.getElementById("WebserviceRequestFeedback");b.style.display="";b.innerHTML="Thanks, we will get back to you shortly!";document.getElementById("WebserviceRequestTable").style.display="none";document.getElementById("WebserviceRequestFeedbackCD").style.display="";WebserviceRequestTimerCountDown()}function WebserviceRequestSubmitFailure(a){alert("Oops, please try after some time")}function showWebserviceRequestError(a){var b=document.getElementById("WebserviceRequestFeedback");b.style.display="";b.innerHTML=a+"  cannot be submitted"}function handleWebserviceRequestCancel(){YWebserviceRequestDialog.cancel()}function isWebserviceRequestFormValid(){var f=document.webserviceRequestBean.contactName.value;var c=document.webserviceRequestBean.businessDetails.value;var e=document.webserviceRequestBean.city.value;var d=document.webserviceRequestBean.emailAddress.value;var b=document.webserviceRequestBean.website.value;var a=document.webserviceRequestBean.contactNumber.value;if(f.trim().length==0){alert("Please enter the contact person name");return false}if(c.trim().length==0){alert("Please enter the business details for which webservice account is required");return false}if(e.trim().length==0){alert("Please enter the city of your business");return false}if(a.trim().length==0){alert("Please enter the contact number for your listing");return false}if(d.trim().length==0){alert("Please enter the contact person email address");return false}if(b.trim().length==0){alert("Please enter the website for which you need webservice");return false}return true}function handleWebserviceRequestSubmit(){var b=document.getElementById("WebserviceRequestContents");if(!isWebserviceRequestFormValid()){}else{YWebserviceRequestDialog.doSubmit();var a=document.getElementById("WebserviceRequestFeedback");a.style.display="";a.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YWebserviceRequestDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleWebserviceRequestCancel}]);YWebserviceRequestDialog.render()}}function initWebserviceRequest(){YWebserviceRequestDialog=new YAHOO.widget.Dialog("WebserviceRequestDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YWebserviceRequestDialog.callback.success=WebserviceRequestSubmitCallback;YWebserviceRequestDialog.callback.failure=WebserviceRequestSubmitFailure;YWebserviceRequestDialog.cfg.setProperty("postmethod","async",true);YWebserviceRequestDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleWebserviceRequestSubmit},{text:"Close",handler:handleWebserviceRequestCancel}]);var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){YWebserviceRequestDialog.hide()},scope:YWebserviceRequestDialog,correctScope:true});var a=new Array();a.push(b);YWebserviceRequestDialog.cfg.queueProperty("keylisteners",a);WebserviceRequestInitialized=true;YWebserviceRequestDialog.render()}var xhr=null;var uncheckClicked=false;var firstTimeUnchecker=true;var numExamples=15;var selected=Math.floor(Math.random()*numExamples);var acSelected=false;var gpsLocation=null;var isClicked=false;function trimTextArea(a){if(a.value.trim()=="Be the first to comment!"){a.value=""}}function changeOfferKaptcha(a){var b=document.getElementById("offerKaptchaImage");if(b!=null){b.src=a+Math.floor(Math.random()*100)}}function changeImage(a){var b=document.getElementById("kaptchaImage");if(b!=null){b.src=a+Math.floor(Math.random()*100)}}function searchDefaultPage(){alert("Please select a city")}function toggleLocAutoDetectCookie(c){var b="";if(c.checked==undefined||c.checked==false){setSldCookie("ld","false",b)}else{setSldCookie("ld","true",b);getFFGeoLocation();var a=document.searchForm.where;
if(a.value.trim()!=""&&a.value.indexOf("For Example")==-1){a.value=""}}}function locationAutoDetectCheckUncheck(a){if(a.value.trim()!=""&&a.value.indexOf("For Example")==-1){document.searchForm.locAutoDetectChkBox.checked=false}else{if(readCookieGen("ld")==null||readCookieGen("ld")=="true"){document.searchForm.locAutoDetectChkBox.checked=true}else{document.searchForm.locAutoDetectChkBox.checked=false}}}function emailCheck(f){var a="@";var b=".";var e=f.indexOf(a);var c=f.length;var d=f.indexOf(b);if(f.indexOf(a)==-1){alert("Invalid E-mail ID");return false}if(f.indexOf(a)==-1||f.indexOf(a)==0||f.indexOf(a)==c){alert("Invalid E-mail ID");return false}if(f.indexOf(b)==-1||f.indexOf(b)==0||f.indexOf(b)==c){alert("Invalid E-mail ID");return false}if(f.indexOf(a,(e+1))!=-1){alert("Invalid E-mail ID");return false}if(f.substring(e-1,e)==b||f.substring(e+1,e+2)==b){alert("Invalid E-mail ID");return false}if(f.indexOf(b,(e+2))==-1){alert("Invalid E-mail ID");return false}if(f.indexOf(" ")!=-1){alert("Invalid E-mail ID");return false}return true}function getFFGeoLocation(){try{var a=navigator.userAgent;if(document.searchForm&&(/Firefox\/3\.[5-9]/.test(a)||/Firefox\/[4-9]/.test(a))&&(gpsLocation==null||gpsLocation.trim()=="")){navigator.geolocation.getCurrentPosition(searchWithBrowserLocationData)}}catch(b){}}function displayFFAutoLocationChkBox(){var a=navigator.userAgent;if(document.searchForm&&(/Firefox\/3\.[5-9]/.test(a)||/Firefox\/[4-9]/.test(a))&&(gpsLocation==null||gpsLocation.trim()=="")){document.getElementById("locAutoDetectTxt").style.display="";document.searchForm.locAutoDetectChkBox.style.display="";if(readCookieGen("ld")!=null&&readCookieGen("ld")=="true"){document.searchForm.locAutoDetectChkBox.checked=true;getFFGeoLocation()}else{document.searchForm.locAutoDetectChkBox.checked=false}}}function searchWithBrowserLocationData(c){var d=c.coords.latitude+","+c.coords.longitude;gpsLocation=d;if(readCookieGen("lmsg")==null){alert('Thank you for enabling Geolocation. You will not need to type your locality for your queries.\n\nYou can disable this feature by un-checking the "Use Geolocation" checkbox on the search bar');var b="";setSldCookie("lmsg","true",b)}var a=document.searchForm.where.value.trim();if(readCookieGen("ld")==null||readCookieGen("ld")=="true"){document.searchForm.locAutoDetectChkBox.checked=true}else{document.searchForm.locAutoDetectChkBox.checked=false}}function search(d){var c=document.searchForm.what.value.trim();var b=document.searchForm.where.value.trim();var g=false;var f="";if(document.searchForm.searchNearbyCheck!=null){var g=document.searchForm.searchNearbyCheck.checked}var e=document.searchForm.city.value;c=filterNum(c);b=filterNum(b);if((b=="")||(b.indexOf("For Example")!=-1)){b="-"}if(c==""||c.indexOf("Listings, Movies and Events")!=-1||c.indexOf("Business Listings")!=-1){c="-"}if(d){f="http://"+getFullURLServerName()+getContextPath()+"/search/"+encodeURIComponent(e)+"/"+encodeURIComponent(b.replace(" ","_"))+"/"+encodeURIComponent(c.replace(" ","_"))+"/"+c.replace(" ","_")+((b.length>0&&b!="-")?("_"+b):"")+"_"+e+".html"}else{f="http://"+getFullURLServerName()+getContextPath()+"/search/"+encodeURIComponent(e)+"/"+encodeURIComponent(b)+"/"+encodeURIComponent(c)+"/"}if(g){f+="?searchNearby=true"}else{f+="?searchNearby=false"}var a=document.searchForm.locAutoDetectChkBox;if(a){if(b=="-"&&a.checked&&gpsLocation!=null&&gpsLocation.trim()!=""){f+="&gpsLocation="+gpsLocation}}if(acSelected==true){f=f+"&ac=true"}window.location.href=f;return false}function searchBusinessCats(a){a=filterNum(a);if(a==""){a="-"}var b="http://"+getFullURLServerName()+"/search/"+encodeURIComponent(city)+"/-/"+encodeURIComponent(a)+"/";document.URL=b;return false}function searchByCategory(d,a,b){a=filterNum(a.trim());d=filterNum(d);var e=document.searchForm.city.value;var g=false;if(document.searchForm.searchNearbyCheck!=null){var g=document.searchForm.searchNearbyCheck.checked}if(a==""){a="-"}if(d==""){d="-"}var c=getURLParam("skin");if(c==null||c==""){c="default"}var f="";f="http://"+getFullURLServerName()+"/category/"+encodeURIComponent(e)+"/"+encodeURIComponent(a)+"/"+encodeURIComponent(d)+"/"+encodeURIComponent(b)+"/";if(g){f+="?searchNearby=true"}else{f+="?searchNearby=false"}window.location.href=f}function proxyCheck(a,b){if(document.searchForm.searchNearbyCheck==null){return}if(b==""){}else{if((b=="false")&&(firstTimeUnchecker==true)){document.forms.searchForm.searchNearbyCheck.checked=false;uncheckClicked=true;firstTimeUnchecker=false;return}}if(isEmpty(a)){document.forms.searchForm.searchNearbyCheck.disabled=true;document.forms.searchForm.searchNearbyCheck.checked=false}else{document.forms.searchForm.searchNearbyCheck.disabled=false;if(uncheckClicked==false){document.forms.searchForm.searchNearbyCheck.checked=true}}}function getURLParam(e){var d="";var c=window.location.href;if(c.indexOf("?")>-1){var b=c.substr(c.indexOf("?")).toLowerCase();var f=b.split("&");for(var a=0;a<f.length;a++){if(f[a].indexOf(e.toLowerCase()+"=")>-1){var g=f[a].split("=");
d=g[1];break}}}return unescape(d)}function filterNum(a){re=/\$|~|`|\%|\*|\+|\;|\:|\^|\(|\)|\[|\]|\}|\{|\<|\>|\?|\||\\|\!|\/|\$/g;return a.replace(re," ")}function isEmpty(a){var b=/^\s{1,}$/g;if((a.value.length==0)||(a.value==null)||((a.value.search(b))>-1)){return true}else{return false}}function ismaxlength(b){var a=b.getAttribute?parseInt(b.getAttribute("maxlength")):"";if(b.getAttribute&&b.value.length>a){b.value=b.value.substring(0,a)}}function getDisplayType(){if(selected!=undefined&&document.getElementById("example_"+selected)!=undefined){document.getElementById("example_"+selected).style.display=""}}function toggleASCheckedState(a){var b=new Date(new Date().getTime()+(365*24*60*60*1000)).toGMTString();if(a.checked==false){setSldCookie("ea","false",b);YAHOO.example.ACJson.oAutoComp.minQueryLength=50}else{setSldCookie("ea","true",b);YAHOO.example.ACJson.oAutoComp.minQueryLength=2}}function initASCheckedState(){var a=readCookieGen("ea");var b=new Date(new Date().getTime()+(365*24*60*60*1000)).toGMTString();if((a==null)||(a=="true")){if(document.forms.searchForm&&document.forms.searchForm.autosuggestcheck){document.forms.searchForm.autosuggestcheck.checked=true}setSldCookie("ea","true",b);if(YAHOO.example.ACJson){YAHOO.example.ACJson.oAutoComp.minQueryLength=2}}else{if(document.forms.searchForm&&document.forms.searchForm.autosuggestcheck){document.forms.searchForm.autosuggestcheck.checked=false}setSldCookie("ea","false",b);if(YAHOO.example.ACJson){YAHOO.example.ACJson.oAutoComp.minQueryLength=50}}}function initDTAndAS(){getDisplayType();initASCheckedState()}function findMouseOver(a){a.src=getStaticUrl(getContextPath()+"/webres/img/v2imgs/find_hvr.png","img")}function findMouseDown(a){a.src=getStaticUrl(getContextPath()+"/webres/img/v2imgs/find_nor.png","img")}function findMouseOut(a){a.src=getStaticUrl(getContextPath()+"/webres/img/v2imgs/find_nor.png","img")}function smsMouseOver(a){a.src=getStaticUrl("/webres/img/sms_hover.gif","img")}function smsMouseOut(a){a.src=getStaticUrl("/webres/img/sms.gif","img")}function emailMouseOver(a){a.src=getStaticUrl("/webres/img/email_hover.gif","img")}function emailMouseOut(a){a.src=getStaticUrl("/webres/img/email.gif","image")}String.prototype.trim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"")};String.prototype.fulltrim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ")};String.prototype.stringReplace=function(c,b){var e=new String(this);var d=0;var a=c.length;d=e.indexOf(c);while(d!=-1){preString=e.substring(0,d);postString=e.substring(d+a,e.length);e=preString+b+postString;d=e.indexOf(c)}return e};function toggleCheckedState(){if(uncheckClicked==false){uncheckClicked=true}else{uncheckClicked=false}}function createXHR(){var a=false;xhr=null;if(xhr==null){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){a=false}}if(!a&&typeof XMLHttpRequest!="undefined"){try{a=new XMLHttpRequest()}catch(c){a=false}}if(!a&&window.createRequest){try{a=window.createRequest()}catch(c){a=false}}xhr=a}return xhr}var commentRatingTypes=["LOVE_IT","LIKE_IT","HMMM"];function commentRatingSubmit(commentId,rating,commentType){var msgElement=document.getElementById("cmtRtg"+commentId);if(msgElement){msgElement.innerHTML="Saving your vote..."}var xhrCommRat=createXHR();var bCookie=getCookie("b");var params="cId="+encodeURI(commentId);params=params+"&rt="+encodeURI(rating);params=params+"&bc="+encodeURI(bCookie);params=params+"&ct="+encodeURI(commentType);xhrCommRat.onreadystatechange=function(){if(xhrCommRat.readyState==4){for(var itr=0;itr<commentRatingTypes.length;itr++){if(document.getElementById(commentRatingTypes[itr]+"_"+commentId)){document.getElementById(commentRatingTypes[itr]+"_"+commentId).setAttribute("class","cmtRtgBtnEbld");document.getElementById(commentRatingTypes[itr]+"_"+commentId).removeAttribute("disabled")}}var curComRatEle=document.getElementById(rating+"_"+commentId);if(curComRatEle){curComRatEle.setAttribute("class","cmtRtgBtnDbld");curComRatEle.setAttribute("disabled","true")}var responseTxt=xhrCommRat.responseText;var responseJSON=eval("("+responseTxt+")");if(responseJSON.STATUS=="OK"){if(responseJSON.INCREMENT_COUNT){var curCount=commentRatingsForPage[commentId][responseJSON.INCREMENT_COUNT+"_COUNT"];document.getElementById(responseJSON.INCREMENT_COUNT+"_COUNT"+commentId).innerHTML="("+(curCount+1)+")";commentRatingsForPage[commentId][responseJSON.INCREMENT_COUNT+"_COUNT"]=curCount+1}if(responseJSON.DECREMENT_COUNT){var curCount=commentRatingsForPage[commentId][responseJSON.DECREMENT_COUNT+"_COUNT"];if(curCount>0){document.getElementById(responseJSON.DECREMENT_COUNT+"_COUNT"+commentId).innerHTML="("+(curCount-1)+")";commentRatingsForPage[commentId][responseJSON.DECREMENT_COUNT+"_COUNT"]=curCount-1}}}if(msgElement){if(responseJSON&&responseJSON.MSG){msgElement.innerHTML=responseJSON.MSG}else{msgElement.innerHTML="Failed saving your vote. Please try again later."
}}}};var url=getContextPath()+"/updatecommentrating?"+params;xhrCommRat.open("GET",url,true);xhrCommRat.send(null);return}function clearDisabledOnComment(a){if(document.getElementById("LOVE_IT_"+a)){document.getElementById("LOVE_IT_"+a).removeAttribute("disabled")}if(document.getElementById("LIKE_IT_"+a)){document.getElementById("LIKE_IT_"+a).removeAttribute("disabled")}if(document.getElementById("HMMM_"+a)){document.getElementById("HMMM_"+a).removeAttribute("disabled")}}function readCookieGen(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function getCookieDomainString(){domainString="";if(window.location.href.search(/asklaila\.com/)!=-1){domainString="domain=asklaila.com;"}return domainString}function getCookie(c){if(document.cookie.length>0){var b=document.cookie.split(";");for(var a=0;a<b.length;a++){if(b[a].trim().indexOf(c+"=")==0){return b[a].substring(b[a].indexOf("=")+1)}}}return""}function setSldCookie(a,c,b){domainString=getCookieDomainString();cookieString=a+"="+c+";path=/;"+domainString;if(b!=""){cookieString+="expires="+b+";"}document.cookie=cookieString}function saveUserContent(a,b){setSldCookie("uc",a+"|"+encodeURIComponent(b.value),"")}function saveUserLocation(a,b){setSldCookie("ul",a+"|"+encodeURIComponent(b.value),"")}function selectCity(e){if(document.getElementById("what")){var d=document.getElementById("what").value;var b=createXHR();var c="/SetWhat.do?what="+d;b.open("GET",c,true);b.onreadystatechange=function(){};b.send(null)}var a=new Date(new Date().getTime()+(365*24*60*60*1000)).toGMTString();setSldCookie("ci",e,a);window.location="http://"+getFullURLServerName()+getContextPath()+"/"+e+"/";return false}function selectCityAndRedirect(f,d){var e=document.getElementById("what").value;var b=createXHR();var c="/SetWhat.do?what="+e;b.open("GET",c,true);b.onreadystatechange=function(){};b.send(null);var a=new Date(new Date().getTime()+(365*24*60*60*1000)).toGMTString();setSldCookie("ci",f,a);if(d.contains("http")==-1){alert(d);window.location="http://"+getFullURLServerName()+getContextPath()+d}else{alert(d);window.location=d}return false}function selectCityAndUrl(c,b){var a=new Date(new Date().getTime()+(365*24*60*60*1000)).toGMTString();setSldCookie("ci",c,a);window.location=b.href;return false}function setCityCookie(b){var a=new Date(new Date().getTime()+(365*24*60*60*1000)).toGMTString();setSldCookie("ci",b,a);return true}function hidecityDiv(){var a=document.getElementById("cityLocation");a.style.display="none"}function showMoreCats(){var b=document.getElementsByName("hiddenCats");for(var c=0;c<b.length;c++){b[c].style.display=""}var a=document.getElementById("moreLink");a.style.display="none"}function removeWaterMark(a){if((a.value.indexOf("Listings, Movies and Events")!=-1)||(a.value.indexOf("Business Listings")!=-1)){a.value=""}a.style.color="black";a.style.fontWeight="bold"}function removeWhereWaterMark(a){if(a.value.indexOf("For Example")!=-1){a.value=""}a.style.color="black";a.style.fontWeight="bold"}var Spry;if(!Spry){Spry={}}if(!Spry.Widget){Spry.Widget={}}Spry.Widget.TabbedPanels=function(b,d){this.element=this.getElement(b);var a=Math.floor(Math.random()*10);if(a<=2){this.defaultTab=0}else{if(a>2&&a<=5){this.defaultTab=1}else{if(a>5&&a<=6){this.defaultTab=2}else{if(a>6&&a<=6){this.defaultTab=3}else{if(a>7&&a<=8){this.defaultTab=4}else{if(a>=9){this.defaultTab=5}}}}}}this.bindings=[];this.tabSelectedClass="TabbedPanelsTabSelected";this.tabHoverClass="TabbedPanelsTabHover";this.tabFocusedClass="TabbedPanelsTabFocused";this.panelVisibleClass="TabbedPanelsContentVisible";this.focusElement=null;this.hasFocus=false;this.currentTabIndex=0;this.enableKeyboardNavigation=true;Spry.Widget.TabbedPanels.setOptions(this,d);if(typeof(this.defaultTab)=="number"){if(this.defaultTab<0){this.defaultTab=0}else{var c=this.getTabbedPanelCount();if(this.defaultTab>=c){this.defaultTab=(c>1)?(c-1):0}}this.defaultTab=this.getTabs()[this.defaultTab]}if(this.defaultTab){this.defaultTab=this.getElement(this.defaultTab)}this.attachBehaviors()};Spry.Widget.TabbedPanels.prototype.getElement=function(a){if(a&&typeof a=="string"){return document.getElementById(a)}return a};Spry.Widget.TabbedPanels.prototype.getElementChildren=function(b){var a=[];var c=b.firstChild;while(c){if(c.nodeType==1){a.push(c)}c=c.nextSibling}return a};Spry.Widget.TabbedPanels.prototype.addClassName=function(b,a){if(!b||!a||(b.className&&b.className.search(new RegExp("\\b"+a+"\\b"))!=-1)){return}b.className+=(b.className?" ":"")+a};Spry.Widget.TabbedPanels.prototype.removeClassName=function(b,a){if(!b||!a||(b.className&&b.className.search(new RegExp("\\b"+a+"\\b"))==-1)){return}b.className=b.className.replace(new RegExp("\\s*\\b"+a+"\\b","g"),"")};Spry.Widget.TabbedPanels.setOptions=function(d,c,a){if(!c){return}for(var b in c){if(a&&c[b]==undefined){continue}d[b]=c[b]}};Spry.Widget.TabbedPanels.prototype.getTabGroup=function(){if(this.element){var a=this.getElementChildren(this.element);
if(a.length){return a[0]}}return null};Spry.Widget.TabbedPanels.prototype.getTabs=function(){var a=[];var b=this.getTabGroup();if(b){a=this.getElementChildren(b)}return a};Spry.Widget.TabbedPanels.prototype.getContentPanelGroup=function(){if(this.element){var a=this.getElementChildren(this.element);if(a.length>1){return a[1]}}return null};Spry.Widget.TabbedPanels.prototype.getContentPanels=function(){var a=[];var b=this.getContentPanelGroup();if(b){a=this.getElementChildren(b)}return a};Spry.Widget.TabbedPanels.prototype.getIndex=function(c,a){c=this.getElement(c);if(c&&a&&a.length){for(var b=0;b<a.length;b++){if(c==a[b]){return b}}}};Spry.Widget.TabbedPanels.prototype.getTabIndex=function(b){var a=this.getIndex(b,this.getTabs());if(a<0){a=this.getIndex(b,this.getContentPanels())}return a};Spry.Widget.TabbedPanels.prototype.getCurrentTabIndex=function(){return this.currentTabIndex};Spry.Widget.TabbedPanels.prototype.getTabbedPanelCount=function(a){return Math.min(this.getTabs().length,this.getContentPanels().length)};Spry.Widget.TabbedPanels.addEventListener=function(c,b,d,a){try{if(c.addEventListener){c.addEventListener(b,d,a)}else{if(c.attachEvent){c.attachEvent("on"+b,d)}}}catch(f){}};Spry.Widget.TabbedPanels.prototype.onTabClick=function(b,a){this.showPanel(a)};Spry.Widget.TabbedPanels.prototype.onTabMouseOver=function(b,a){this.addClassName(a,this.tabHoverClass)};Spry.Widget.TabbedPanels.prototype.onTabMouseOut=function(b,a){this.removeClassName(a,this.tabHoverClass)};Spry.Widget.TabbedPanels.prototype.onTabFocus=function(b,a){this.hasFocus=true;this.addClassName(this.element,this.tabFocusedClass)};Spry.Widget.TabbedPanels.prototype.onTabBlur=function(b,a){this.hasFocus=false;this.removeClassName(this.element,this.tabFocusedClass)};Spry.Widget.TabbedPanels.ENTER_KEY=13;Spry.Widget.TabbedPanels.SPACE_KEY=32;Spry.Widget.TabbedPanels.prototype.onTabKeyDown=function(c,b){var a=c.keyCode;if(!this.hasFocus||(a!=Spry.Widget.TabbedPanels.ENTER_KEY&&a!=Spry.Widget.TabbedPanels.SPACE_KEY)){return true}this.showPanel(b);if(c.stopPropagation){c.stopPropagation()}if(c.preventDefault){c.preventDefault()}return false};Spry.Widget.TabbedPanels.prototype.preorderTraversal=function(a,b){var d=false;if(a){d=b(a);if(a.hasChildNodes()){var f=a.firstChild;while(!d&&f){d=this.preorderTraversal(f,b);try{f=f.nextSibling}catch(c){f=null}}}}return d};Spry.Widget.TabbedPanels.prototype.addPanelEventListeners=function(d,b){var c=this;Spry.Widget.TabbedPanels.addEventListener(d,"click",function(f){return c.onTabClick(f,d)},false);Spry.Widget.TabbedPanels.addEventListener(d,"mouseover",function(f){return c.onTabMouseOver(f,d)},false);Spry.Widget.TabbedPanels.addEventListener(d,"mouseout",function(f){return c.onTabMouseOut(f,d)},false);if(this.enableKeyboardNavigation){var e=null;var a=null;this.preorderTraversal(d,function(f){if(f.nodeType==1){var g=d.attributes.getNamedItem("tabindex");if(g){e=f;return true}if(!a&&f.nodeName.toLowerCase()=="a"){a=f}}return false});if(e){this.focusElement=e}else{if(a){this.focusElement=a}}if(this.focusElement){Spry.Widget.TabbedPanels.addEventListener(this.focusElement,"focus",function(f){return c.onTabFocus(f,d)},false);Spry.Widget.TabbedPanels.addEventListener(this.focusElement,"blur",function(f){return c.onTabBlur(f,d)},false);Spry.Widget.TabbedPanels.addEventListener(this.focusElement,"keydown",function(f){return c.onTabKeyDown(f,d)},false)}}};Spry.Widget.TabbedPanels.prototype.showPanel=function(b){var f=-1;if(typeof b=="number"){f=b}else{f=this.getTabIndex(b)}if(!f<0||f>=this.getTabbedPanelCount()){return}var e=this.getTabs();var c=this.getContentPanels();var a=Math.max(e.length,c.length);for(var d=0;d<a;d++){if(d!=f){if(e[d]){this.removeClassName(e[d],this.tabSelectedClass)}if(c[d]){this.removeClassName(c[d],this.panelVisibleClass);c[d].style.display="none"}}}if(c[f]==undefined||c[f]==null){f=1}this.addClassName(e[f],this.tabSelectedClass);this.addClassName(c[f],this.panelVisibleClass);if(c[f]!=null){c[f].style.display="block"}this.currentTabIndex=f};Spry.Widget.TabbedPanels.prototype.attachBehaviors=function(d){var c=this.getTabs();var a=this.getContentPanels();var e=this.getTabbedPanelCount();for(var b=0;b<e;b++){this.addPanelEventListeners(c[b],a[b])}this.showPanel(this.defaultTab)};startList=function(){if(document.all&&document.getElementById){cssdropdownRoot=document.getElementById("cssdropdown");if(cssdropdownRoot==null){return}for(x=0;x<cssdropdownRoot.childNodes.length;x++){node=cssdropdownRoot.childNodes[x];if(node.nodeName=="LI"){node.onmouseover=function(){this.className+=" over"};node.onmouseout=function(){this.className=this.className.replace(" over","");this.style.backgroundColor="white"}}}}};if(window.attachEvent){window.attachEvent("onload",startList)}else{window.onload=startList}function showSugTip(b){var a=document.getElementById("suggTip");a.style.left=b.pageX?pageXOffset+b.clientX-100:document.body.scrollLeft+b.clientX-100;a.style.top=b.pageY?pageYOffset+b.clientY+100:document.body.scrollTop+b.clientY+100;
a.style.display="block"}function hideSugTip(){document.getElementById("suggTip").style.display="none"}function fillWaterMarkText_All(){if(document.forms.contactMeFormBean!=null){var c=document.getElementById("businessReqName");if(c!=null){var e=readCookieGen("lcfn");if(e!=null){c.value=hexDecode(e);removeWaterMarkText(c);setFlag(c)}else{fillWaterMarkText_wrapper(c,nameExampleText,nameFlag)}}var b=document.getElementById("businessReqMob");if(b!=null){var d=readCookieGen("lcfm");if(d!=null){b.value=hexDecode(d);removeWaterMarkText(b);setFlag(b)}else{fillWaterMarkText_wrapper(b,mobileExampleText,mobileFlag)}}var a=document.getElementById("businessReqMail");if(a!=null){fillWaterMarkText_wrapper(a,emailExampleText,emailFlag)}}}var nameExampleText="Sanjay Gupta";var nameFlag=true;var mobileExampleText="9902016976";var mobileFlag=true;var emailExampleText="example@domain.com";var emailFlag=true;function removeWaterMarkText(a){if(a.id=="businessReqName"){removeWaterMarkText_wrapper(a,nameExampleText,nameFlag)}else{if(a.id=="businessReqMob"){removeWaterMarkText_wrapper(a,mobileExampleText,mobileFlag)}else{if(a.id=="businessReqMail"){removeWaterMarkText_wrapper(a,emailExampleText,emailFlag)}}}}function fillWaterMarkText(a){if(a.id=="businessReqName"){fillWaterMarkText_wrapper(a,nameExampleText,nameFlag)}else{if(a.id=="businessReqMob"){fillWaterMarkText_wrapper(a,mobileExampleText,mobileFlag)}else{if(a.id=="businessReqMail"){fillWaterMarkText_wrapper(a,emailExampleText,emailFlag)}}}}function setFlag(a){if(a.value.trim().length>0){if(a.id=="businessReqName"){nameFlag=false}else{if(a.id=="businessReqMob"){mobileFlag=false}else{if(a.id=="businessReqMail"){emailFlag=false}}}a.className="normalText"}else{if(a.id=="businessReqName"){nameFlag=true}else{if(a.id=="businessReqMob"){mobileFlag=true}else{if(a.id=="businessReqMail"){emailFlag=true}}}}}function removeWaterMarkText_wrapper(c,b,a){if((a)&&(c.value==b)){c.value="";c.className="normalText"}}function fillWaterMarkText_wrapper(c,b,a){if((c.value.trim()=="")){c.value=b;c.className="waterMarkText"}}function validateFrm(){var e="";if(document.forms.contactMeFormBean.businessReq){e=document.forms.contactMeFormBean.businessReq.value}var a=document.forms.contactMeFormBean.businessReqMob.value;var c=document.forms.contactMeFormBean.businessReqMail.value;var b=document.forms.contactMeFormBean.businessReqLocality.value;var d=document.forms.contactMeFormBean.businessReqName.value;if(a==""){alert("Please enter your mobile number");document.getElementById("businessReqMob").focus();return false}if(a==mobileExampleText&&mobileFlag){alert("Please enter your mobile number");document.getElementById("businessReqMob").focus();return false}if(a.length>10){alert("Invalid Mobile Number");document.getElementById("businessReqMob").focus();return false}if((d==null||d.trim()=="")){alert("Please enter your name.");document.getElementById("businessReqName").focus();return false}if(d==nameExampleText&&nameFlag){alert("Please enter your name.");document.getElementById("businessReqName").focus();return false}if(d.length>30){alert("Your Name sholud not exceed 30 characters");document.getElementById("businessReqName").focus();return false}if(!checkMobileNumForLCF(a)){alert("Please enter correct mobile number!");document.getElementById("businessReqMob").focus();return false}if(document.contactMeFormBean.businessReq&&document.contactMeFormBean.businessReq.value.length>150){alert("Please enter your requirements within 150 characters.");document.contactMeFormBean.businessReq.focus();return false}if(!validateLcfAttributes()){return false}return true}function validateLcfAttributes(){clearLcfAttributeErrors();var b=0;while(document.getElementById("lcfAttr"+b)!=null){if(document.getElementById("lcfAttrType"+b)!=null&&document.getElementById("lcfAttrType"+b).value=="multiselect"&&document.getElementById("lcfMandatoryAttr"+b)!=null&&document.getElementById("lcfMandatoryAttr"+b).value=="1"){var a=true;j=0;while(document.getElementById("lcfAttr"+b+"_"+j)!=null){if(document.getElementById("lcfAttr"+b+"_"+j).checked){a=false;break}j++}if(a){showLcfAttributeErrors("Select at least one from: "+document.getElementById("lcfAttrLbl"+b).value,document.getElementById("lcfAttrErrorLabel"+b));return false}}else{if(document.getElementById("lcfAttrType"+b)!=null&&document.getElementById("lcfAttrType"+b).value=="radio"&&document.getElementById("lcfMandatoryAttr"+b)!=null&&document.getElementById("lcfMandatoryAttr"+b).value=="1"){var a=true;j=0;while(document.getElementById("lcfAttr"+b+"_"+j)!=null){if(document.getElementById("lcfAttr"+b+"_"+j).checked){a=false;break}j++}if(a){showLcfAttributeErrors("Choose one from: "+document.getElementById("lcfAttrLbl"+b).value,document.getElementById("lcfAttrErrorLabel"+b));return false}}else{if(document.getElementById("lcfAttrType"+b)!=null&&document.getElementById("lcfAttrType"+b).value=="select"&&document.getElementById("lcfMandatoryAttr"+b)!=null&&document.getElementById("lcfMandatoryAttr"+b).value=="1"){var a=true;
if(document.getElementById("lcfAttr"+b).value.length>0){a=false}if(a){showLcfAttributeErrors("Please select an option from: "+document.getElementById("lcfAttrLbl"+b).value,document.getElementById("lcfAttrErrorLabel"+b));return false}}else{if(document.getElementById("lcfAttrType"+b)!=null&&(document.getElementById("lcfAttrType"+b).value=="text"||document.getElementById("lcfAttrType"+b).value=="textarea")&&document.getElementById("lcfMandatoryAttr"+b).value=="1"){var a=true;if(document.getElementById("lcfAttr"+b).value.trim().length>0){a=false}if(a){showLcfAttributeErrors(document.getElementById("lcfAttrLbl"+b).value+" is required.",document.getElementById("lcfAttrErrorLabel"+b));return false}}}}}b++}return true}function showLcfAttributeErrors(b,a){a.innerHTML=b}function clearLcfAttributeErrors(){var a=0;while(document.getElementById("lcfAttrErrorLabel"+a)!=null){document.getElementById("lcfAttrErrorLabel"+a).innerHTML="";a++}}function checkMobileNumForLCF(c){var d=/^[8-9]\d{9}$/;var a=c.match(d);var b="";if(a!=null){b=a[1];return true}else{return false}}function hexEncode(e){var d="0123456789abcdef";var b=new Array();for(var c=0;c<256;c++){b[c]=d.charAt(c>>4)+d.charAt(c&15)}var a=new Array();for(var c=0;c<e.length;c++){a[c]=b[e.charCodeAt(c)]}return a.join("")}function hexDecode(f){var e="0123456789abcdef";var b=new Array();for(var d=0;d<256;d++){b[e.charAt(d>>4)+e.charAt(d&15)]=String.fromCharCode(d)}if(!f.match(/^[a-f0-9]*$/i)){return false}if(f.length%2){f="0"+f}var a=new Array();var c=0;for(var d=0;d<f.length;d+=2){a[c++]=b[f.substr(d,2)]}return a.join("")}function saveUserLCFNameMobile(a,d){var c=hexEncode(a);var e=hexEncode(d);var b=new Date(new Date().getTime()+(180*24*60*60*1000)).toGMTString();setSldCookie("lcfn",c,b);setSldCookie("lcfm",e,b)}function submitContactMeFormLDP(){if(validateFrm()==true){var c=document.getElementById("contactMeHeading");var f=document.getElementById("contactMeFormBean");var n="";if(document.forms.contactMeFormBean.businessReq){n=document.forms.contactMeFormBean.businessReq.value}var a=document.forms.contactMeFormBean.businessReqMob.value;var m=document.forms.contactMeFormBean.businessReqMail.value;var d=document.forms.contactMeFormBean.businessReqLocality.value;var o=document.forms.contactMeFormBean.businessReqCategory.value;var v=document.forms.contactMeFormBean.businessReqName.value;var p=document.forms.contactMeFormBean.city.value;if(m==emailExampleText){m=""}var g="businessReq="+encodeURIComponent(n)+"&name="+encodeURIComponent(v)+"&mobileNumber="+encodeURIComponent(a)+"&email="+encodeURIComponent(m)+"&locality="+encodeURIComponent(d)+"&category="+encodeURIComponent(o)+"&contactMeUrl="+encodeURIComponent(window.location.href)+"&city="+encodeURIComponent(p);var r=0;while(document.getElementById("lcfAttr"+r)!=null){if(document.getElementById("lcfAttrType"+r)!=null&&(document.getElementById("lcfAttrType"+r).value=="multiselect"||document.getElementById("lcfAttrType"+r).value=="radio")){g+="&lcfAttr"+r+"=";var q=0;var l=false;while(document.getElementById("lcfAttr"+r+"_"+q)!=null){if(document.getElementById("lcfAttr"+r+"_"+q).checked){g+=encodeURIComponent(document.getElementById("lcfAttr"+r+"_"+q).value)+",";l=true}q++}if(l){g=g.substring(0,g.length-1)}}else{if(document.getElementById("lcfAttrType"+r)!=null&&document.getElementById("lcfAttrType"+r).value=="checkbox"){g+="&lcfAttr"+r;if(document.getElementById("lcfAttr"+r).checked){g+="="+encodeURIComponent(document.getElementById("lcfAttr"+r).value)}}else{g+="&lcfAttr"+r+"="+encodeURIComponent(document.getElementById("lcfAttr"+r).value)}}g+="&lcfAttrLbl"+r+"="+encodeURIComponent(document.getElementById("lcfAttrLbl"+r).value);g+="&lcfAttrId"+r+"="+encodeURIComponent(document.getElementById("lcfAttrId"+r).value);if(document.getElementById("lcfMandatoryAttr"+r).value!=null){g+="&lcfMandatoryAttr"+r+"="+encodeURIComponent(document.getElementById("lcfMandatoryAttr"+r).value)}r++}g+="&attrCount="+r;var s=document.getElementById("contactMeDiv");s.style.display="none";var b=document.getElementById("contactMeResponse");var u=new Image();u.src=getContextPath()+"/webres/img/loading.gif";u.alt="sending";b.appendChild(u);b.style.display="";var e=function(w){if(w.responseText.indexOf("Success")!=-1){b.style.display="none";s.style.display="none";c.innerHTML="Our executives are processing your requirements, please wait for a confirmation call."}else{if(w.responseText.indexOf("Please fill in the full details")!=-1){b.style.display="none";s.style.display="";c.innerHTML="Please fill in the full details"}else{if(w.responseText.indexOf("Sorry, the email could not be sent.")!=-1){b.style.display="none";s.style.display="";c.innerHTML="Sorry, the email could not be sent. Please enter your correct details"}else{s.style.display="none";b.style.display="";b.style.color="#ffffff";b.style.lineHeight="1.5em";b.style.font="bold 12px tahoma";c.innerHTML="";b.innerHTML=w.responseText}}}};var k=function(w){b.innerHTML="There was an error with your submission, please try later."
};var t={success:e,failure:k};var h=YAHOO.util.Connect.asyncRequest("POST",getContextPath()+"/ContactMe/",t,g);saveUserLCFNameMobile(v,a);return false}}function submitContactMeFormSRP(){if(validateFrm()==true){var c=document.getElementById("contactMeHeading");var f=document.getElementById("contactMeFormBean");var n="";if(document.forms.contactMeFormBean.businessReq){n=document.forms.contactMeFormBean.businessReq.value}var a=document.forms.contactMeFormBean.businessReqMob.value;var m=document.forms.contactMeFormBean.businessReqMail.value;var d=document.forms.contactMeFormBean.businessReqLocality.value;var o=document.forms.contactMeFormBean.businessReqCategory.value;var s=document.forms.contactMeFormBean.businessReqSearchQuery.value;var p=document.forms.contactMeFormBean.city.value;var w=document.forms.contactMeFormBean.businessReqName.value;if(m==emailExampleText){m=""}var g="businessReq="+encodeURIComponent(n)+"&name="+encodeURIComponent(w)+"&mobileNumber="+encodeURIComponent(a)+"&email="+encodeURIComponent(m)+"&locality="+encodeURIComponent(d)+"&category="+encodeURIComponent(o)+"&searchQuery="+encodeURIComponent(s)+"&contactMeUrl="+encodeURIComponent(window.location.href)+"&city="+encodeURIComponent(p);var r=0;while(document.getElementById("lcfAttr"+r)!=null){if(document.getElementById("lcfAttrType"+r)!=null&&(document.getElementById("lcfAttrType"+r).value=="multiselect"||document.getElementById("lcfAttrType"+r).value=="radio")){g+="&lcfAttr"+r+"=";var q=0;var l=false;while(document.getElementById("lcfAttr"+r+"_"+q)!=null){if(document.getElementById("lcfAttr"+r+"_"+q).checked){g+=encodeURIComponent(document.getElementById("lcfAttr"+r+"_"+q).value)+",";l=true}q++}if(l){g=g.substring(0,g.length-1)}}else{if(document.getElementById("lcfAttrType"+r)!=null&&document.getElementById("lcfAttrType"+r).value=="checkbox"){g+="&lcfAttr"+r;if(document.getElementById("lcfAttr"+r).checked){g+="="+encodeURIComponent(document.getElementById("lcfAttr"+r).value)}}else{g+="&lcfAttr"+r+"="+encodeURIComponent(document.getElementById("lcfAttr"+r).value)}}g+="&lcfAttrLbl"+r+"="+encodeURIComponent(document.getElementById("lcfAttrLbl"+r).value);g+="&lcfAttrId"+r+"="+encodeURIComponent(document.getElementById("lcfAttrId"+r).value);if(document.getElementById("lcfMandatoryAttr"+r).value!=null){g+="&lcfMandatoryAttr"+r+"="+encodeURIComponent(document.getElementById("lcfMandatoryAttr"+r).value)}r++}g+="&attrCount="+r;if(document.getElementById("isBlocker")){g+="&isBlocker="+document.getElementById("isBlocker").value}var t=document.getElementById("contactMeDiv");t.style.display="none";var b=document.getElementById("contactMeResponse");var v=new Image();v.src=getContextPath()+"/webres/img/loading.gif";v.alt="sending";b.appendChild(v);b.style.display="";var e=function(y){if(y.responseText.indexOf("Success")!=-1){b.style.display="none";t.style.display="none";c.innerHTML="Our executives are processing your requirements, please wait for a confirmation call. ";blockerLCFDivHide(null)}else{if(y.responseText.indexOf("Please fill in the full details")!=-1){b.style.display="none";t.style.display="";c.innerHTML="Please fill in the full details"}else{if(y.responseText.indexOf("Sorry, the email could not be sent.")!=-1){b.style.display="none";t.style.display="";c.innerHTML="Sorry, the email could not be sent. Please enter your correct details"}else{if(y.responseText.indexOf("Sorry could not send sms.Try again later")!=-1){b.style.display="none";t.style.display="";c.innerHTML="Sorry could not send sms.Try again later"}else{t.style.display="none";b.style.display="";b.style.color="#ffffff";b.style.lineHeight="1.5em";b.style.font="bold 12px tahoma";c.innerHTML="";b.innerHTML=y.responseText}}}}};var k=function(y){b.innerHTML="There was an error with your submission, please try later."};var u={success:e,failure:k};var h=YAHOO.util.Connect.asyncRequest("POST",getContextPath()+"/ContactMe/",u,g);saveUserLCFNameMobile(w,a);return false}}function validateSecretFrm(){var c=document.forms.secretCodeFormBean.secretCode.value;var b=/[0-9]{4}/;var a=c.match(b);if(c==""){alert("Please enter your secretCode number");document.getElementById("secretCode").focus();return false}if(a==null){alert("Incorrect Secret Code");document.getElementById("secretCode").focus();return false}return true}function submitSecretCodeForm(){if(validateSecretFrm()==true){var p=document.getElementById("secretCodeFormBean");var d=document.forms.secretCodeFormBean.secretCode.value;var a=document.forms.secretCodeFormBean.leadId.value;var g=document.forms.secretCodeFormBean.MD5String.value;var c=document.forms.secretCodeFormBean.reSubmit.value;var e=document.forms.secretCodeFormBean.attempt.value;var o=document.forms.secretCodeFormBean.MobileNumber.value;var q=document.getElementById("contactMeResponse");var n=document.getElementById("contactMeDiv");n.style.display="none";var q=document.getElementById("contactMeResponse");var k="&secretCode="+d+"&leadId="+a+"&MD5String="+g+"&mobileNumber="+o;if(c=="reSubmit"){c="reSubmitDone"
}if(e!=""){k=k+"&attempt="+e}if(c!=""){k=k+"&reSubmit="+c}var f=new Image();f.src=getContextPath()+"/webres/img/loading.gif";f.alt="sending";q.appendChild(f);q.style.display="";var l=function(r){if(r.responseText.indexOf("Success")!=-1){q.style.display="none";n.style.display="none";divHead.innerHTML="Our executives are processing your requirements, please wait for a confirmation call. "}else{if(r.responseText.indexOf("Validation Failed")!=-1){n.style.display="none";q.innerHTML="Validation Failed!!!"}else{if(r.responseText.indexOf("The SMS didn't go through")!=-1){n.style.display="none";q.innerHTML="Our executives are processing your requirements, please wait for a confirmation call."}else{if(r.responseText.indexOf("failure")!=-1){n.style.display="none";q.innerHTML=r.responseText}else{n.style.display="none";q.innerHTML="Your request has been validated.Our executives will get back to you shortly ";blockerLCFDivHide(null)}}}}};var b=function(r){q.innerHTML="There was an error with your submission, please try later."};var m={success:l,failure:b};var h=YAHOO.util.Connect.asyncRequest("POST",getContextPath()+"/SecretCode/",m,k);return false}}function reSubmitSecretCodeForm(){var n=document.getElementById("secretCodeFormBean");var a=document.forms.secretCodeFormBean.leadId.value;var f=document.forms.secretCodeFormBean.MD5String.value;var m=document.forms.secretCodeFormBean.MobileNumber.value;var d=document.forms.secretCodeFormBean.reSubmit.value;if(d==""){d="reSubmit"}var b="&reSubmit="+d+"&mobileNumber="+m+"&leadId="+a+"&MD5String="+f;var o=document.getElementById("contactMeResponse");var l=document.getElementById("contactMeDiv");l.style.display="none";var o=document.getElementById("contactMeResponse");var e=new Image();e.src=getContextPath()+"/webres/img/loading.gif";e.alt="sending";o.appendChild(e);o.style.display="";var h=function(r){if(r.responseText.indexOf("The SMS didn't go through.")!=-1){l.style.display="none";var q=document.getElementById("contactMeResponse");var p=new Image();p.src=getContextPath()+"/webres/img/loading.gif";p.alt="sending";q.appendChild(p);q.style.display="";q.innerHTML="Our executives are processing your requirements, please wait for a confirmation call."}else{l.style.display="none";var q=document.getElementById("contactMeResponse");var p=new Image();p.src=getContextPath()+"/webres/img/loading.gif";p.alt="sending";q.appendChild(p);q.style.display="";q.innerHTML=r.responseText}};var c=function(p){o.innerHTML="There was an error with your submission, please try later."};var k={success:h,failure:c};var g=YAHOO.util.Connect.asyncRequest("POST",getContextPath()+"/SecretCode/",k,b);return false}var dealArrayBegin=0;var firstTimeExeOfDealCatDisplay=true;function timedDealDisplay(){if(firstTimeExeOfDealCatDisplay){firstTimeExeOfDealCatDisplay=false;dealArrayBegin=Math.floor(Math.random()*lcfCategoryArray.length)}var a=lcfCategoryArray.length;if(dealArrayBegin>=a){dealArrayBegin=0}addBestDeals(dealArrayBegin,a,lcfCategoryArray);dealArrayBegin=dealArrayBegin+3}function submitContactMeFormIndependent(){if(validateFrm()==true){var c=document.getElementById("contactMeHeading");var f=document.getElementById("contactMeFormBean");var n="";if(document.forms.contactMeFormBean.businessReq){n=document.forms.contactMeFormBean.businessReq.value}var a=document.forms.contactMeFormBean.businessReqMob.value;var m=document.forms.contactMeFormBean.businessReqMail.value;var d=document.forms.contactMeFormBean.businessReqLocality.value;var o=document.forms.contactMeFormBean.businessReqCategory.value;var s=document.forms.contactMeFormBean.businessReqSearchQuery.value;var p=document.forms.contactMeFormBean.city.value;var w=document.forms.contactMeFormBean.businessReqName.value;if(m==emailExampleText){m=""}var g="businessReq="+encodeURIComponent(n)+"&name="+encodeURIComponent(w)+"&mobileNumber="+encodeURIComponent(a)+"&email="+encodeURIComponent(m)+"&locality="+encodeURIComponent(d)+"&category="+encodeURIComponent(o)+"&searchQuery="+encodeURIComponent(s)+"&contactMeUrl="+encodeURIComponent(window.location.href)+"&city="+encodeURIComponent(p);var r=0;while(document.getElementById("lcfAttr"+r)!=null){if(document.getElementById("lcfAttrType"+r)!=null&&(document.getElementById("lcfAttrType"+r).value=="multiselect"||document.getElementById("lcfAttrType"+r).value=="radio")){g+="&lcfAttr"+r+"=";var q=0;var l=false;while(document.getElementById("lcfAttr"+r+"_"+q)!=null){if(document.getElementById("lcfAttr"+r+"_"+q).checked){g+=encodeURIComponent(document.getElementById("lcfAttr"+r+"_"+q).value)+",";l=true}q++}if(l){g=g.substring(0,g.length-1)}}else{if(document.getElementById("lcfAttrType"+r)!=null&&document.getElementById("lcfAttrType"+r).value=="checkbox"){g+="&lcfAttr"+r;if(document.getElementById("lcfAttr"+r).checked){g+="="+encodeURIComponent(document.getElementById("lcfAttr"+r).value)}}else{g+="&lcfAttr"+r+"="+encodeURIComponent(document.getElementById("lcfAttr"+r).value)}}g+="&lcfAttrLbl"+r+"="+encodeURIComponent(document.getElementById("lcfAttrLbl"+r).value);
g+="&lcfAttrId"+r+"="+encodeURIComponent(document.getElementById("lcfAttrId"+r).value);if(document.getElementById("lcfMandatoryAttr"+r).value!=null){g+="&lcfMandatoryAttr"+r+"="+encodeURIComponent(document.getElementById("lcfMandatoryAttr"+r).value)}r++}g+="&attrCount="+r;var t=document.getElementById("contactMeDiv");t.style.display="none";var b=document.getElementById("contactMeResponse");var v=new Image();v.src=getContextPath()+"/webres/img/loading.gif";v.alt="sending";b.appendChild(v);b.align="center";b.style.display="";var e=function(y){if(y.responseText.indexOf("Success")!=-1){b.style.display="none";t.style.display="none";c.innerHTML="Our executives are processing your requirements, please wait for a confirmation call.  <img height='1' width='1' style='border-style:none;' alt='' src='http://www.googleadservices.com/pagead/conversion/1041396425/?value=10&amp;label=v8IDCJXT-gEQyeXJ8AM&amp;guid=ON&amp;script=0'/>"}else{if(y.responseText.indexOf("Please fill in the full details")!=-1){b.style.display="none";t.style.display="";c.innerHTML="Please fill in the full details"}else{if(y.responseText.indexOf("Sorry, the email could not be sent.")!=-1){b.style.display="none";t.style.display="";c.innerHTML="Sorry, the email could not be sent. Please enter your correct details"}else{t.style.display="none";b.style.display="";b.style.color="#000000";b.style.lineHeight="1.5em";b.style.font="bold 12px tahoma";b.style.padding="20px 5px 20px 5px";c.innerHTML="";b.innerHTML=y.responseText}}}};var k=function(y){b.innerHTML="There was an error with your submission, please try later."};var u={success:e,failure:k};var h=YAHOO.util.Connect.asyncRequest("POST",getContextPath()+"/ContactMe/",u,g);saveUserLCFNameMobile(w,a);return false}}function IsNumeric(b){var d="0123456789-.()";var c=true;var a;for(i=0;i<b.length&&c==true;i++){a=b.charAt(i);if(d.indexOf(a)==-1){c=false}}return c}function isValidEmail(a){var b=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(!b.test(a)){return false}return true}var addthis_open_lazy_obj;var addthis_open_lazy_str1;var addthis_open_lazy_str2;var addthis_open_lazy_str3;function addthis_open_lazy(d,c,b,a){addthis_open_lazy_obj=d;addthis_open_lazy_str1=c;addthis_open_lazy_str2=b;addthis_open_lazy_str3=a;if(!window.addthis_disable_flash){document.getElementById("addthis_external_script").src="/webres/js/addthis_widget.js"}setTimeout("addthis_open_lazy2(1)",500)}function addthis_open_lazy2(b){if(b>20){return}if(!window.addthis_disable_flash){var a=b+1;setTimeout("addthis_open_lazy2("+a+")",500)}else{addthis_open(addthis_open_lazy_obj,addthis_open_lazy_str1,addthis_open_lazy_str2,addthis_open_lazy_str3);setTimeout("addthis_close_auto()",5000)}}function addthis_close_auto(){addthis_close()}function removeWhereChainWaterMark(a){if(a.value.indexOf("Enter Locality")!=-1){a.value=""}a.style.color="black";a.style.fontWeight="bold"}function chainSearch(){var b=document.getElementById("whereChain").value;var c=document.getElementById("chainSearchQueryString").value;var e=document.getElementById("city").value;var d=document.getElementById("catIds").value;b=filterNum(b.trim());c=filterNum(c.trim());if((b=="")||(b.indexOf("Enter Locality")!=-1)){b="-"}if(c==""){c="-"}var a="";a="http://"+getFullURLServerName()+"/category/"+encodeURIComponent(e)+"/"+encodeURIComponent(b)+"/"+encodeURIComponent(c)+"/?category="+d+"&v=listing";window.location.href=a;return false}function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){b();try{a()}catch(c){}}}}function getModalContent(f,c,d,e){if(document.getElementById(d+"_wrapper")!=null){invokeModalWithParameters(f,e);return}var b=createXHR();var a=getContextPath()+"/ModalContent.do?page="+c;b.open("GET",a,true);b.onreadystatechange=function(){if(b.readyState==4&&b.status==200){var h=document.getElementById("footer");var g=document.createElement("div");g.id=d+"_wrapper";g.innerHTML=b.responseText;if(document.getElementById(d+"_wrapper")==null){h.appendChild(g)}invokeModalWithParameters(f,e)}};b.send(null)}function invokeModalWithParameters(a,b){if(b==null||b.length==0){a.call();return}switch(b.length){case 1:a.call(null,b[0]);break;case 2:a.call(null,b[0],b[1]);break;case 3:a.call(null,b[0],b[1],b[2]);break;case 4:a.call(null,b[0],b[1],b[2],b[3]);break;case 5:a.call(null,b[0],b[1],b[2],b[3],b[4]);break;case 6:a.call(null,b[0],b[1],b[2],b[3],b[4],b[5]);break;case 7:a.call(null,b[0],b[1],b[2],b[3],b[4],b[5],b[6]);break;case 8:a.call(null,b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7]);break;case 9:a.call(null,b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8]);break;case 10:a.call(null,b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9]);break}}var retriedOnce=false;function getListingMap(){try{if(listingGPS!=null){listingCoords=new VELatLong(listingGPS.latitude,listingGPS.longitude)}if(listingCoords!=null){map=new VEMap("myMap");map.LoadMap(listingCoords,14);var a=new VEShape(VEShapeType.Pushpin,map.GetCenter());
a.SetCustomIcon(icon);if(listingDetails!=null){a.SetTitle(listingDetails.listingName);a.SetDescription(listingDetails.listingStreetAddress+","+listingDetails.listingLocality+",\n"+listingDetails.listingCity)}map.AddShape(a);if(document.getElementById("mapLoadingMsg")){document.getElementById("mapLoadingMsg").style.display="none"}}}catch(b){if(!retriedOnce){retriedOnce=true;setTimeout("getListingMap()",5000)}else{displayMapLoadingErrorMsg()}}}function loadMapStuff(){if(document.getElementById("listingMapView")){document.getElementById("listingMapView").scrollIntoView(true)}var a=document.getElementById("mapScriptTag");if(a&&!(window.VEMap&&window.VEShape&&window.VELatLong)){if(document.getElementById("myMap")){document.getElementById("myMap").style.display=""}a.src=mapJSUrl}if(document.getElementById("mapLoadingMsg")){document.getElementById("mapLoadingMsg").style.display=""}setTimeout("lazyMapLoad(1)",3000);return false}function lazyMapLoad(a){if(a<=20){if(window.VEMap&&window.VEShape&&window.VELatLong){getListingMap()}else{setTimeout("lazyMapLoad("+(++a)+")",1000)}}else{displayMapLoadingErrorMsg()}}function displayMapLoadingErrorMsg(){if(document.getElementById("mapLoadingMsg")){var a=self.location.href;if(a.indexOf("#")!=-1){a=a.substr(0,a.indexOf("#"))}if(a.indexOf("?")!=-1){a+="&showmap=1"}else{a+="?showmap=1"}a+="#listingMapView";document.getElementById("mapLoadingMsg").innerHTML="Error in loading map. Please <a href='"+a+"'>click here</a>."}}function submitComments(b){var c=document.commentBean.description.value;var a=c.indexOf("Be the first to comment!");if(b==undefined){loginModalShow();createCookie("sc_"+listingHashId,"1",1);return false}if(a>-1){alert("Remember: Write first, then hit 'Submit'.");return false}if(c.trim().length==0){alert("Remember: Write first, then hit 'Submit'.");return false}}function createCookie(c,d,e){var a="";if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));a="; expires="+b.toGMTString()}document.cookie=c+"="+d+a+"; path=/"}function submitRating(){var b={success:function(h){if(h.responseText.indexOf("Double meter! You've already rated this page.")!=-1){alert("Double meter! You've already rated this page.")}else{if(h.responseText.indexOf("Hey. Don't be lazy. Log on, to use this feature.")!=-1){alert("Hey. Don't be lazy. Log on, to use this feature.")}else{var f=h.responseText.split(",");var d=document.getElementById("averageRatingSpan");if((f[1]=="1")){d.innerHTML="(1 rating)"}else{d.innerHTML="("+(f[1])+" ratings)"}var e=document.getElementById("averageRatingLi");var g=(f[0]*16);e.style.width=g+"px";alert("Thanks for rating this listing. Laila appreciated it.");var c=document.getElementById("firstRate");if(c!=null){c.innerHTML=""}}}},failure:function(c){alert(c.responseText)}};var a=document.forms.listingRatingForm;YAHOO.util.Connect.setForm(a);YAHOO.util.Connect.asyncRequest("POST","/ListingRating.do",b)}function rating(b){var c=document.forms.listingRatingForm.currentRating;c.value=b;var a=document.getElementById("currentRating");if(c.value==1){a.style.width="20%"}else{if(c.value==2){a.style.width="40%"}else{if(c.value==3){a.style.width="60%"}else{if(c.value==4){a.style.width="80%"}else{if(c.value==5){a.style.width="100%"}}}}}submitRating()}function setFocus(){document.commentBean.description.focus()}function clearLCFRequirementsText(a){if(a.innerHTML=="Enter your requirements here"){a.innerHTML=""}}function chainListingRedirect(b){var a=b.options[b.selectedIndex].value;if(a!=null&&a.trim()!=""){window.location.href=a}return}function processPostComment(){var b=document.commentBean.description.value;var a=b.indexOf("Be the first to comment!");if(a>-1){return}if(b.trim().length==0){return}createCookie("sc_"+listingHashId,"",-1);document.commentBean.submit()}function disabletext(a){return false}function reEnable(){return true}function disableCopyOnPage(){browser_version=parseInt(navigator.appVersion);browser_type=navigator.appName;var a=0;if(document.getElementById("listngInfoDetBox")!=null&&document.getElementById("ldpAdrsDetails")!=null){if(browser_type=="Microsoft Internet Explorer"&&(browser_version>=4)&&!isUserLoggedInWithFB){document.getElementById("listngInfoDetBox").onselectstart=new Function("return false");document.getElementById("ldpAdrsDetails").onselectstart=new Function("return false")}else{if(browser_type=="Netscape"&&(browser_version>=4)){document.getElementById("listngInfoDetBox").onmousedown=disabletext;document.getElementById("listngInfoDetBox").onclick=reEnable;document.getElementById("ldpAdrsDetails").onmousedown=disabletext;document.getElementById("ldpAdrsDetails").onclick=reEnable}}}}function showccPopup(a){var b=true;if(b){document.getElementById(a).style.display="block"}else{if(document.all){document.all[a].style.display="block"}else{if(document.layers){document.layers[a].style.display="block"}}}setTimeout("autoHide()",10000)}function hideccPopup(a){var b=true;if(b&&document.getElementById(a)){document.getElementById(a).style.display="none"
}else{if(document.all&&document.all[a]){document.all[a].style.display="none"}else{if(document.layers&&document.layers[a]){document.layers[a].style.display="none"}}}}function autoHide(){document.getElementById("ccPopup").style.display="none"}function initWhatBoxAC(b,a){YAHOO.example.ACJson=new function(){this.oACDS=new YAHOO.widget.DS_XHR("/AutoComplete.do",["Suggestions[0].Results","Name"]);this.oACDS.queryMatchContains=true;this.oACDS.scriptQueryAppend="city="+b;function c(f,d){document.searchForm.where.focus();acSelected=true;return false}this.oAutoComp=new YAHOO.widget.AutoComplete("what","whatContainer",this.oACDS);this.oAutoComp.itemSelectEvent.subscribe(c);this.oAutoComp.formatResult=function(d,e){return d[0]};this.oAutoComp.queryDelay=a;this.oAutoComp.useIFrame=true;this.oAutoComp.prehighlightClassName="yui-ac-prehighlight";this.oAutoComp.minQueryLength=2;this.oAutoComp.autoHighlight=false;this.oAutoComp.doBeforeExpandContainer=function(d,e,h,g){var f=YAHOO.util.Dom.getXY(d);f[1]+=YAHOO.util.Dom.get(d).offsetHeight+2;YAHOO.util.Dom.setXY(e,f);return true}}}function initWhereBoxAC(){oACDS=new YAHOO.widget.DS_JSArray(loc);oAutoComp=new YAHOO.widget.AutoComplete("where","whereContainer",oACDS);oAutoComp.queryDelay=0;oAutoComp.useIFrame=true;oAutoComp.prehighlightClassName="yui-ac-prehighlight";oAutoComp.minQueryLength=1;oAutoComp.autoHighlight=false;oAutoComp.textboxFocusEvent.subscribe(function(){oAutoComp.sendQuery("")})}function initGenericLocBoxAC(b,a){oACDS=new YAHOO.widget.DS_JSArray(loc);oAutoComp=new YAHOO.widget.AutoComplete(b,a,oACDS);oAutoComp.queryDelay=0;oAutoComp.useIFrame=true;oAutoComp.prehighlightClassName="yui-ac-prehighlight";oAutoComp.minQueryLength=1;oAutoComp.autoHighlight=false;oAutoComp.textboxFocusEvent.subscribe(function(){oAutoComp.sendQuery("")})}function fbSideButtonIE6(){var c=navigator.appName;var b=navigator.appVersion;var e=document.documentElement.clientWidth;var f=document.documentElement.clientHeight;var a=900;var d=(e-parseInt(a))/2;if(b.search("MSIE 6")!=-1){document.getElementById("sideBarFBButton").style.right="-"+d+"px";document.getElementById("sideBarFBButton").style.top=f*0.4+"px";document.getElementById("sideBarFBContent").style.right="-"+d+"px";document.getElementById("sideBarFBContent").style.top=f*0.3+"px"}}function setLocalitySearchQueryExample(){var a=document.getElementById("where");if(a.value.trim()==""){if(loc){if(loc.length>0){a.value="For Example:"+loc[Math.floor(Math.random()*(loc.length-1))]}}}}function hideMeShowOther(a,b){document.getElementById(a).style.display="none";document.getElementById(b).style.display="inline";return false}function hideFbFanBox(){document.getElementById("sideBarFBContent").style.display="none";document.getElementById("sideBarFBButton").style.display="block";setSldCookie("fbfb","1","")}function hideAllSubMenus(){var b=document.getElementById("menuTab");var a=b.getElementsByTagName("li");for(i=0;i<a.length;i++){if(document.getElementById(a[i].id.replace("menuTab","sub_menu"))){document.getElementById(a[i].id.replace("menuTab","sub_menu")).className="hide"}}}function showSubMenu(b){var a=document.getElementById("hdnMenuTabId").value;if(document.getElementById(b)){hideAllSubMenus();document.getElementById(b).className="show"}}function highlightTabMenu(f){var b=document.getElementById("hdnMenuTabId");var a=-1;if(b){a=b.value}var e=document.getElementById(f);if(e){e.className="focusSR"}for(var d=0;d<15;d++){var c="menuTab_"+d;if(document.getElementById(c)){if(c!=a&&c!=f){dehighlightTabMenu(c)}}}}function dehighlightTabMenu(d){var b=document.getElementById("hdnMenuTabId");var a=-1;if(b){a=b.value}var c=document.getElementById(d);if(c&&d!=a){c.className=""}}function selectTabMenu(d){var a=document.getElementById("hdnMenuTabId");var b=document.getElementById(d);if(b){b.className="focusSR";a.value=d;var c=d.replace("menuTab_","sub_menu_");showSubMenu(c)}}function hideTabbedMenu(){hideSubMenu()}function blockerLCFDivHide(e){if(e!=null&&e!=undefined){e.style.display="none"}else{e=document.getElementById("blockerLCFCloseButton");if(e!=null){e.style.display="none"}}var a=document.getElementById("blockerLCFMask");if(a!=null&&a!=undefined){a.style.display="none";var d=document.getElementById("isBlocker");if(d){d.value="0"}}var c=document.getElementById("lcfFormMsgDiv");if(c){c.style.zIndex=""}var b=document.getElementById("lcfFormDiv");if(b){b.style.zIndex=""}}function getCurrentWindowHeightWidth(){var a,b;if(self.innerHeight){a=self.innerWidth;b=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{if(document.body){a=document.body.clientWidth;b=document.body.clientHeight}}}return{width:a,height:b}}function setMaskHeightAndWidth(a){var c=getCurrentWindowHeightWidth();a.style.width="100%";if(c!=null&&c.width!=null){if(c.width<900){a.style.width="1300px"}}var b=document.getElementById("ALwrapper");if(b){a.style.height=b.offsetHeight+"px"
}else{a.style.height="1500px"}}function blockerLCFDivShow(f){if(readCookieGen("blkr"+f)!=null){return}var b=document.getElementById("blockerLCFCloseButton");if(b){b.style.display=""}var a=document.getElementById("blockerLCFMask");if(a){a.style.display="";var e=document.getElementById("isBlocker");if(e){e.value="1"}}setMaskHeightAndWidth(a);var d=document.getElementById("lcfFormMsgDiv");if(d){d.style.zIndex=1000}var c=document.getElementById("lcfFormDiv");if(c){c.style.zIndex=1000}if(document.getElementById("businessReqName")){document.getElementById("businessReqName").focus()}if(f!=""){setSldCookie("blkr"+f,"1","")}}function home_setActiveSubMenu(e,d){var c=document.getElementById("tab"+e+"_submenu"+d);var b=document.getElementById("tab"+e+"_submenu_cnt"+d);var a=1;while(a<10){if(document.getElementById("tab"+e+"_submenu"+a)){document.getElementById("tab"+e+"_submenu"+a).className=""}if(document.getElementById("tab"+e+"_submenu_cnt"+a)){if(b){document.getElementById("tab"+e+"_submenu_cnt"+a).style.display="none"}}a++}if(c){c.className="activeHmSubTab";if(b){b.style.display=""}}}function CitySelectionActiveCity(a){var b=new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");for(i=0;i<26;i++){if(document.getElementById(b[i])){document.getElementById(b[i]).style.color="#666";document.getElementById(b[i]).style.backgroundColor="#ced3e5"}}document.getElementById(a).style.backgroundColor="#c00";document.getElementById(a).style.color="#fff"}function selectLcfAttribute(b){var a=document.getElementById(b);if(a.type=="radio"){a.checked=true}else{if(a.type=="checkbox"){if(a.checked){a.checked=false}else{a.checked=true}}}}function replaceUrl(b,a){a.setAttribute("href",b)}function toggleShowHideMerchantProducts(a,c){var b=new Array("DivWebsite","DivAdvertorial","DivLeadGeneration","DivMobile","DivMultimedia","DivPhoneService","DivSpotlight","DivWeb");for(i=0;i<b.length;i++){document.getElementById(b[i]).style.display="none";if(b[i]==a){document.getElementById(a).style.display="block"}if(document.getElementById("submnu"+i)){document.getElementById("submnu"+i).className=""}}document.getElementById(c).className="currentSub"}var callMobNumber=0;var callInitialized=false;var callSent=false;var prePopMobNum="";function callListingModalShow(s,f,r,o,c,h,d,l,p){if(!callInitialized){initcallListing()}var n=document.getElementById("callListingDlg");n.style.display="block";document.getElementById("callListingTable").style.display="block";document.getElementById("callConnectListingName").innerHTML=f+", "+r+", "+o;var a=document.getElementById("callMobileNumber");if(c==0){a.value=prePopMobNum}else{a.value=c;prePopMobNum=c}var k=document.callListingDlgForm.adId;k.value=h;var g=document.callListingDlgForm.time;g.value=d;var t=document.callListingDlgForm.signature;t.value=l;var m=document.callListingDlgForm.clickId;m.value=p;var b=document.callListingDlgForm.listingHashId;b.value=s;YcallListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handlecallSubmit},{text:"Close",handler:handlecallCancel}]);YcallListingDialog.render();var e=document.getElementById("callListingFeedback");e.style.display="none";var q=document.getElementById("callListingFeedbackCD");q.style.display="none";callSent=false;if(document.callListingDlgForm.showCaptcha.value==1){document.getElementById("kaptchaElements").style.display="none"}else{document.getElementById("kaptchaElements").style.display="block";callRefreshCaptcha2(document.callListingDlgForm.captchaPath.value)}YcallListingDialog.show()}var callTimer=3;function callTimerCountDown(){if(callTimer>0){var a=document.getElementById("callListingFeedbackCD");a.innerHTML="This message will self destruct in "+callTimer+" seconds";callTimer=callTimer-1;var b=window.setTimeout("callTimerCountDown()",1000)}else{YcallListingDialog.hide();callTimer=3}}function callListingSubmitCallback(c){var a=c.responseText;if(a=="Success"){document.callListingDlgForm.showCaptcha.value=1}else{if(a.indexOf("Nice contact number. But it is not valid. Try again.")!=-1){var b=document.getElementById("callListingFeedback");b.style.display="";callSent=false;b.innerHTML="Nice contact number. But it is not valid. Try again.";document.getElementById("callListingTable").style.display="";YcallListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handlecallSubmit},{text:"Close",handler:handlecallCancel}]);YcallListingDialog.render()}else{if(a.indexOf("The word that you entered did not match the verification word. Please try again!")!=-1){var b=document.getElementById("callListingFeedback");b.style.display="";callSent=false;b.innerHTML="Tch. Tch. You did not enter the correct verification code. Please try again.";document.getElementById("callListingTable").style.display="";YcallListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handlecallSubmit},{text:"Close",handler:handlecallCancel}]);callRefreshCaptcha2(document.callListingDlgForm.captchaPath.value);
YcallListingDialog.render()}else{if(a.indexOf("Boo Hoo. The call didn't go through.")!=-1){var b=document.getElementById("callListingFeedback");callSent=false;b.style.display="";b.innerHTML="Boo Hoo. The call didn't go through.";document.getElementById("callListingTable").style.display="";YcallListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handlecallSubmit},{text:"Close",handler:handlecallCancel}]);YcallListingDialog.render()}else{if(a.indexOf("Oops, please try after some time.")!=-1){var b=document.getElementById("callListingFeedback");callSent=false;b.style.display="";b.innerHTML="Oops, please try after some time.";document.getElementById("callListingTable").style.display="";YcallListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handlecallSubmit},{text:"Close",handler:handlecallCancel}]);YcallListingDialog.render()}else{if(a.indexOf("Sorry, This merchant is not available at this time.")!=-1){var b=document.getElementById("callListingFeedback");callSent=false;b.style.display="";b.innerHTML="Sorry, This merchant is not available at this time.";document.getElementById("callListingTable").style.display="";YcallListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handlecallSubmit},{text:"Close",handler:handlecallCancel}]);YcallListingDialog.render()}}}}}}}function callListingSubmitFailure(a){alert("Oops, please try after some time")}function showcallModalError(b){var a=document.getElementById("callListingFeedback");a.style.display="";a.innerHTML=b+" cannot be empty"}var handlecallCancel=function(){this.cancel()};var handlecallSubmit=function(){if(callSent==true){return}var b=document.getElementById("callMobileNumber").value;prePopMobNum=b;if(b==""){var a=document.getElementById("callListingFeedback");a.style.display="";a.innerHTML=" To make it work, you need to enter a contact number first."}else{YcallListingDialog.doSubmit();callMobNumber=document.getElementById("callMobileNumber").value;document.callListingDlgForm.reset();var c=document.getElementById("callListingFeedback");c.style.display="";document.getElementById("callListingTable").style.display="none";c.innerHTML="You will get a call within the next 5 mins.";YcallListingDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handlecallCancel}]);YcallListingDialog.render();callSent=true}};function callRefreshCaptcha2(a){var b=document.getElementById("kaptchaImage");b.src=a+Math.floor(Math.random()*100);document.callListingDlgForm.captchaText.value=""}function initcallListing(){YcallListingDialog=new YAHOO.widget.Dialog("callListingDlg",{modal:true,visible:false,width:"500px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YcallListingDialog.cfg.setProperty("context",["call_link","tl","br"]);YcallListingDialog.callback.success=callListingSubmitCallback;YcallListingDialog.callback.failure=callListingSubmitFailure;YcallListingDialog.cfg.setProperty("postmethod","async",true);YcallListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handlecallSubmit},{text:"Close",handler:handlecallCancel}]);var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handlecallSubmit()},scope:YcallListingDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YcallListingDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YcallListingDialog.cfg.queueProperty("keylisteners",a);callInitialized=true;YcallListingDialog.render()}var cats=new Array("AC Repair","ATM","Acupuncture & Acupressure","Adoption Agency","Advertising","Aerobics","Airlines","Airports","Ambulance","Amusement & Themepark","Animal Hospitals & clinics","Antiques","Appraiser","Aquariums","Architect","Aromatherapy","Art Gallery","Assembly and Fabrication","Association","Astrologer","Auctions","Audio & Video Shop","Audio Visual Equipment","Auditorium","Auto Gas Conversion","Automobile Accessories","Automobile Parts & Equipments","Ayurvedic Centre","Ayurvedic Medicine","BPO","Baby Clothing","Baby Furniture","Bakery","Bank","Bar & Pub","Barber","Beauty Parlour","Beverages","Bike Dealers","Bike Manufacturer","Bike Rental","Bike Service Centre","Bill payment services","Billiards; Pool & Snooker","Blood Bank","Body Art","Book Store","Botanical Parks","Boutiques","Bowling","Broadcasting","Bus","Business Center","Cable TV","Call Centre Training","Car Dealers","Car Manufacturer","Car Rental","Car Service Centre","Career Counselling","Carpenter","Catering","Cellphone Repair","Cellphone Showroom","Cemetries and Crematoriums","Charitable Trust","Chartered Accountant","Childcare Services","Childrens Clothing","Chit Funds","Church","City Bus","Clinic","Club","Coffee Shop","College","Commercial Transport","Commercial Vehicle Rental","Community Centre","Computer & Software dealers","Computer Education & Training","Computer Rental","Condiments & Sauces","Conference Centres & Facilities","Construction Material","Construction Tools & Equipment","Constructions/Heavy Vehicle Dealers","Constructions/Heavy Vehicle Manufacturer","Consulates & Embassies","Consultants","Consumer Protection Organizations","Contractor","Cooking Class","Cosmetics","Costumes","Courier","Credit & Debit Cards","Cultural Centre","Currency Exchange","Customs & Cargo","Cybercafe","Cycle Dealer","Cycle Manufacturers","Dairy Products","Dance & Music Centre","Dance Class","Dating Services","Dental","Department Store","Detective Agency","Disabled Service","Doctor","Domestic Help","Drama & Theatre","Driving School","Dry Cleaners & Laundry","Dry Fruits","Electrician","Electricity","Electronics & Home Appliance","Emission Inspection","Entrance Exam Training","Event Management","Export & Import","Fancy & Gift shop","Fashion Accessories","Fashion Designer","Feng Shui","Film & Entertainment","Financial Consultant","Finishing Schools","Fire","Fitness","Fitness Trainers","Flight Information","Florist","Food Products","Footwear","Freight","Fruits","Furnishings","Furniture","Game Centre","Gardener","Garments","Gas","Generators, UPS & Inverters","Go Karting","Government Departments","Graphics","Grocery","Guest House","Gym","Gym Equipment","Hair Clinic","Handicrafts","Hardware & Electricals","Health Support","Home Appliance Repair","Home Health Care Agencies","Home Health Care Equipments","Home Improvement Store","Home and Decor","Home cleaning","Homeopathy","Hospital","Hostel","Hotel","Housing Authorities","IT","Ice cream Shop","Immigration Service","Insurance","Interior Designer","Investment Banking","Jain Temple","Jewellery","Juice Shop","Kennels","Kick Boxing","Labs & Diagnostic Centre","Language Training","Large size cloth stores","Lawyers","Leather Products","Legal Courts","Legal Service","Library","Liquor Store","Loans & Financing Services","Local Train","Luggage","Magazines","Magnotherapy","Manufacturing","Marriage & Reception Hall","Massage","Maternity Wear & Accessories","Matrimonial Service","Meat Products","Medical Center & Research","Medical Helpline","Medical Supplies & Equipment","Medical Waste Management","Meditation Centre","Metal Industries","Milk Vendor","Mobile Service Provider","Monastery","Money Transfer","Montessori and Kindergarten","Mosque","Movers & Packers","Movie Theatre","Municipality","Museum","Music Class","Musical Instrument Stores","Mutual Funds","NGO","Naturopathy","Newspaper Agency","Nightclub","Nurseries","Nursing Homes","Office Rental","Office Supplies & Equipment","Old Age Home","Opticals","Orchestras & Bands","Organ & Tissue Bank","Orphanage","Overseas Studies & Training","P.G (Paying Guest)","Paan Shop","Painter","Party Supplies","Party planners","Passport office","Pawnbroker","Pest Control","Pet Shops","Pet trainers","Petrol Pump","Pharmacy","Photocopy","Photography & Videography","Planetarium","Play Schools & Day Care","Plumber","Police","Post Office","Pranic","Pre University College","Priests","Printing & Publishing","Professionals","Public Notaries","Public Phone Booth","RTO","Railway Stations","Real Estate Agencies & Brokers","Real Estate Builders & Developers","Recruitment Agency","Rehabilitation Centre","Reiki","Religious Institution","Relocation Services","Resort","Resort Offices","Restaurant","Sarees","Satellite TV","School","Security Service","Self Defence Training","Service Apartments","Shamiana & Canopy","Shopping Complex","Shopping Mall","Siddha","Skin Clinic","Slimming Centre","Spa","Special School","Sports Coaching","Sports Equipment","Sports Facilities","Sports Wear","Stationery Store","Stock Broker","Supermarket","Sweet Shop","Tai Chi","Tailor","Taxi & Cab","Teachers Training Institute","Telecom and Internet Service Provider","Telephone","Temple","Text Books","Textile","Tobacco Cigarettes & Cigars","Tourist Information","Towing & Roadside Assistance","Toys Shop","Tractors/Agricultural Dealers","Tractors/Agricultural Manufacturer","Trade, Distribution & Sales","Train information & Reservation","Training Centres","Translation Services","Travel Agent","Truck Dealers","Truck Manufacturer","Truck Service Centre","Tutions","Typewriting & Shorthand Training","Tyre Service Centre","Unani","Unclassified","Undertakers and Coffins","University","Used Bike Dealers","Used Car Dealers","Vaastu","Veterinarians","Video Rentals","Visa Service","Vocational Training","Watches","Water","Wedding planners","Yoga","Youth Welfare Organization","Zoo & Sanctuary","Zoroastrian Temple");
function ShowCityMenu(a){document.getElementById(a).style.visibility="Visible"}function HideCityMenu(a){document.getElementById(a).style.visibility="Hidden"}function MenuCitySelect(a){document.getElementById(a).style.backgroundColor="#bec3e3"}function MenuCityDeselect(a){document.getElementById(a).style.backgroundColor="#e4e7f6"}var emailEventDetailsInitialized=false;var eventEmailSent=false;function emailEventDetailsModalShow(c,g){if(!emailEventDetailsInitialized){initEmailEventDetails()}var b=document.getElementById("emailEventDetailsDlg");b.style.display="block";document.getElementById("emailEventDetailsTable").style.display="block";var f=document.getElementById("from");f.value=g;var e=document.emailEventDetailsDlgForm.eventId;e.value=c;YEmailEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailEventDetailsSubmit},{text:"Close",handler:handleEmailEventDetailsCancel}]);YEmailEventDetailsDialog.render();var d=document.getElementById("emailEventDetailsFeedback");d.style.display="none";var a=document.getElementById("emailEventDetailsFeedbackCD");a.style.display="none";eventEmailSent=false;YEmailEventDetailsDialog.show()}var eventEmailTimer=3;function eventEmailTimerCountDown(){if(eventEmailTimer>0){var a=document.getElementById("emailEventDetailsFeedbackCD");a.innerHTML="This message will self destruct in "+eventEmailTimer+" seconds";eventEmailTimer=eventEmailTimer-1;var b=window.setTimeout("eventEmailTimerCountDown()",1000)}else{YEmailEventDetailsDialog.hide();eventEmailTimer=3}}function emailEventDetailsSubmitCallback(c){var a=c.responseText;if(a=="Success"){email=document.getElementById("emailAddress").value;document.emailEventDetailsDlgForm.reset();var b=document.getElementById("emailEventDetailsFeedback");document.getElementById("emailEventDetailsTable").style.display="none";b.style.display="";b.innerHTML="Laila has emailed the event details to "+email;document.getElementById("emailEventDetailsFeedbackCD").style.display="";eventEmailTimerCountDown()}else{if(a.indexOf("Please login to use this feature")!=-1){var b=document.getElementById("emailEventDetailsFeedback");b.style.display="";b.innerHTML="Email could not be sent. "}else{if(a.indexOf("The word that you entered did not match the verification word. Please try again!")!=-1){eventEmailSent=false;var b=document.getElementById("emailEventDetailsFeedback");b.style.display="";b.innerHTML="Tch. Tch. You did not enter the correct verification code. Please try again.";document.emailEventDetailsDlgForm.emailCaptchaText.value="";YEmailEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailEventDetailsSubmit},{text:"Close",handler:handleEmailEventDetailsCancel}]);YEmailEventDetailsDialog.render()}else{if(a.indexOf("Feeling shy or what? Come on. Enter your real email id")!=-1){eventEmailSent=false;var b=document.getElementById("emailEventDetailsFeedback");b.style.display="";b.innerHTML="Feeling shy or what? Come on. Enter your real email id";YEmailEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailEventDetailsSubmit},{text:"Close",handler:handleEmailEventDetailsCancel}]);YEmailEventDetailsDialog.render();document.getElementById("emailEventDetailsTable").style.display=""}else{if(a.indexOf("Feeling shy or what? Come on. Enter the email id you want to send Event Details to.")!=-1){eventEmailSent=false;var b=document.getElementById("emailEventDetailsFeedback");b.style.display="";document.getElementById("emailEventDetailsTable").style.display="";b.innerHTML="Feeling shy or what? Come on. Enter the email id you want to send Event Details to.";YEmailEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailEventDetailsSubmit},{text:"Close",handler:handleEmailEventDetailsCancel}]);YEmailEventDetailsDialog.render()}else{eventEmailSent=false;var b=document.getElementById("emailEventDetailsFeedback");document.getElementById("emailEventDetailsTable").style.display="none";b.style.display="";b.innerHTML="The email could not be sent, please try again later. ";YEmailEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailEventDetailsSubmit},{text:"Close",handler:handleEmailEventDetailsCancel}]);YEmailEventDetailsDialog.render()}}}}}}function emailEventDetailsSubmitFailure(a){alert("Oops, please try after some time")}function showEmailEventDetailsError(b){var a=document.getElementById("emailEventDetailsFeedback");a.style.display="";a.innerHTML=b+" cannot be empty"}var handleEmailEventDetailsCancel=function(){this.cancel()};var handleEmailEventDetailsSubmit=function(){if(eventEmailSent==true){return}var b=document.getElementById("emailAddress").value;var b=document.getElementById("emailAddress").value;if(b==""){var a=document.getElementById("emailEventDetailsFeedback");a.style.display="";a.innerHTML="To make it work, you need to enter an email id first."}else{YEmailEventDetailsDialog.doSubmit();
var c=document.getElementById("emailEventDetailsFeedback");c.style.display="";c.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YEmailEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleEmailEventDetailsCancel}]);YEmailEventDetailsDialog.render();eventEmailSent=true}};function initEmailEventDetails(){YEmailEventDetailsDialog=new YAHOO.widget.Dialog("emailEventDetailsDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YEmailEventDetailsDialog.callback.success=emailEventDetailsSubmitCallback;YEmailEventDetailsDialog.callback.failure=emailEventDetailsSubmitFailure;YEmailEventDetailsDialog.cfg.setProperty("postmethod","async",true);YEmailEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailEventDetailsSubmit},{text:"Close",handler:handleEmailEventDetailsCancel}]);var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleEmailEventDetailsSubmit()},scope:YEmailEventDetailsDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YEmailEventDetailsDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YEmailEventDetailsDialog.cfg.queueProperty("keylisteners",a);emailEventDetailsInitialized=true;YEmailEventDetailsDialog.render()}YAHOO.util.Event.addListener(window,"load",initEmailEventDetails);var emailListingInitialized=false;var emailSent=false;function emailListingModalShow(b,g){if(!emailListingInitialized){initEmailListing()}var f=document.getElementById("emailListingDlg");f.style.display="block";document.getElementById("emailListingTable").style.display="block";var e=document.getElementById("from");e.value=g;var d=document.emailListingDlgForm.listingHashId;d.value=b;YEmailListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailListingSubmit},{text:"Close",handler:handleEmailListingCancel}]);YEmailListingDialog.render();var c=document.getElementById("emailListingFeedback");c.style.display="none";var a=document.getElementById("emailListingFeedbackCD");a.style.display="none";emailSent=false;YEmailListingDialog.show()}var emailTimer=3;function emailTimerCountDown(){if(emailTimer>0){var a=document.getElementById("emailListingFeedbackCD");a.innerHTML="This message will self destruct in "+emailTimer+" seconds";emailTimer=emailTimer-1;var b=window.setTimeout("emailTimerCountDown()",1000)}else{YEmailListingDialog.hide();emailTimer=3}}function emailListingSubmitCallback(c){var a=c.responseText;if(a=="Success"){email=document.getElementById("emailAddress").value;document.emailListingDlgForm.reset();var b=document.getElementById("emailListingFeedback");document.getElementById("emailListingTable").style.display="none";b.style.display="";b.innerHTML="Laila has emailed the listing details to "+email;document.getElementById("emailListingFeedbackCD").style.display="";emailTimerCountDown()}else{if(a.indexOf("Please login to use this feature")!=-1){var b=document.getElementById("emailListingFeedback");b.style.display="";b.innerHTML="Email could not be sent. "}else{if(a.indexOf("The word that you entered did not match the verification word. Please try again!")!=-1){emailSent=false;var b=document.getElementById("emailListingFeedback");b.style.display="";b.innerHTML="Tch. Tch. You did not enter the correct verification code. Please try again.";emailRefreshCaptcha2();document.emailListingDlgForm.emailCaptchaText.value="";YEmailListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailListingSubmit},{text:"Close",handler:handleEmailListingCancel}]);YEmailListingDialog.render()}else{if(a.indexOf("Feeling shy or what? Come on. Enter your real email id")!=-1){emailSent=false;var b=document.getElementById("emailListingFeedback");b.style.display="";b.innerHTML="Feeling shy or what? Come on. Enter your real email id";YEmailListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailListingSubmit},{text:"Close",handler:handleEmailListingCancel}]);YEmailListingDialog.render();document.getElementById("emailListingTable").style.display=""}else{if(a.indexOf("Feeling shy or what? Come on. Enter the email id you want to send this listing to.")!=-1){emailSent=false;var b=document.getElementById("emailListingFeedback");b.style.display="";document.getElementById("emailListingTable").style.display="";b.innerHTML="Feeling shy or what? Come on. Enter the email id you want to send this listing to.";YEmailListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailListingSubmit},{text:"Close",handler:handleEmailListingCancel}]);YEmailListingDialog.render()}else{emailSent=false;var b=document.getElementById("emailListingFeedback");document.getElementById("emailListingTable").style.display="none";b.style.display="";b.innerHTML="The email could not be sent, please try again later. ";
YEmailListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailListingSubmit},{text:"Close",handler:handleEmailListingCancel}]);YEmailListingDialog.render()}}}}}}function emailListingSubmitFailure(a){alert("Oops, please try after some time")}function showEmailListingError(a){var b=document.getElementById("emailListingFeedback");b.style.display="";b.innerHTML=a+" cannot be empty"}var handleEmailListingCancel=function(){this.cancel()};var handleEmailListingSubmit=function(){if(emailSent==true){return}var c=document.getElementById("emailAddress").value;var c=document.getElementById("emailAddress").value;if(c==""){var b=document.getElementById("emailListingFeedback");b.style.display="";b.innerHTML="To make it work, you need to enter an email id first."}else{YEmailListingDialog.doSubmit();var a=document.getElementById("emailListingFeedback");a.style.display="";a.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YEmailListingDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleEmailListingCancel}]);YEmailListingDialog.render();emailSent=true}};function emailRefreshCaptcha(){}function emailRefreshCaptcha2(){}function initEmailListing(){YEmailListingDialog=new YAHOO.widget.Dialog("emailListingDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YEmailListingDialog.callback.success=emailListingSubmitCallback;YEmailListingDialog.callback.failure=emailListingSubmitFailure;YEmailListingDialog.cfg.setProperty("postmethod","async",true);YEmailListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEmailListingSubmit},{text:"Close",handler:handleEmailListingCancel}]);var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleEmailListingSubmit()},scope:YEmailListingDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YEmailListingDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YEmailListingDialog.cfg.queueProperty("keylisteners",a);emailListingInitialized=true;YEmailListingDialog.render()}function EventsPage(){this.xhr=createXHR();this.eventsRefinerAction="/EventsRefinerAction.do";this.eventsResultsAction="/EventsResultsAction.do";this.eventsFeaturedAction="/EventsFeaturedAction.do"}EventsPage.prototype.updateBroweArea=function(g,b,h,k,d,e,a,c,f){if(a==true){this.getRefinerBox(g,b,h,k,d,e)}if(c==true){this.getResultsBox(g,b,h,k,d,e)}if(f==true){this.getFeaturedBox(g,b,h,k,d,e)}};EventsPage.prototype.getRefinerBox=function(c,a,f,e,d,b){};EventsPage.prototype.getResultsBox=function(c,a,f,e,d,b){};EventsPage.prototype.getFeaturedBox=function(c,a,f,e,d,b){};EventsPage.prototype.homeClicked=function(){this.clearStateCookie()};EventsPage.prototype.clearStateCookie=function(){};EventsPage.prototype.storeInStateCookie=function(c,a,f,e,d,b){};EventsPage.prototype.retrieveFromStateCookie=function(c,a,f,e,d,b){};EventsPage.prototype.getURLForDate=function(a){return"?fr="+a+"&nd=1"};var events=new EventsPage();var fbEmailInitialized=false;var fbEmailDone=false;var emailTimer=3;function fbEmailTimerCountDown(){if(emailTimer>0){var a=document.getElementById("fbEmailFeedbackCD");a.innerHTML="This message will self destruct in "+emailTimer+" seconds";emailTimer=emailTimer-1;var b=window.setTimeout("fbEmailTimerCountDown()",1000)}else{YFbEmailDialog.hide();emailTimer=3;window.location.reload()}}function emailCheck(f){var a="@";var b=".";var e=f.indexOf(a);var c=f.length;var d=f.indexOf(b);if(f.indexOf(a)==-1){return false}if(f.indexOf(a)==-1||f.indexOf(a)==0||f.indexOf(a)==c){return false}if(f.indexOf(b)==-1||f.indexOf(b)==0||f.indexOf(b)==c){return false}if(f.indexOf(a,(e+1))!=-1){return false}if(f.substring(e-1,e)==b||f.substring(e+1,e+2)==b){return false}if(f.indexOf(b,(e+2))==-1){return false}if(f.indexOf(" ")!=-1){return false}return true}function fbEmailModalShow(){var b=location.href;if(!fbEmailInitialized){initFbEmail()}document.getElementById("fbEmailtable").style.display="block";var c=document.getElementById("fbEmailFeedback");c.style.display="none";var a=document.getElementById("fbEmailFeedbackCD");a.style.display="none";document.getElementById("fbEmailDlg").style.display="block";document.getElementById("fbEmail").focus();YFbEmailDialog.render();YFbEmailDialog.show();return true}var handleLoginListingCancel=function(){this.cancel()};var handleLoginListingSubmit=function(){if(fbEmailDone==true){return}var c=document.getElementById("fbEmail").value;if(c==""){var a=document.getElementById("fbEmailFeedback");a.style.display="";a.innerHTML="To make it work, you need to enter an email id first.";return}else{if(c.trim().length==0){var a=document.getElementById("fbEmailFeedback");a.style.display="";a.innerHTML="To make it work, you need to enter an email id first.";return}if(emailCheck(c)==false){var a=document.getElementById("fbEmailFeedback");a.style.display="";
a.innerHTML="To make it work, please enter valid email id.";return}YFbEmailDialog.doSubmit();var b=document.getElementById("fbEmailFeedback");b.style.display="";b.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YFbEmailDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleLoginListingCancel}]);YFbEmailDialog.render();fbEmailDone=true}};function loginListingSubmitCallback(c){var a=c.responseText;if(a=="Fail"){var b=document.getElementById("fbEmailFeedback");b.style.display="";b.innerHTML="Some problem in inserting your email";YFbEmailDialog.cfg.queueProperty("buttons",[{text:"Save",id:"submitButton",handler:handleLoginListingSubmit}]);YFbEmailDialog.render();fbEmailDone=false}else{if(a=="Success"){var b=document.getElementById("fbEmailFeedback");b.style.display="";b.innerHTML="Thanks for providing your email";b.style.display="";document.getElementById("fbEmailtable").style.display="none";document.getElementById("fbEmailFeedbackCD").style.display="";fbEmailTimerCountDown()}}}function loginListingSubmitFailure(a){alert("Opps try after some time")}function initFbEmail(){YFbEmailDialog=new YAHOO.widget.Dialog("fbEmailDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YFbEmailDialog.callback.success=loginListingSubmitCallback;YFbEmailDialog.callback.failure=loginListingSubmitFailure;YFbEmailDialog.cfg.setProperty("postmethod","async",true);YFbEmailDialog.cfg.queueProperty("buttons",[{text:"Save",id:"submitButton",handler:handleLoginListingSubmit}]);var b=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleLoginListingSubmit()},scope:YFbEmailDialog,correctScope:true});var a=new Array();a.push(b);YFbEmailDialog.cfg.queueProperty("keylisteners",a);fbEmailInitialized=true;YFbEmailDialog.render()}var fixListingInitialized=false;function fixListingModalShow(b){if(!fixListingInitialized){initFixListing()}var a=document.getElementById("fixListingDlg");a.style.display="block";document.getElementById("fixListingFeedback").style.display="none";document.getElementById("fixListingFeedbackCD").style.display="none";document.getElementById("fixListingTable").style.display="";document.getElementById("fixListingUrl").value=mailUrl;document.getElementById("hashId").value=b;YFixListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleFixListingSubmit},{text:"Close",handler:handleFixListingCancel}]);YFixListingDialog.render();YFixListingDialog.show()}function initFixListingURL(){var b=window.location.href;var a=document.getElementById("fixListingUrl");mailUrl=b}var fixListingTimer=3;function fixListingTimerCountDown(){if(fixListingTimer>0){var a=document.getElementById("fixListingFeedbackCD");a.innerHTML="This message will self destruct in "+fixListingTimer+" seconds";fixListingTimer=fixListingTimer-1;var b=window.setTimeout("fixListingTimerCountDown()",1000)}else{YFixListingDialog.hide();fixListingTimer=3}}function fixListingSubmitCallback(c){var a=c.responseText;if(a=="Success"){document.fixListingDlgForm.reset();var b=document.getElementById("fixListingFeedback");b.style.display="";b.innerHTML="Thanks a ton for your response!";document.getElementById("fixListingTable").style.display="none";document.getElementById("fixListingFeedbackCD").style.display="";fixListingTimerCountDown()}else{if(a.indexOf("Hey. Don't be lazy. Log on, to use this feature.")!=-1){document.fixListingDlgForm.reset();var b=document.getElementById("fixListingFeedback");b.style.display="";b.innerHTML="Hey. Don't be lazy. Log on, to use this feature."}}}function fixListingSubmitFailure(a){alert("Oops, please try after some time")}function showFixListingError(a){var b=document.getElementById("fixListingFeedback");b.style.display="";b.innerHTML=a+"  cannot be submitted"}function handleFixListingCancel(){YFixListingDialog.cancel()}function handleFixListingSubmit(){var b=document.getElementById("fixListingContents");if(isEmpty(b)){showFixListingError("Empty Listing detail")}else{YFixListingDialog.doSubmit();var a=document.getElementById("fixListingFeedback");a.style.display="";a.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YFixListingDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleFixListingCancel}]);YFixListingDialog.render()}}function initFixListing(){initFixListingURL();YFixListingDialog=new YAHOO.widget.Dialog("fixListingDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YFixListingDialog.callback.success=fixListingSubmitCallback;YFixListingDialog.callback.failure=fixListingSubmitFailure;YFixListingDialog.cfg.setProperty("postmethod","async",true);YFixListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleFixListingSubmit},{text:"Close",handler:handleFixListingCancel}]);var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){YFixListingDialog.hide()
},scope:YFixListingDialog,correctScope:true});var a=new Array();a.push(b);YFixListingDialog.cfg.queueProperty("keylisteners",a);fixListingInitialized=true;YFixListingDialog.render()}browser_version=parseInt(navigator.appVersion);browser_type=navigator.appName;var childNodeIndex=0;if(browser_type=="Microsoft Internet Explorer"&&(browser_version>=4)){childNodeIndex=0}else{if(browser_type=="Netscape"&&(browser_version>=4)){childNodeIndex=1}}function hoverOn(a){a.childNodes[childNodeIndex].style.backgroundImage="url('/webres/img/utl.png')"}function hoverOff(a){a.childNodes[childNodeIndex].style.backgroundImage="url('/webres/img/utl_dull.png')"}function highlgtOn(a){document.getElementById(a).className="commentUserProfiles"}function highlgtOff(a){document.getElementById(a).className="commentUserProfile"}var loginInitialized=false;var loginDone=false;var loginTimer=3;function loginTimerCountDown(){if(loginTimer>0){var a=document.getElementById("loginListingFeedbackCD");a.innerHTML="This message will self destruct in "+loginTimer+" seconds";loginTimer=loginTimer-1;var b=window.setTimeout("loginTimerCountDown()",1000)}else{YLoginListingDialog.hide();loginTimer=3;window.location.reload()}}function emailCheck(f){var a="@";var b=".";var e=f.indexOf(a);var c=f.length;var d=f.indexOf(b);if(f.indexOf(a)==-1){return false}if(f.indexOf(a)==-1||f.indexOf(a)==0||f.indexOf(a)==c){return false}if(f.indexOf(b)==-1||f.indexOf(b)==0||f.indexOf(b)==c){return false}if(f.indexOf(a,(e+1))!=-1){return false}if(f.substring(e-1,e)==b||f.substring(e+1,e+2)==b){return false}if(f.indexOf(b,(e+2))==-1){return false}if(f.indexOf(" ")!=-1){return false}return true}function loginModal(){document.getElementById("loginTopDlg").style.display="block";document.getElementById("loginListingTable").style.display="block";YLoginListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitLoginModalButton",handler:handleLoginListingModalSubmit},{text:"Close",handler:handleLoginListingModalCancel}]);YLoginListingDialog.render();var b=document.getElementById("loginListingFeedback");b.style.display="none";var a=document.getElementById("loginListingFeedbackCD");a.style.display="none";document.getElementById("loginModalEmail").focus();loginDone=false;return true}function loginModalShow(){var a=location.href;if(!loginInitialized){initLoginListing()}document.getElementById("loginListingDlg").style.display="block";YLoginListingDialog.render();YLoginListingDialog.show();return true}var handleLoginListingModalCancel=function(){this.cancel()};var handleLoginListingModalSubmit=function(){if(loginDone==true){return}var d=document.getElementById("loginModalEmail").value;var a=document.getElementById("loginModalPassowrd").value;if(d==""){var b=document.getElementById("loginListingFeedback");b.style.display="";b.innerHTML="To make it work, you need to enter an email id first.";return}else{if(d.trim().length==0){var b=document.getElementById("loginListingFeedback");b.style.display="";b.innerHTML="To make it work, you need to enter an email id first.";return}if(emailCheck(d)==false){var b=document.getElementById("loginListingFeedback");b.style.display="";b.innerHTML="To make it work, please enter valid email id.";return}if(a.trim().length==0){var b=document.getElementById("loginListingFeedback");b.style.display="";b.innerHTML="Please enter a password.";return}if(document.getElementById("loginModalPassowrd").value!="<%=enpass.getValue()%>"){document.getElementById("modalPass").value=hex_md5(document.getElementById("loginModalPassowrd").value);document.getElementById("loginModalPassowrd").value=hex_md5(document.getElementById("loginModalPassowrd").value).substring(0,document.getElementById("loginModalPassowrd").value.length)}YLoginListingDialog.doSubmit();var c=document.getElementById("loginListingFeedback");c.style.display="";c.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YLoginListingDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleLoginListingModalCancel}]);YLoginListingDialog.render();loginDone=true}};function loginListingSubmitModalCallback(c){var a=c.responseText;if(a=="Incorrect password"){document.loginModalBean.reset();var b=document.getElementById("loginListingFeedback");b.style.display="";b.innerHTML="Ahem! See, either the username, or the password, is not matching. So try again.";YLoginListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitLoginModalButton",handler:handleLoginListingModalSubmit},{text:"Close",handler:handleLoginListingModalCancel}]);YLoginListingDialog.render();loginDone=false}else{if(a=="Fail"){var b=document.getElementById("loginListingFeedback");b.style.display="";b.innerHTML="You need to verify your email address before logging in.";YLoginListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitLoginModalButton",handler:handleLoginListingModalSubmit},{text:"Close",handler:handleLoginListingModalCancel}]);YLoginListingDialog.render();loginDone=false}else{if(a=="Success"){var b=document.getElementById("loginListingFeedback");
b.style.display="";b.innerHTML="Successfully loggedin";b.style.display="";document.getElementById("loginListingTable").style.display="none";document.getElementById("loginListingFeedbackCD").style.display="";loginTimerCountDown()}}}}function loginListingSubmitModalFailure(a){alert("Opps try after some time")}function initLoginListing(){YLoginListingDialog=new YAHOO.widget.Dialog("loginListingDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YLoginListingDialog.callback.success=loginListingSubmitModalCallback;YLoginListingDialog.callback.failure=loginListingSubmitModalFailure;YLoginListingDialog.cfg.setProperty("postmethod","async",true);YLoginListingDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleLoginListingModalCancel}]);var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleLoginListingModalSubmit()},scope:YLoginListingDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YLoginListingDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YLoginListingDialog.cfg.queueProperty("keylisteners",a);loginInitialized=true}var mailInitialized=false;var mailSent=false;function mailModalShow(){if(!mailInitialized){init2()}var b=document.getElementById("mailDlg");b.style.display="block";document.getElementById("mailTable").style.display="block";YMailDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleFeedbackSubmit},{text:"Close",handler:handleFeedbackCancel}]);YMailDialog.render();var a=document.getElementById("mailfeedback");a.style.display="none";var a=document.getElementById("mailfeedbackCD");a.style.display="none";YMailDialog.show()}function initURL(){var b=window.location.href;var a=document.getElementById("url");mailSubject=b;if(document.getElementById("url")!=null){document.getElementById("url").value=mailSubject}}var mailModalTimer=3;function mailModalTimerCountDown(){if(mailModalTimer>0){var a=document.getElementById("mailfeedbackCD");a.innerHTML="This message will self destruct in "+mailModalTimer+" seconds";mailModalTimer=mailModalTimer-1;var b=window.setTimeout("mailModalTimerCountDown()",1000)}else{YMailDialog.hide();mailModalTimer=3}}function mailSubmitCallback(c){var a=c.responseText;if(a=="Mail Sent"){document.mailDlgForm.reset();var b=document.getElementById("mailfeedback");b.innerHTML="Laila is always happy to hear what you have to say. Thanks.";b.style.display="";document.getElementById("mailTable").style.display="none";document.getElementById("mailfeedbackCD").style.display="";mailModalTimerCountDown()}else{if(a.indexOf("Sorry, the email could not be sent")!=null){document.mailDlgForm.reset();var b=document.getElementById("mailfeedback");b.innerHTML="Sorry, the email could not be sent. Try again later";b.style.display="";document.getElementById("mailTable").style.display="none";document.getElementById("mailfeedbackCD").style.display="";mailModalTimerCountDown()}}}function mailSubmitFailure(a){alert("Oops, please try after some time")}function showFeedbackModalError(a){var b=document.getElementById("mailfeedback");b.innerHTML=a+" cannot be empty";b.style.display=""}function handleFeedbackCancel(){YMailDialog.cancel()}function handleFeedbackSubmit(){var a=document.getElementById("body");if(isEmpty(a)){showFeedbackModalError("Body")}else{YMailDialog.doSubmit();var b=document.getElementById("mailfeedback");b.style.display="";b.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YMailDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleFeedbackCancel}]);YMailDialog.render();mailSent=true}}function init2(){initURL();YMailDialog=new YAHOO.widget.Dialog("mailDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YMailDialog.callback.success=mailSubmitCallback;YMailDialog.callback.failure=mailSubmitFailure;YMailDialog.cfg.setProperty("postmethod","async",true);YMailDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleFeedbackSubmit},{text:"Close",handler:handleFeedbackCancel}]);var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YMailDialog,correctScope:true});var a=new Array();a.push(b);YMailDialog.cfg.queueProperty("keylisteners",a);mailInitialized=true;YMailDialog.render()}var hexcase=0;var b64pad="";var chrsz=8;function hex_md5(a){return binl2hex(core_md5(str2binl(a),a.length*chrsz))}function b64_md5(a){return binl2b64(core_md5(str2binl(a),a.length*chrsz))}function str_md5(a){return binl2str(core_md5(str2binl(a),a.length*chrsz))}function hex_hmac_md5(a,b){return binl2hex(core_hmac_md5(a,b))}function b64_hmac_md5(a,b){return binl2b64(core_hmac_md5(a,b))}function str_hmac_md5(a,b){return binl2str(core_hmac_md5(a,b))}function md5_vm_test(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"
}function core_md5(q,l){q[l>>5]|=128<<((l)%32);q[(((l+64)>>>9)<<4)+14]=l;var p=1732584193;var o=-271733879;var n=-1732584194;var m=271733878;for(var g=0;g<q.length;g+=16){var k=p;var h=o;var f=n;var e=m;p=md5_ff(p,o,n,m,q[g+0],7,-680876936);m=md5_ff(m,p,o,n,q[g+1],12,-389564586);n=md5_ff(n,m,p,o,q[g+2],17,606105819);o=md5_ff(o,n,m,p,q[g+3],22,-1044525330);p=md5_ff(p,o,n,m,q[g+4],7,-176418897);m=md5_ff(m,p,o,n,q[g+5],12,1200080426);n=md5_ff(n,m,p,o,q[g+6],17,-1473231341);o=md5_ff(o,n,m,p,q[g+7],22,-45705983);p=md5_ff(p,o,n,m,q[g+8],7,1770035416);m=md5_ff(m,p,o,n,q[g+9],12,-1958414417);n=md5_ff(n,m,p,o,q[g+10],17,-42063);o=md5_ff(o,n,m,p,q[g+11],22,-1990404162);p=md5_ff(p,o,n,m,q[g+12],7,1804603682);m=md5_ff(m,p,o,n,q[g+13],12,-40341101);n=md5_ff(n,m,p,o,q[g+14],17,-1502002290);o=md5_ff(o,n,m,p,q[g+15],22,1236535329);p=md5_gg(p,o,n,m,q[g+1],5,-165796510);m=md5_gg(m,p,o,n,q[g+6],9,-1069501632);n=md5_gg(n,m,p,o,q[g+11],14,643717713);o=md5_gg(o,n,m,p,q[g+0],20,-373897302);p=md5_gg(p,o,n,m,q[g+5],5,-701558691);m=md5_gg(m,p,o,n,q[g+10],9,38016083);n=md5_gg(n,m,p,o,q[g+15],14,-660478335);o=md5_gg(o,n,m,p,q[g+4],20,-405537848);p=md5_gg(p,o,n,m,q[g+9],5,568446438);m=md5_gg(m,p,o,n,q[g+14],9,-1019803690);n=md5_gg(n,m,p,o,q[g+3],14,-187363961);o=md5_gg(o,n,m,p,q[g+8],20,1163531501);p=md5_gg(p,o,n,m,q[g+13],5,-1444681467);m=md5_gg(m,p,o,n,q[g+2],9,-51403784);n=md5_gg(n,m,p,o,q[g+7],14,1735328473);o=md5_gg(o,n,m,p,q[g+12],20,-1926607734);p=md5_hh(p,o,n,m,q[g+5],4,-378558);m=md5_hh(m,p,o,n,q[g+8],11,-2022574463);n=md5_hh(n,m,p,o,q[g+11],16,1839030562);o=md5_hh(o,n,m,p,q[g+14],23,-35309556);p=md5_hh(p,o,n,m,q[g+1],4,-1530992060);m=md5_hh(m,p,o,n,q[g+4],11,1272893353);n=md5_hh(n,m,p,o,q[g+7],16,-155497632);o=md5_hh(o,n,m,p,q[g+10],23,-1094730640);p=md5_hh(p,o,n,m,q[g+13],4,681279174);m=md5_hh(m,p,o,n,q[g+0],11,-358537222);n=md5_hh(n,m,p,o,q[g+3],16,-722521979);o=md5_hh(o,n,m,p,q[g+6],23,76029189);p=md5_hh(p,o,n,m,q[g+9],4,-640364487);m=md5_hh(m,p,o,n,q[g+12],11,-421815835);n=md5_hh(n,m,p,o,q[g+15],16,530742520);o=md5_hh(o,n,m,p,q[g+2],23,-995338651);p=md5_ii(p,o,n,m,q[g+0],6,-198630844);m=md5_ii(m,p,o,n,q[g+7],10,1126891415);n=md5_ii(n,m,p,o,q[g+14],15,-1416354905);o=md5_ii(o,n,m,p,q[g+5],21,-57434055);p=md5_ii(p,o,n,m,q[g+12],6,1700485571);m=md5_ii(m,p,o,n,q[g+3],10,-1894986606);n=md5_ii(n,m,p,o,q[g+10],15,-1051523);o=md5_ii(o,n,m,p,q[g+1],21,-2054922799);p=md5_ii(p,o,n,m,q[g+8],6,1873313359);m=md5_ii(m,p,o,n,q[g+15],10,-30611744);n=md5_ii(n,m,p,o,q[g+6],15,-1560198380);o=md5_ii(o,n,m,p,q[g+13],21,1309151649);p=md5_ii(p,o,n,m,q[g+4],6,-145523070);m=md5_ii(m,p,o,n,q[g+11],10,-1120210379);n=md5_ii(n,m,p,o,q[g+2],15,718787259);o=md5_ii(o,n,m,p,q[g+9],21,-343485551);p=safe_add(p,k);o=safe_add(o,h);n=safe_add(n,f);m=safe_add(m,e)}return Array(p,o,n,m)}function md5_cmn(h,e,d,c,g,f){return safe_add(bit_rol(safe_add(safe_add(e,h),safe_add(c,f)),g),d)}function md5_ff(g,f,m,l,e,k,h){return md5_cmn((f&m)|((~f)&l),g,f,e,k,h)}function md5_gg(g,f,m,l,e,k,h){return md5_cmn((f&l)|(m&(~l)),g,f,e,k,h)}function md5_hh(g,f,m,l,e,k,h){return md5_cmn(f^m^l,g,f,e,k,h)}function md5_ii(g,f,m,l,e,k,h){return md5_cmn(m^(f|(~l)),g,f,e,k,h)}function core_hmac_md5(c,f){var e=str2binl(c);if(e.length>16){e=core_md5(e,c.length*chrsz)}var a=Array(16),d=Array(16);for(var b=0;b<16;b++){a[b]=e[b]^909522486;d[b]=e[b]^1549556828}var g=core_md5(a.concat(str2binl(f)),512+f.length*chrsz);return core_md5(d.concat(g),512+128)}function safe_add(a,d){var c=(a&65535)+(d&65535);var b=(a>>16)+(d>>16)+(c>>16);return(b<<16)|(c&65535)}function bit_rol(a,b){return(a<<b)|(a>>>(32-b))}function str2binl(d){var c=Array();var a=(1<<chrsz)-1;for(var b=0;b<d.length*chrsz;b+=chrsz){c[b>>5]|=(d.charCodeAt(b/chrsz)&a)<<(b%32)}return c}function binl2str(c){var d="";var a=(1<<chrsz)-1;for(var b=0;b<c.length*32;b+=chrsz){d+=String.fromCharCode((c[b>>5]>>>(b%32))&a)}return d}function binl2hex(c){var b=hexcase?"0123456789ABCDEF":"0123456789abcdef";var d="";for(var a=0;a<c.length*4;a++){d+=b.charAt((c[a>>2]>>((a%4)*8+4))&15)+b.charAt((c[a>>2]>>((a%4)*8))&15)}return d}function binl2b64(d){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var f="";for(var b=0;b<d.length*4;b+=3){var e=(((d[b>>2]>>8*(b%4))&255)<<16)|(((d[b+1>>2]>>8*((b+1)%4))&255)<<8)|((d[b+2>>2]>>8*((b+2)%4))&255);for(var a=0;a<4;a++){if(b*8+a*6>d.length*32){f+=b64pad}else{f+=c.charAt((e>>6*(3-a))&63)}}}return f}var messCustomerCareInitialized=false;var messCustomerCareEmailSent=false;function messCustomerCareModalShow(){if(!messCustomerCareInitialized){initMessCustomerCare()}var c=document.getElementById("messCustomerCareDlg");c.style.display="block";document.getElementById("messCustomerCareTable").style.display="block";document.messCustomerCareDlgForm.merchantComments.value="";YMessCustomerCareDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMessCustomerCareSubmit},{text:"Close",handler:handleMessCustomerCareCancel}]);YMessCustomerCareDialog.render();var b=document.getElementById("messCustomerCareFeedback");
b.style.display="none";var a=document.getElementById("messCustomerCareFeedbackCD");a.style.display="none";messCustomerCareEmailSent=false;YMessCustomerCareDialog.show()}var messCustomerCareTimer=3;function messCustomerCareTimerCountDown(){if(messCustomerCareTimer>0){var a=document.getElementById("messCustomerCareFeedbackCD");a.innerHTML="This message will self destruct in "+messCustomerCareTimer+" seconds";messCustomerCareTimer=messCustomerCareTimer-1;var b=window.setTimeout("messCustomerCareTimerCountDown()",1000)}else{YMessCustomerCareDialog.hide();messCustomerCareTimer=3}}function messCustomerCareSubmitCallback(c){var a=c.responseText;if(a=="Success"){document.messCustomerCareDlgForm.reset();var b=document.getElementById("messCustomerCareFeedback");document.getElementById("messCustomerCareTable").style.display="none";b.style.display="";b.innerHTML="Thank you for your email. We will get back to you shortly.";document.getElementById("messCustomerCareFeedbackCD").style.display="";messCustomerCareTimerCountDown()}else{if(a.indexOf("Please login to use this feature")!=-1){var b=document.getElementById("messCustomerCareFeedback");b.style.display="";b.innerHTML="Email could not be sent. ";YMessCustomerCareDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMessCustomerCareSubmit},{text:"Close",handler:handleMessCustomerCareCancel}]);YMessCustomerCareDialog.render();document.getElementById("emailListingTable").style.display=""}else{if(a.indexOf("Please fill all the fields and submit.")!=-1){var b=document.getElementById("messCustomerCareFeedback");b.style.display="";b.innerHTML="Please fill all the fields and submit.";YMessCustomerCareDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMessCustomerCareSubmit},{text:"Close",handler:handleMessCustomerCareCancel}]);YMessCustomerCareDialog.render();document.getElementById("emailListingTable").style.display=""}else{if(a.indexOf("Feeling shy or what? Come on. Enter your real email id")!=-1){messCustomerCareEmailSent=false;var b=document.getElementById("messCustomerCareFeedback");b.style.display="";b.innerHTML="Feeling shy or what? Come on. Enter your real email id";YMessCustomerCareDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMessCustomerCareSubmit},{text:"Close",handler:handleMessCustomerCareCancel}]);YMessCustomerCareDialog.render();document.getElementById("emailListingTable").style.display=""}else{messCustomerCareEmailSent=false;var b=document.getElementById("messCustomerCareFeedback");document.getElementById("messCustomerCareTable").style.display="none";b.style.display="";b.innerHTML="The email could not be sent, please try again later. ";YMessCustomerCareDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMessCustomerCareSubmit},{text:"Close",handler:handleMessCustomerCareCancel}]);YMessCustomerCareDialog.render()}}}}}function messCustomerCareSubmitFailure(a){alert("Oops, please try after some time")}function showMessCustomerCareError(a){var b=document.getElementById("messCustomerCareFeedback");messCustomerCareerrorDiv.style.display="";messCustomerCareerrorDiv.innerHTML=a+" cannot be empty"}var handleMessCustomerCareCancel=function(){this.cancel()};var handleMessCustomerCareSubmit=function(){if(messCustomerCareEmailSent==true){return}var a=document.getElementById("merchantName").value;var c=document.getElementById("merchantContactNo").value;var e=document.messCustomerCareDlgForm.merchantComments.value;if(a==""){var b=document.getElementById("messCustomerCareFeedback");b.style.display="";b.innerHTML="Please enter your name and submit."}else{if(c==""){var b=document.getElementById("messCustomerCareFeedback");b.style.display="";b.innerHTML="Please enter your contact no. and submit, it will help us solve your problem faster."}else{if(e==""){var b=document.getElementById("messCustomerCareFeedback");b.style.display="";b.innerHTML="Please enter your comments before you submit"}else{YMessCustomerCareDialog.doSubmit();var d=document.getElementById("messCustomerCareFeedback");d.style.display="";d.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YMessCustomerCareDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleMessCustomerCareCancel}]);YMessCustomerCareDialog.render();messCustomerCareEmailSent=true}}}};function initMessCustomerCare(){YMessCustomerCareDialog=new YAHOO.widget.Dialog("messCustomerCareDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YMessCustomerCareDialog.callback.success=messCustomerCareSubmitCallback;YMessCustomerCareDialog.callback.failure=messCustomerCareSubmitFailure;YMessCustomerCareDialog.cfg.setProperty("postmethod","async",true);YMessCustomerCareDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMessCustomerCareSubmit},{text:"Close",handler:handleMessCustomerCareCancel}]);
var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleMessCustomerCareSubmit()},scope:YMessCustomerCareDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YMessCustomerCareDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YMessCustomerCareDialog.cfg.queueProperty("keylisteners",a);messCustomerCareInitialized=true;YMessCustomerCareDialog.render()}var resetPasswordInitialized=false;var passwordSubmitted=false;function resetPasswordModalShow(){if(!resetPasswordInitialized){initResetPassword()}var c=document.getElementById("resetPasswordDlg");var b=document.getElementById("resetPasswordFeedback");b.style.display="none";var b=document.getElementById("resetPasswordFeedbackCD");b.style.display="none";document.getElementById("resetPasswordTable").style.display="";c.style.display="block";var a=document.resetPasswordDlgForm.email;a.value="";YResetPasswordDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleResetPassSubmit},{text:"Close",handler:handleResetPassCancel}]);YResetPasswordDialog.render();YResetPasswordDialog.show();passwordSubmitted=false}var resetPasswordTimer=3;function resetPasswordTimerCountDown(){if(resetPasswordTimer>0){var a=document.getElementById("resetPasswordFeedbackCD");a.innerHTML="This message will self destruct in "+resetPasswordTimer+" seconds";resetPasswordTimer=resetPasswordTimer-1;var b=window.setTimeout("resetPasswordTimerCountDown()",1000)}else{YResetPasswordDialog.hide();resetPasswordTimer=3}}function resetPasswordSubmitCallback(c){var a=c.responseText;if(a=="Success"){document.resetPasswordDlgForm.reset();var b=document.getElementById("resetPasswordFeedback");b.style.display="";document.getElementById("resetPasswordTable").style.display="none";b.innerHTML="Your password has been changed, please check your email and login with the new password.";document.getElementById("resetPasswordFeedbackCD").style.display="";resetPasswordTimerCountDown();YResetPasswordDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleResetPassCancel}]);YResetPasswordDialog.render()}else{if(a.indexOf("Feeling shy or what? Come on. Enter your real email id."!=-1)){var b=document.getElementById("resetPasswordFeedback");b.style.display="";b.innerHTML="Feeling shy or what? Come on. Enter your real email id.";YResetPasswordDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleResetPassSubmit},{text:"Close",handler:handleResetPassCancel}]);YResetPasswordDialog.render()}}}function resetPasswordSubmitFailure(a){alert("The server is busy, please try again later!")}function showFieldNullError(b){var a=document.getElementById("resetPasswordFeedback");a.style.display="";a.innerHTML=b+" cannot be empty"}var handleResetPassCancel=function(){YResetPasswordDialog.cancel()};var handleResetPassSubmit=function(){var b=document.getElementById("resetPasswordEmail").value;if(b==""){if(passwordSubmitted==true){return}var a=document.getElementById("resetPasswordFeedback");a.style.display="";a.innerHTML="Feeling shy or what? Come on. Enter your email id."}else{YResetPasswordDialog.doSubmit();var c=document.getElementById("resetPasswordFeedback");c.style.display="";c.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YResetPasswordDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleResetPassCancel}]);YResetPasswordDialog.render();passwordSubmitted=true}};function initResetPassword(){YResetPasswordDialog=new YAHOO.widget.Dialog("resetPasswordDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YResetPasswordDialog.cfg.setProperty("context",["reset_link","tl","br"]);YResetPasswordDialog.callback.success=resetPasswordSubmitCallback;YResetPasswordDialog.callback.failure=resetPasswordSubmitFailure;YResetPasswordDialog.cfg.setProperty("postmethod","async",true);YResetPasswordDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleResetPassSubmit},{text:"Close",handler:handleResetPassCancel}]);var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleResetPassSubmit()},scope:YResetPasswordDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){handleResetPassCancel()},scope:YResetPasswordDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YResetPasswordDialog.cfg.queueProperty("keylisteners",a);resetPasswordInitialized=true;YResetPasswordDialog.render()}var eventSmsMobNumber=0;var eventSmsInitialized=false;var eventSmsSent=false;var eventPrePopMobNum="";function smsEventDetailsModalShow(d,g){if(!eventSmsInitialized){initSmsEventDetails()}showEventSMSPreview(d);var b=document.getElementById("smsEventDetailsDlg");b.style.display="block";document.getElementById("smsEventDetailsTable").style.display="block";var a=document.getElementById("smsMobileNumber");if(g==0){a.value=eventPrePopMobNum
}else{a.value=g;eventPrePopMobNum=g}var f=document.smsEventDetailsDlgForm.eventId;f.value=d;YSmsEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEventSMSSubmit},{text:"Close",handler:handleEventSMSCancel}]);YSmsEventDetailsDialog.render();var e=document.getElementById("smsEventDetailsFeedback");e.style.display="none";var c=document.getElementById("smsEventDetailsFeedbackCD");c.style.display="none";eventSmsSent=false;YSmsEventDetailsDialog.show()}var eventSmsTimer=3;function eventSmsTimerCountDown(){if(eventSmsTimer>0){var a=document.getElementById("smsEventDetailsFeedbackCD");a.innerHTML="This message will self destruct in "+eventSmsTimer+" seconds";eventSmsTimer=eventSmsTimer-1;var b=window.setTimeout("eventSmsTimerCountDown()",1000)}else{YSmsEventDetailsDialog.hide();eventSmsTimer=3}}function showEventSMSPreview(a){var b=createXHR();var c=getContextPath()+"/SMSEventDetailsPreview.do?EventId="+a;b.open("GET",c,true);b.onreadystatechange=function(){if(b.readyState==4){displayEventSMSPreview(b.responseText)}};b.send(null)}function smsEventDetailsSubmitCallback(c){var a=c.responseText;if(a=="Success"){eventSmsMobNumber=document.getElementById("smsMobileNumber").value;document.smsEventDetailsDlgForm.reset();var b=document.getElementById("smsEventDetailsFeedback");b.style.display="";document.getElementById("smsEventDetailsTable").style.display="none";b.innerHTML="The SMS with Event details has been sent.";document.getElementById("smsEventDetailsFeedbackCD").style.display="";eventSmsTimerCountDown()}else{if(a.indexOf("The mobile number can not be less than 10 characters.")!=-1){var b=document.getElementById("smsEventDetailsFeedback");b.style.display="";b.innerHTML="Please enter a 10 digit mobile number";eventSmsSent=false;YSmsEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEventSMSSubmit},{text:"Close",handler:handleEventSMSCancel}]);YSmsEventDetailsDialog.render()}else{if(a.indexOf("Nice mobile number. But it is not valid. Try again.")!=-1){var b=document.getElementById("smsEventDetailsFeedback");b.style.display="";eventSmsSent=false;b.innerHTML="Nice mobile number. But it is not valid. Try again.";YSmsEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEventSMSSubmit},{text:"Close",handler:handleEventSMSCancel}]);YSmsEventDetailsDialog.render()}else{if(a.indexOf("Boo Hoo. The SMS didn't go through.")!=-1){var b=document.getElementById("smsEventDetailsFeedback");eventSmsSent=false;b.style.display="";b.innerHTML="Boo Hoo. The SMS didn't go through.";YSmsEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEventSMSSubmit},{text:"Close",handler:handleEventSMSCancel}]);YSmsEventDetailsDialog.render()}else{if(a.indexOf("Well, we're not allowed to send SMS to the specified number.")!=-1){var b=document.getElementById("smsEventDetailsFeedback");eventSmsSent=false;b.style.display="";b.innerHTML="Well, we're not allowed to send SMS to the specified number.";YSmsEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEventSMSSubmit},{text:"Close",handler:handleEventSMSCancel}]);YSmsEventDetailsDialog.render()}else{if(a.indexOf("Too many messages have been sent to this number recently. Please try again later!")!=-1){var b=document.getElementById("smsEventDetailsFeedback");eventSmsSent=false;b.style.display="";b.innerHTML="Too many messages have been sent to this number recently. Please try again later!";YSmsEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEventSMSSubmit},{text:"Close",handler:handleEventSMSCancel}]);YSmsEventDetailsDialog.render()}else{if(a.indexOf("The word that you entered did not match the verification word. Please try again!")!=-1){var b=document.getElementById("smsEventDetailsFeedback");eventSmsSent=false;b.style.display="";b.innerHTML="Tch. Tch. You did not enter the correct verification code. Please try again.";document.emailEventDetailsDlgForm.captchaText.value="";YSmsEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEventSMSSubmit},{text:"Close",handler:handleEventSMSCancel}]);YSmsEventDetailsDialog.render()}}}}}}}}function smsEventDetailsSubmitFailure(a){alert("Oops, please try after some time")}function showEventSMSModalError(a){var b=document.getElementById("smsEventDetailsFeedback");b.style.display="";b.innerHTML=a+" cannot be empty"}var handleEventSMSCancel=function(){this.cancel()};var handleEventSMSSubmit=function(){if(eventSmsSent==true){return}var b=document.getElementById("smsMobileNumber").value;eventPrePopMobNum=b;if(b==""){var c=document.getElementById("smsEventDetailsFeedback");c.style.display="";c.innerHTML=" To make it work, you need to enter a mobile number first."}else{YSmsEventDetailsDialog.doSubmit();var a=document.getElementById("smsEventDetailsFeedback");a.innerHTML="<IMG SRC='/webres/img/loading.gif'>";
YSmsEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleEventSMSCancel}]);YSmsEventDetailsDialog.render();eventSmsSent=true}};function displayEventSMSPreview(a){var b=document.getElementById("smsPreview");b.innerHTML=a}function initSmsEventDetails(){YSmsEventDetailsDialog=new YAHOO.widget.Dialog("smsEventDetailsDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YSmsEventDetailsDialog.cfg.setProperty("context",["sms_link","tl","br"]);YSmsEventDetailsDialog.callback.success=smsEventDetailsSubmitCallback;YSmsEventDetailsDialog.callback.failure=smsEventDetailsSubmitFailure;YSmsEventDetailsDialog.cfg.setProperty("postmethod","async",true);YSmsEventDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleEventSMSSubmit},{text:"Close",handler:handleEventSMSCancel}]);var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleEventSMSSubmit()},scope:YSmsEventDetailsDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YSmsEventDetailsDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YSmsEventDetailsDialog.cfg.queueProperty("keylisteners",a);eventSmsInitialized=true;YSmsEventDetailsDialog.render()}var smsMobNumber=0;var smsInitialized=false;var smsSent=false;var prePopMobNum="";var isSponsoredListing=false;function smsSponsoredListingModalShow(a,b){isSponsoredListing=true;smsListingModalShow(a,b)}function initSMSUrl(){var b=window.location.href;var a=document.getElementById("smsListingUrl");mailSubject=b;if(document.getElementById("smsListingUrl")!=null){document.getElementById("smsListingUrl").value=mailSubject}}function smsListingModalShow(c,g){if(!smsInitialized){initSmsListing()}if(isSponsoredListing){document.getElementById("isSponsoredListing").value="1";isSponsoredListing=false}else{document.getElementById("isSponsoredListing").value="0"}initSMSUrl();smsRefreshCaptcha2();showSMSPreview(c);var f=document.getElementById("smsListingDlg");f.style.display="block";document.getElementById("smsListingTable").style.display="block";var a=document.getElementById("smsMobileNumber");if(g==0){a.value=prePopMobNum}else{a.value=g;prePopMobNum=g}var e=document.smsListingDlgForm.listingHashId;e.value=c;YSmsListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleSMSSubmit},{text:"Close",handler:handleSMSCancel}]);YSmsListingDialog.render();var d=document.getElementById("smsListingFeedback");d.style.display="none";var b=document.getElementById("smsListingFeedbackCD");b.style.display="none";smsSent=false;YSmsListingDialog.show()}var smsTimer=3;function smsTimerCountDown(){if(smsTimer>0){var a=document.getElementById("smsListingFeedbackCD");a.innerHTML="This message will self destruct in "+smsTimer+" seconds";smsTimer=smsTimer-1;var b=window.setTimeout("smsTimerCountDown()",1000)}else{YSmsListingDialog.hide();smsTimer=3}}function showSMSPreview(b){var a=createXHR();var c=getContextPath()+"/SMSPreview.do?listingHashId="+b;a.open("GET",c,true);a.onreadystatechange=function(){if(a.readyState==4){displaySMSPreview(a.responseText)}};a.send(null)}function smsListingSubmitCallback(c){var a=c.responseText;if(a=="Success"){smsMobNumber=document.getElementById("smsMobileNumber").value;document.smsListingDlgForm.reset();var b=document.getElementById("smsListingFeedback");b.style.display="";document.getElementById("smsListingTable").style.display="none";b.innerHTML="The SMS with listing details has been sent.";document.getElementById("smsListingFeedbackCD").style.display="";smsTimerCountDown()}else{if(a.indexOf("The mobile number can not be less than 10 characters.")!=-1){var b=document.getElementById("smsListingFeedback");b.style.display="";b.innerHTML="Please enter a 10 digit mobile number";smsSent=false;YSmsListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleSMSSubmit},{text:"Close",handler:handleSMSCancel}]);YSmsListingDialog.render()}else{if(a.indexOf("Nice mobile number. But it is not valid. Try again.")!=-1){var b=document.getElementById("smsListingFeedback");b.style.display="";smsSent=false;b.innerHTML="Nice mobile number. But it is not valid. Try again.";YSmsListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleSMSSubmit},{text:"Close",handler:handleSMSCancel}]);YSmsListingDialog.render()}else{if(a.indexOf("Boo Hoo. The SMS didn't go through.")!=-1){var b=document.getElementById("smsListingFeedback");smsSent=false;b.style.display="";b.innerHTML="Boo Hoo. The SMS didn't go through.";YSmsListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleSMSSubmit},{text:"Close",handler:handleSMSCancel}]);YSmsListingDialog.render()}else{if(a.indexOf("Well, we're not allowed to send SMS to the specified number.")!=-1){var b=document.getElementById("smsListingFeedback");
smsSent=false;b.style.display="";b.innerHTML="Well, we're not allowed to send SMS to the specified number.";YSmsListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleSMSSubmit},{text:"Close",handler:handleSMSCancel}]);YSmsListingDialog.render()}else{if(a.indexOf("Too many messages have been sent to this number recently. Please try again later!")!=-1){var b=document.getElementById("smsListingFeedback");smsSent=false;b.style.display="";b.innerHTML="Too many messages have been sent to this number recently. Please try again later!";YSmsListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleSMSSubmit},{text:"Close",handler:handleSMSCancel}]);YSmsListingDialog.render()}else{if(a.indexOf("The word that you entered did not match the verification word. Please try again!")!=-1){var b=document.getElementById("smsListingFeedback");smsSent=false;b.style.display="";b.innerHTML="Tch. Tch. You did not enter the correct verification code. Please try again.";smsRefreshCaptcha2();document.emailListingDlgForm.captchaText.value="";YSmsListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleSMSSubmit},{text:"Close",handler:handleSMSCancel}]);YSmsListingDialog.render()}}}}}}}}function smsListingSubmitFailure(a){alert("Oops, please try after some time")}function showSMSModalError(b){var a=document.getElementById("smsListingFeedback");a.style.display="";a.innerHTML=b+" cannot be empty"}var handleSMSCancel=function(){this.cancel()};var handleSMSSubmit=function(){if(smsSent==true){return}var b=document.getElementById("smsMobileNumber").value;prePopMobNum=b;if(b==""){var a=document.getElementById("smsListingFeedback");a.style.display="";a.innerHTML=" To make it work, you need to enter a mobile number first."}else{YSmsListingDialog.doSubmit();var c=document.getElementById("smsListingFeedback");c.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YSmsListingDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleSMSCancel}]);YSmsListingDialog.render();smsSent=true}};function smsRefreshCaptcha(){}function smsRefreshCaptcha2(){}function displaySMSPreview(a){var b=document.getElementById("smsPreview");b.innerHTML=a}function initSmsListing(){YSmsListingDialog=new YAHOO.widget.Dialog("smsListingDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YSmsListingDialog.cfg.setProperty("context",["sms_link","tl","br"]);YSmsListingDialog.callback.success=smsListingSubmitCallback;YSmsListingDialog.callback.failure=smsListingSubmitFailure;YSmsListingDialog.cfg.setProperty("postmethod","async",true);YSmsListingDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleSMSSubmit},{text:"Close",handler:handleSMSCancel}]);var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleSMSSubmit()},scope:YSmsListingDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YSmsListingDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YSmsListingDialog.cfg.queueProperty("keylisteners",a);smsInitialized=true;YSmsListingDialog.render()}var movieTheatreSmsMobNumber=0;var movieTheatreSmsInitialized=false;var movieTheatreSmsSent=false;var movieTheatrePrePopMobNum="";function smsMovieTheatreDetailsModalShow(l,d,g,e,b){if(!movieTheatreSmsInitialized){initSmsMovieTheatreDetails()}showMovieTheatreSMSPreview(l,d,g,e);var c=document.getElementById("smsMovieTheatreDetailsDlg");c.style.display="block";document.getElementById("smsMovieTheatreDetailsTable").style.display="block";var m=document.getElementById("smsMovieTheatreMobileNumber");if(b==0){m.value=movieTheatrePrePopMobNum}else{m.value=b;movieTheatrePrePopMobNum=b}var o=document.smsMovieTheatreDetailsDlgForm.movieId;o.value=l;var k=document.smsMovieTheatreDetailsDlgForm.theatreId;k.value=d;var f=document.smsMovieTheatreDetailsDlgForm.fr;f.value=g;var h=document.smsMovieTheatreDetailsDlgForm.nd;h.value=e;YSmsMovieTheatreDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMovieTheatreSMSSubmit},{text:"Close",handler:handleMovieTheatreSMSCancel}]);YSmsMovieTheatreDetailsDialog.render();var a=document.getElementById("smsMovieTheatreDetailsFeedback");a.style.display="none";var n=document.getElementById("smsMovieTheatreDetailsFeedbackCD");n.style.display="none";movieTheatreSmsSent=false;YSmsMovieTheatreDetailsDialog.show()}var movieTheatreSmsTimer=3;function movieTheatreSmsTimerCountDown(){if(movieTheatreSmsTimer>0){var a=document.getElementById("smsMovieTheatreDetailsFeedbackCD");a.innerHTML="This message will self destruct in "+movieTheatreSmsTimer+" seconds";movieTheatreSmsTimer=movieTheatreSmsTimer-1;var b=window.setTimeout("movieTheatreSmsTimerCountDown()",1000)}else{YSmsMovieTheatreDetailsDialog.hide();movieTheatreSmsTimer=3}}function showMovieTheatreSMSPreview(c,a,b,f){var d=createXHR();
var e=getContextPath()+"/SMSMovieTheatreDetailsPreview.do?movieId="+c+"&theatreId="+a+"&fr="+b+"&nd="+f;d.open("GET",e,true);d.onreadystatechange=function(){if(d.readyState==4){displayMovieTheatreSMSPreview(d.responseText)}};d.send(null)}function smsMovieTheatreDetailsSubmitCallback(c){var a=c.responseText;if(a=="Success"){movieTheatreSmsMobNumber=document.getElementById("smsMovieTheatreMobileNumber").value;document.smsMovieTheatreDetailsDlgForm.reset();var b=document.getElementById("smsMovieTheatreDetailsFeedback");b.style.display="";document.getElementById("smsMovieTheatreDetailsTable").style.display="none";b.innerHTML="The SMS with MovieTheatre details has been sent.";document.getElementById("smsMovieTheatreDetailsFeedbackCD").style.display="";movieTheatreSmsTimerCountDown()}else{if(a.indexOf("The mobile number can not be less than 10 characters.")!=-1){var b=document.getElementById("smsMovieTheatreDetailsFeedback");b.style.display="";b.innerHTML="Please enter a 10 digit mobile number";movieTheatreSmsSent=false;YSmsMovieTheatreDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMovieTheatreSMSSubmit},{text:"Close",handler:handleMovieTheatreSMSCancel}]);YSmsMovieTheatreDetailsDialog.render()}else{if(a.indexOf("Nice mobile number. But it is not valid. Try again.")!=-1){var b=document.getElementById("smsMovieTheatreDetailsFeedback");b.style.display="";movieTheatreSmsSent=false;b.innerHTML="Nice mobile number. But it is not valid. Try again.";YSmsMovieTheatreDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMovieTheatreSMSSubmit},{text:"Close",handler:handleMovieTheatreSMSCancel}]);YSmsMovieTheatreDetailsDialog.render()}else{if(a.indexOf("Boo Hoo. The SMS didn't go through.")!=-1){var b=document.getElementById("smsMovieTheatreDetailsFeedback");movieTheatreSmsSent=false;b.style.display="";b.innerHTML="Boo Hoo. The SMS didn't go through.";YSmsMovieTheatreDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMovieTheatreSMSSubmit},{text:"Close",handler:handleMovieTheatreSMSCancel}]);YSmsMovieTheatreDetailsDialog.render()}else{if(a.indexOf("Well, we're not allowed to send SMS to the specified number.")!=-1){var b=document.getElementById("smsMovieTheatreDetailsFeedback");movieTheatreSmsSent=false;b.style.display="";b.innerHTML="Well, we're not allowed to send SMS to the specified number.";YSmsMovieTheatreDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMovieTheatreSMSSubmit},{text:"Close",handler:handleMovieTheatreSMSCancel}]);YSmsMovieTheatreDetailsDialog.render()}else{if(a.indexOf("Could NOT send movieTheatreDetail SMS to")!=-1){var b=document.getElementById("smsMovieTheatreDetailsFeedback");movieTheatreSmsSent=false;b.style.display="";b.innerHTML="Sorry, Could NOT send movieTheatreDetail SMS";YSmsMovieTheatreDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMovieTheatreSMSSubmit},{text:"Close",handler:handleMovieTheatreSMSCancel}]);YSmsMovieTheatreDetailsDialog.render()}else{if(a.indexOf("Too many messages have been sent to this number recently. Please try again later!")!=-1){var b=document.getElementById("smsMovieTheatreDetailsFeedback");movieTheatreSmsSent=false;b.style.display="";b.innerHTML="Too many messages have been sent to this number recently. Please try again later!";YSmsMovieTheatreDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMovieTheatreSMSSubmit},{text:"Close",handler:handleMovieTheatreSMSCancel}]);YSmsMovieTheatreDetailsDialog.render()}else{if(a.indexOf("The word that you entered did not match the verification word. Please try again!")!=-1){var b=document.getElementById("smsMovieTheatreDetailsFeedback");movieTheatreSmsSent=false;b.style.display="";b.innerHTML="Tch. Tch. You did not enter the correct verification code. Please try again.";document.emailMovieTheatreDetailsDlgForm.captchaText.value="";YSmsMovieTheatreDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMovieTheatreSMSSubmit},{text:"Close",handler:handleMovieTheatreSMSCancel}]);YSmsMovieTheatreDetailsDialog.render()}}}}}}}}}function smsMovieTheatreDetailsSubmitFailure(a){alert("Oops, please try after some time")}function showMovieTheatreSMSModalError(b){var a=document.getElementById("smsMovieTheatreDetailsFeedback");a.style.display="";a.innerHTML=b+" cannot be empty"}var handleMovieTheatreSMSCancel=function(){this.cancel()};var handleMovieTheatreSMSSubmit=function(){if(movieTheatreSmsSent==true){return}var b=document.getElementById("smsMovieTheatreMobileNumber").value;movieTheatrePrePopMobNum=b;if(b==""){var a=document.getElementById("smsMovieTheatreDetailsFeedback");a.style.display="";a.innerHTML="To make it work, you need to enter a mobile number first."}else{YSmsMovieTheatreDetailsDialog.doSubmit();var c=document.getElementById("smsMovieTheatreDetailsFeedback");
c.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YSmsMovieTheatreDetailsDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleMovieTheatreSMSCancel}]);YSmsMovieTheatreDetailsDialog.render();movieTheatreSmsSent=true}};function displayMovieTheatreSMSPreview(a){var b=document.getElementById("smsPreview");b.innerHTML=a}function initSmsMovieTheatreDetails(){YSmsMovieTheatreDetailsDialog=new YAHOO.widget.Dialog("smsMovieTheatreDetailsDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YSmsMovieTheatreDetailsDialog.cfg.setProperty("context",["sms_link","tl","br"]);YSmsMovieTheatreDetailsDialog.callback.success=smsMovieTheatreDetailsSubmitCallback;YSmsMovieTheatreDetailsDialog.callback.failure=smsMovieTheatreDetailsSubmitFailure;YSmsMovieTheatreDetailsDialog.cfg.setProperty("postmethod","async",true);YSmsMovieTheatreDetailsDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleMovieTheatreSMSSubmit},{text:"Close",handler:handleMovieTheatreSMSCancel}]);var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleMovieTheatreSMSSubmit()},scope:YSmsMovieTheatreDetailsDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YSmsMovieTheatreDetailsDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YSmsMovieTheatreDetailsDialog.cfg.queueProperty("keylisteners",a);movieTheatreSmsInitialized=true;YSmsMovieTheatreDetailsDialog.render()}var smsOfferMobNumber=0;var smsOfferInitialized=false;var smsOfferSent=false;var prePopOfferMobNum="";function smsOfferModalShow(b,k,e,g,h,l){if(!smsOfferInitialized){initSmsOffer()}showOfferSMSPreview(k);var c=document.getElementById("smsOfferDlg");c.style.display="block";document.getElementById("smsOfferTable").style.display="block";var o=document.getElementById("smsOfferMobileNumber");if(b==0){o.value=prePopOfferMobNum}else{o.value=b;prePopOfferMobNum=b}var p=document.smsOfferDlgForm.offerId;p.value=k;var f=document.getElementById("offerSignature");f.value=e;var m=document.getElementById("offerTime");m.value=g;var d=document.getElementById("offerZoneId");d.value=h;var n=document.getElementById("offerClickId");n.value=l;document.smsOfferDlgForm.referer.value=encodeURIComponent(window.location.href);YSmsOfferDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleOfferSMSSubmit},{text:"Close",handler:handleOfferSMSCancel}]);YSmsOfferDialog.render();var a=document.getElementById("smsOfferFeedback");a.style.display="none";var q=document.getElementById("smsOfferFeedbackCD");q.style.display="none";smsOfferSent=false;if(document.smsOfferDlgForm.offerCaptchaShow.value==1){document.getElementById("offerCaptchaElements").style.display="none"}else{document.getElementById("offerCaptchaElements").style.display="block";offerSMSRefreshCaptcha(document.smsOfferDlgForm.captchaPath.value)}YSmsOfferDialog.show()}function offerSMSRefreshCaptcha(a){var b=document.getElementById("offerKaptchaImage");b.src=a+Math.floor(Math.random()*100);document.smsOfferDlgForm.captchaText.value=""}var smsOfferTimer=3;function smsOfferTimerCountDown(){if(smsOfferTimer>0){var a=document.getElementById("smsOfferFeedbackCD");a.innerHTML="This message will self destruct in "+smsOfferTimer+" seconds";smsOfferTimer=smsOfferTimer-1;var b=window.setTimeout("smsOfferTimerCountDown()",1000)}else{YSmsOfferDialog.hide();smsOfferTimer=3}}function showOfferSMSPreview(a){var b=createXHR();var c=getContextPath()+"/SmsOfferPreview/"+a+"/";b.open("GET",c,true);b.onreadystatechange=function(){if(b.readyState==4){displayOfferSMSPreview(b.responseText)}};b.send(null)}function displayOfferSMSPreview(a){var b=document.getElementById("smsOfferPreview");b.innerHTML=a}function smsOfferSubmitCallback(c){var a=c.responseText;if(a=="Success"){smsOfferMobNumber=document.getElementById("smsOfferMobileNumber").value;document.smsOfferDlgForm.reset();var b=document.getElementById("smsOfferFeedback");b.style.display="";document.getElementById("smsOfferTable").style.display="none";b.innerHTML="The SMS with offer details has been sent.";document.getElementById("smsOfferFeedbackCD").style.display="";document.smsOfferDlgForm.offerCaptchaShow.value=1;smsOfferTimerCountDown()}else{if(a.indexOf("The mobile number can not be less than 10 characters.")!=-1){var b=document.getElementById("smsOfferFeedback");b.style.display="";b.innerHTML="Please enter a 10 digit mobile number";smsOfferSent=false;YSmsOfferDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleOfferSMSSubmit},{text:"Close",handler:handleOfferSMSCancel}]);YSmsOfferDialog.render()}else{if(a.indexOf("Nice mobile number. But it is not valid. Try again.")!=-1){var b=document.getElementById("smsOfferFeedback");b.style.display="";smsOfferSent=false;b.innerHTML="Nice mobile number. But it is not valid. Try again.";YSmsOfferDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleOfferSMSSubmit},{text:"Close",handler:handleOfferSMSCancel}]);
YSmsOfferDialog.render()}else{if(a.indexOf("Boo Hoo. The SMS didn't go through.")!=-1){var b=document.getElementById("smsOfferFeedback");smsOfferSent=false;b.style.display="";b.innerHTML="Boo Hoo. The SMS didn't go through.";YSmsOfferDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleOfferSMSSubmit},{text:"Close",handler:handleOfferSMSCancel}]);YSmsOfferDialog.render()}else{if(a.indexOf("Well, we're not allowed to send SMS to the specified number.")!=-1){var b=document.getElementById("smsOfferFeedback");smsOfferSent=false;b.style.display="";b.innerHTML="Well, we're not allowed to send SMS to the specified number.";YSmsOfferDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleOfferSMSSubmit},{text:"Close",handler:handleOfferSMSCancel}]);YSmsOfferDialog.render()}else{if(a.indexOf("Too many messages have been sent to this number recently. Please try again later!")!=-1){var b=document.getElementById("smsOfferFeedback");smsOfferSent=false;b.style.display="";b.innerHTML="Too many messages have been sent to this number recently. Please try again later!";YSmsOfferDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleOfferSMSSubmit},{text:"Close",handler:handleOfferSMSCancel}]);YSmsOfferDialog.render()}else{if(a.indexOf("The word that you entered did not match the verification word. Please try again!")!=-1){var b=document.getElementById("smsOfferFeedback");smsOfferSent=false;b.style.display="";b.innerHTML="Tch. Tch. You did not enter the correct verification code. Please try again.";document.smsOfferDlgForm.captchaText.value="";YSmsOfferDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleOfferSMSSubmit},{text:"Close",handler:handleOfferSMSCancel}]);YSmsOfferDialog.render()}}}}}}}}function smsOfferSubmitFailure(a){alert("Oops, please try after some time")}function showOfferSMSModalError(b){var a=document.getElementById("smsOfferFeedback");a.style.display="";a.innerHTML=b+" cannot be empty"}var handleOfferSMSCancel=function(){this.cancel()};var handleOfferSMSSubmit=function(){if(smsOfferSent==true){return}var b=document.getElementById("smsOfferMobileNumber").value;prePopOfferMobNum=b;if(b==""){var a=document.getElementById("smsOfferFeedback");a.style.display="";a.innerHTML=" To make it work, you need to enter a mobile number first."}else{YSmsOfferDialog.doSubmit();var c=document.getElementById("smsOfferFeedback");c.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YSmsOfferDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleOfferSMSCancel}]);YSmsOfferDialog.render();smsOfferSent=true}};function smsRefreshCaptcha(){}function smsRefreshCaptcha2(){}function displayOfferSMSPreview(a){var b=document.getElementById("smsOfferPreview");b.innerHTML=a}function initSmsOffer(){YSmsOfferDialog=new YAHOO.widget.Dialog("smsOfferDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YSmsOfferDialog.cfg.setProperty("context",["sms_link","tl","br"]);YSmsOfferDialog.callback.success=smsOfferSubmitCallback;YSmsOfferDialog.callback.failure=smsOfferSubmitFailure;YSmsOfferDialog.cfg.setProperty("postmethod","async",true);YSmsOfferDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleOfferSMSSubmit},{text:"Close",handler:handleOfferSMSCancel}]);var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleOfferSMSSubmit()},scope:YSmsOfferDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YSmsOfferDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YSmsOfferDialog.cfg.queueProperty("keylisteners",a);smsOfferInitialized=true;YSmsOfferDialog.render()}var WAPLinkSmsMobNumber=0;var WAPLinkSmsInitialized=false;var WAPLinkSmsSent=false;var WAPLinkPrePopMobNum="";function smsWAPLinkModalShow(e){if(!WAPLinkSmsInitialized){initSmsWAPLink()}var c=document.getElementById("smsWAPLinkDlg");c.style.display="block";document.getElementById("smsWAPLinkTable").style.display="block";var a=document.getElementById("smsMobileNumber");if((e==0)||(e==undefined)){a.value=WAPLinkPrePopMobNum}else{a.value=e;WAPLinkPrePopMobNum=e}YSmsWAPLinkDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleWAPLinkSMSSubmit},{text:"Close",handler:handleWAPLinkSMSCancel}]);YSmsWAPLinkDialog.render();var d=document.getElementById("smsWAPLinkFeedback");d.style.display="none";var b=document.getElementById("smsWAPLinkFeedbackCD");b.style.display="none";WAPLinkSmsSent=false;YSmsWAPLinkDialog.show()}var WAPLinkSmsTimer=3;function WAPLinkSmsTimerCountDown(){if(WAPLinkSmsTimer>0){var a=document.getElementById("smsWAPLinkFeedbackCD");a.innerHTML="This message will self destruct in "+WAPLinkSmsTimer+" seconds";WAPLinkSmsTimer=WAPLinkSmsTimer-1;var b=window.setTimeout("WAPLinkSmsTimerCountDown()",1000)}else{YSmsWAPLinkDialog.hide();
WAPLinkSmsTimer=3}}function smsWAPLinkSubmitCallback(c){var a=c.responseText;if(a=="Success"){WAPLinkSmsMobNumber=document.getElementById("smsMobileNumber").value;document.smsWAPLinkDlgForm.reset();var b=document.getElementById("smsWAPLinkFeedback");b.style.display="";document.getElementById("smsWAPLinkTable").style.display="none";b.innerHTML="The SMS has been sent.";document.getElementById("smsWAPLinkFeedbackCD").style.display="";WAPLinkSmsTimerCountDown()}else{if(a.indexOf("The mobile number can not be less than 10 characters.")!=-1){var b=document.getElementById("smsWAPLinkFeedback");b.style.display="";b.innerHTML="Please enter a 10 digit mobile number";WAPLinkSmsSent=false;YSmsWAPLinkDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleWAPLinkSMSSubmit},{text:"Close",handler:handleWAPLinkSMSCancel}]);YSmsWAPLinkDialog.render()}else{if(a.indexOf("Nice mobile number. But it is not valid. Try again.")!=-1){var b=document.getElementById("smsWAPLinkFeedback");b.style.display="";WAPLinkSmsSent=false;b.innerHTML="Nice mobile number. But it is not valid. Try again.";YSmsWAPLinkDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleWAPLinkSMSSubmit},{text:"Close",handler:handleWAPLinkSMSCancel}]);YSmsWAPLinkDialog.render()}else{if(a.indexOf("Boo Hoo. The SMS didn't go through.")!=-1){var b=document.getElementById("smsWAPLinkFeedback");WAPLinkSmsSent=false;b.style.display="";b.innerHTML="Boo Hoo. The SMS didn't go through.";YSmsWAPLinkDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleWAPLinkSMSSubmit},{text:"Close",handler:handleWAPLinkSMSCancel}]);YSmsWAPLinkDialog.render()}else{if(a.indexOf("Well, we're not allowed to send SMS to the specified number.")!=-1){var b=document.getElementById("smsWAPLinkFeedback");WAPLinkSmsSent=false;b.style.display="";b.innerHTML="Well, we're not allowed to send SMS to the specified number.";YSmsWAPLinkDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleWAPLinkSMSSubmit},{text:"Close",handler:handleWAPLinkSMSCancel}]);YSmsWAPLinkDialog.render()}else{if(a.indexOf("Too many messages have been sent to this number recently. Please try again later!")!=-1){var b=document.getElementById("smsWAPLinkFeedback");WAPLinkSmsSent=false;b.style.display="";b.innerHTML="Too many messages have been sent to this number recently. Please try again later!";YSmsWAPLinkDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleWAPLinkSMSSubmit},{text:"Close",handler:handleWAPLinkSMSCancel}]);YSmsWAPLinkDialog.render()}else{if(a.indexOf("The word that you entered did not match the verification word. Please try again!")!=-1){var b=document.getElementById("smsWAPLinkFeedback");WAPLinkSmsSent=false;b.style.display="";b.innerHTML="Tch. Tch. You did not enter the correct verification code. Please try again.";document.smsWAPLinkDlgForm.captchaText.value="";YSmsWAPLinkDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleWAPLinkSMSSubmit},{text:"Close",handler:handleWAPLinkSMSCancel}]);YSmsWAPLinkDialog.render()}}}}}}}}function smsWAPLinkSubmitFailure(a){alert("Oops, please try after some time")}function showWAPLinkSMSModalError(a){var b=document.getElementById("smsWAPLinkFeedback");b.style.display="";b.innerHTML=a+" cannot be empty"}var handleWAPLinkSMSCancel=function(){this.cancel()};var handleWAPLinkSMSSubmit=function(){if(WAPLinkSmsSent==true){return}var b=document.getElementById("smsMobileNumber").value;WAPLinkPrePopMobNum=b;if(b==""){var a=document.getElementById("smsWAPLinkFeedback");a.style.display="";a.innerHTML=" To make it work, you need to enter a mobile number first."}else{YSmsWAPLinkDialog.doSubmit();var c=document.getElementById("smsWAPLinkFeedback");c.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YSmsWAPLinkDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handleWAPLinkSMSCancel}]);YSmsWAPLinkDialog.render();WAPLinkSmsSent=true}};function initSmsWAPLink(){YSmsWAPLinkDialog=new YAHOO.widget.Dialog("smsWAPLinkDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YSmsWAPLinkDialog.cfg.setProperty("context",["sms_link","tl","br"]);YSmsWAPLinkDialog.callback.success=smsWAPLinkSubmitCallback;YSmsWAPLinkDialog.callback.failure=smsWAPLinkSubmitFailure;YSmsWAPLinkDialog.cfg.setProperty("postmethod","async",true);YSmsWAPLinkDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handleWAPLinkSMSSubmit},{text:"Close",handler:handleWAPLinkSMSCancel}]);var c=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){handleWAPLinkSMSSubmit()},scope:YSmsWAPLinkDialog,correctScope:true});var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YSmsWAPLinkDialog,correctScope:true});var a=new Array();a.push(c);a.push(b);YSmsWAPLinkDialog.cfg.queueProperty("keylisteners",a);
WAPLinkSmsInitialized=true;YSmsWAPLinkDialog.render()}var wrongOwnerInitialized=false;function wrongOwnerModalShow(){if(!wrongOwnerInitialized){initWrongOwner2()}var b=document.getElementById("wrongOwnerDlg");b.style.display="block";document.getElementById("wrongOwnerTable").style.display="block";YwrongOwnerDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handlewrongOwnerSubmit},{text:"Close",handler:handlewrongOwnerCancel}]);YwrongOwnerDialog.render();var a=document.getElementById("wrongOwnerfeedback");a.style.display="none";var a=document.getElementById("wrongOwnerfeedbackCD");a.style.display="none";YwrongOwnerDialog.show()}function initWrongOwnerURL(){var b=window.location.href;var a=document.getElementById("wrongOwnerurl");wrongOwnerSubject=b;if(document.getElementById("wrongOwnerurl")!=null){document.getElementById("wrongOwnerurl").value=wrongOwnerSubject}}var wrongOwnerModalTimer=3;function wrongOwnerModalTimerCountDown(){if(wrongOwnerModalTimer>0){var a=document.getElementById("wrongOwnerfeedbackCD");a.innerHTML="This message will self destruct in "+wrongOwnerModalTimer+" seconds";wrongOwnerModalTimer=wrongOwnerModalTimer-1;var b=window.setTimeout("wrongOwnerModalTimerCountDown()",1000)}else{YwrongOwnerDialog.hide();wrongOwnerModalTimer=3}}function wrongOwnerSubmitCallback(c){var a=c.responseText;if(a=="Success"){document.wrongOwnerDlgForm.reset();var b=document.getElementById("wrongOwnerfeedback");b.innerHTML="Laila is always happy to hear what you have to say. Thanks.";b.style.display="";document.getElementById("wrongOwnerTable").style.display="none";document.getElementById("wrongOwnerfeedbackCD").style.display="";wrongOwnerModalTimerCountDown()}else{if(a.indexOf("Feeling shy or what? Come on. Enter your real email id")!=-1){var b=document.getElementById("wrongOwnerfeedback");b.style.display="";b.innerHTML="Feeling shy or what? Come on. Enter your real email id";YwrongOwnerDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handlewrongOwnerSubmit},{text:"Close",handler:handlewrongOwnerCancel}]);YwrongOwnerDialog.render();document.getElementById("wrongOwnerTable").style.display=""}}}function wrongOwnerSubmitFailure(a){alert("Oops, please try after some time")}function showwrongOwnerModalError(a){var b=document.getElementById("wrongOwnerfeedback");b.innerHTML=a+" cannot be empty";b.style.display=""}var handlewrongOwnerCancel=function(){this.cancel()};var handlewrongOwnerSubmit=function(){var a=document.getElementById("wrongOwnerBody");if(isEmpty(a)){showwrongOwnerModalError("Body")}else{YwrongOwnerDialog.doSubmit();var b=document.getElementById("wrongOwnerfeedback");b.style.display="";b.innerHTML="<IMG SRC='/webres/img/loading.gif'>";YwrongOwnerDialog.cfg.queueProperty("buttons",[{text:"Close",handler:handlewrongOwnerCancel}]);YwrongOwnerDialog.render()}};function initWrongOwner2(){initWrongOwnerURL();YwrongOwnerDialog=new YAHOO.widget.Dialog("wrongOwnerDlg",{modal:true,visible:false,width:"330px",fixedcenter:true,constraintoviewport:true,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});YwrongOwnerDialog.callback.success=wrongOwnerSubmitCallback;YwrongOwnerDialog.callback.failure=wrongOwnerSubmitFailure;YwrongOwnerDialog.cfg.setProperty("postmethod","async",true);YwrongOwnerDialog.cfg.queueProperty("buttons",[{text:"Submit",id:"submitButton",handler:handlewrongOwnerSubmit},{text:"Close",handler:handlewrongOwnerCancel}]);var b=new YAHOO.util.KeyListener(document,{keys:27},{fn:function(){this.hide()},scope:YwrongOwnerDialog,correctScope:true});var a=new Array();a.push(b);YwrongOwnerDialog.cfg.queueProperty("keylisteners",a);wrongOwnerInitialized=true;YwrongOwnerDialog.render()};
