var hostName = 'DOMAIN_PATH'; var currentPage = ''; function onLoadCommonFunction() { //MM_preloadImages('ADMIN_IMAGE_LINK/slide_right.jpg'); } function popupWindow(path, where, hite, wide){ if (window.event){ window.event.returnValue = false; } var width; var height; var imgWidth; var imgHeight; if (screen.width'; } function deleteConfirmRecord(path, toDelete){ if(confirm('Are you sure to delete this '+toDelete+'?')){ location.href=''+path+''; } else{ return false; } } function changeIconColor(ID){ var $obj = document.getElementById(ID); $obj.className = 'menu_link_txt_hover'; } function restoreIconColor(ID){ var $obj = document.getElementById(ID); $obj.className = 'icon_box'; } function changeIconColor1(ID){ var $obj = document.getElementById(ID); $obj.className = 'menu_link_txt_hover1'; } function restoreIconColor1(ID){ var $obj = document.getElementById(ID); $obj.className = 'icon_box'; } function newsletter_check(){ if(document.newsletter.name.value == "") { document.newsletter.name.focus(); alert("Please enter Name"); return false; } if(document.newsletter.newsemail.value == "") { document.newsletter.newsemail.focus(); alert("Please enter email Address"); return false; } if(document.newsletter.newsemail.value != "") { var str=document.newsletter.newsemail.value ; var er=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if(!er.test(str)) { document.newsletter.newsemail.focus(); alert("Please enter your valied email address"); return false; } } } function changePropertyType(frmName) { if(document.forms[frmName].elements['property_type'].options[document.forms[frmName].elements['property_type'].selectedIndex].value =="Other") { document.getElementById('PropertyType').style.display = ''; } else if(document.forms[frmName].elements['property_type'].options[document.forms[frmName].elements['property_type'].selectedIndex].value =="") { document.getElementById('PropertyType').style.display = 'none'; } else { document.getElementById('PropertyType').style.display = 'none'; } } function changeAboutFigure(frmName) { if(document.forms[frmName].elements['about_figure'].options[document.forms[frmName].elements['about_figure'].selectedIndex].value =="Other") { document.getElementById('aboutfigure').style.display = ''; } else if(document.forms[frmName].elements['about_figure'].options[document.forms[frmName].elements['about_figure'].selectedIndex].value =="") { document.getElementById('aboutfigure').style.display = 'none'; } else { document.getElementById('aboutfigure').style.display = 'none'; } }