//****** Advanced DHTML Popup Pro Version 2.470.0117.207.024,  Build: 166 ******

// Copyright (c) Digital Flow Software 2005-2009
// The present javascript code is property of Digital Flow Software.
// This code can only be used inside Internet/Intranet web sites located on *web servers*, as the outcome of a licensed Advanced DHTML Popup application only. 
// This code *cannot* be used inside distributable implementations (such as demos, applications or CD-based webs), unless this implementation is licensed with an "Advanced DHTML Popup License for Distributed Applications". 
// Any unauthorized use, reverse-engineering, alteration, transmission, transformation, facsimile, or copying of any means (electronic or not) is strictly prohibited and will be prosecuted.
// ***Removal of the present copyright notice is strictly prohibited***

var df,rf=false,na=navigator.userAgent,dt=document,op=(na.indexOf('Opera')!=-1),dm=(dt.getElementById)?true:false,ie5x=(dt.all&&dm),mci=(na.indexOf('Mac')!=-1);df=((ie5x||op)&&mci);decide();function decide(){if(df){return;}else{rf=true;}}
if(rf){
function initADP(){bdf=0;
// *** Begin advanced user scripting area ***
   htmlstring="<table width=\"98%\" align=\"center\"> <tr valign=\"top\">  <td style=\"height: 440px; font-size: 13px; text-align: center; font-family: arial, helvetica\"> Be the first to hear about the latest offers and promotions from local business's. <br/> Subscribe to our newsletters using the form below.  <br/><br/>   <div style=\"position:absolute;top:0px;left:0px;\">&nbsp;</div><script defer language=\"Javascript\" type=\"text/javascript\">  function checkform() {   for (i=0;i<fieldstocheck.length;i++) {     if (eval(\"document.subscribeform.elements['\"+fieldstocheck[i]+\"'].type\") == \"checkbox\") {       if (document.subscribeform.elements[fieldstocheck[i]].checked) {       } else {         alert(\"Please enter your \"+fieldnames[i]);         eval(\"document.subscribeform.elements['\"+fieldstocheck[i]+\"'].focus()\");         return false;       }     }     else {       if (eval(\"document.subscribeform.elements['\"+fieldstocheck[i]+\"'].value\") == \"\") {         alert(\"Please enter your \"+fieldnames[i]);         eval(\"document.subscribeform.elements['\"+fieldstocheck[i]+\"'].focus()\");         return false;       }     }   }   for (i=0;i<groupstocheck.length;i++) {     if (!checkGroup(groupstocheck[i],groupnames[i])) {       return false;     }   }      return true; }  var fieldstocheck = new Array(); var fieldnames = new Array(); function addFieldToCheck(value,name) {   fieldstocheck[fieldstocheck.length] = value;   fieldnames[fieldnames.length] = name; } var groupstocheck = new Array(); var groupnames = new Array(); function addGroupToCheck(value,name) {   groupstocheck[groupstocheck.length] = value;   groupnames[groupnames.length] = name; }  function compareEmail() {   return (document.subscribeform.elements[\"email\"].value == document.subscribeform.elements[\"emailconfirm\"].value); } function checkGroup(name,value) {   option = -1;   for (i=0;i<document.subscribeform.elements[name].length;i++) {     if (document.subscribeform.elements[name][i].checked) {       option = i;     }   }   if (option == -1) {     alert (\"Please enter your \"+value);     return false;   }   return true; }  </script>  <form method=\"post\" action=\"http://www.shoppingguides.com.au/lists/?p=subscribe&id=1\"> <input type=\"hidden\" name=\"list[1]\" value=signup> <table border=0>   <tr><td><div style=\"font-size: 13px\">Email</div></td>   <td class=\"attributeinput\"><input type=text name=email value=\"\" size=\"25\">   <div style=\"position:absolute;top:0px;left:0px;\">&nbsp;</div><script defer language=\"Javascript\" type=\"text/javascript\">addFieldToCheck(\"email\",\"Email\");</script></td></tr><input type=hidden name=\"htmlemail\" value=\"1\">  <tr><td><div style=\"font-size: 13px\">First Name</div></td><td class=\"attributeinput\">             <input type=text name=\"attribute1\"  class=\"attributeinput\" size=\"25\" value=\"\"><div style=\"position:absolute;top:0px;left:0px;\">&nbsp;</div><script defer language=\"Javascript\" type=\"text/javascript\">addFieldToCheck(\"attribute1\",\"First Name\");</script></td></tr>  <tr><td><div style=\"font-size: 13px\">Last Name</div></td><td class=\"attributeinput\">             <input type=text name=\"attribute2\"  class=\"attributeinput\" size=\"25\" value=\"\"><div style=\"position:absolute;top:0px;left:0px;\">&nbsp;</div><script defer language=\"Javascript\" type=\"text/javascript\">addFieldToCheck(\"attribute2\",\"Last Name\");</script></td></tr> </table> <input type=hidden name=\"listname[2]\" value=\"Chatswood Shopping Guide\"/> <p><input type=submit name=\"subscribe\" value=\"Subscribe\" onClick=\"return checkform();\"></p>     </form>"
   new adp("emailform",htmlstring,"Subscribe to our Newsletter for hot offers!");
   if(isc)return;
   adpDropin('emailform');adpShow('emailform');
// *** End advanced user scripting area ***
}
initADP();
}
