
				//<![CDATA[
         function pageLoad() {
              //if the cookie exist, check if it is older than 30 days,
             //if so, prompt the survey, otherwise do nothing
             // 1 second = 1000 mls, 1 mins = 60,000, 3 min = 180,000,  10 mins = 600,000
             var ip = document.getElementById('txtIPAddress').value;

             if (ip != "69.42.178.105" ) {


                 if (checkCookie() == false) {
                     var randomNumber = 3 * 60000;
                     setTimeout(function() { window.open("http://www.tbdhu.com/tbdhuForms/Survey.aspx", "Survey", "height=450,width=680,status=no,toolbar=no,menubar=no,location=no, resizable=no, scrollbars=no, top=250, left=200"); }, 180000);
                     tbdhu = 'tbdhu';
                     setCookie('tbdhu', tbdhu, 30);

                 }
             }

         }
       
         function getCookie(c_name) {
             if (document.cookie.length > 0) {
                 c_start = document.cookie.indexOf(c_name + "=");
                 if (c_start != -1) {
                     c_start = c_start + c_name.length + 1;
                     c_end = document.cookie.indexOf(";", c_start);
                     if (c_end == -1) c_end = document.cookie.length;
                     return unescape(document.cookie.substring(c_start, c_end));
                 }
             }
             return "";
         }

       
         
         function setCookie(c_name, value, expiredays) 
         {
 
             var exdate = new Date();
             exdate.setDate(exdate.getDate() + expiredays);
             document.cookie = c_name + "=" + escape(value) +
            ((expiredays == null) ? "" : ";expires=" + exdate.toUTCString());
         }

         function checkCookie() {
             tbdhu = getCookie('tbdhu');
             if (tbdhu != null && tbdhu != "") {
                 return true;
             }
             else 
             {
                 return false;
             }
         }

            //>
