function checkform(frm_id) {
   var frm = document.getElementById(frm_id);

   if (!frm.name.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter your First Name.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.name.focus();
      return false;
   }

   if (!frm.surnname.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter your Last Name.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.surnname.focus();
      return false;
   }

   if (!frm.mail.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter your E-mail Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
    frm.mail.focus();
      return false;
   }

   adresse = frm.mail.value;
   var place = adresse.indexOf("@",1);
   var point = adresse.indexOf(".",place+1);

   if ((place > -1)&&(adresse.length >2)&&(point > 1)) {

   } else {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter valid E-mail Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
   alert('Please enter valid E-mail Address');
        frm.mail.focus();
        return false;
   }
   return true;
}

function checkcontact(frm_id) {
   var frm = document.getElementById(frm_id);
  
   if (!frm.name.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter Name.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.name.focus();
      return false;
   }

   if (!frm.email.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter Email Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.email.focus();
      return false;
   }

   adresse = frm.email.value;
   var place = adresse.indexOf("@",1);
   var point = adresse.indexOf(".",place+1);

   if ((place > -1)&&(adresse.length >2)&&(point > 1)) {

   } else {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter valid Email Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
        frm.email.focus();
        return false;
   }

   displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Thank you! The message was successfully sent!</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
   return true;
   
}


function checkFeedback(frm_id) {
   var frm = document.getElementById(frm_id);
  
   if (!frm.name.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter Name.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.name.focus();
      return false;
   }

   if (!frm.contact_phone.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter Phone Number.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.contact_phone.focus();
      return false;
   }

   if (frm.email.value) {
      adresse = frm.email.value;
      var place = adresse.indexOf("@",1);
      var point = adresse.indexOf(".",place+1);

      if ((place > -1)&&(adresse.length >2)&&(point > 1)) {

      } else {
         displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter valid Email Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
           frm.email.focus();
           return false;
      }
   }


   if (!frm.address.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter your Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.address.focus();
      return false;
   }

   if (!frm.city.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter your City.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.city.focus();
      return false;
   }

   displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Thank you! The message was successfully sent!</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
   return true;
   
}


function checkSchedule(frm_id) {
   var frm = document.getElementById(frm_id);
  
   if (!frm.name.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter Name.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.name.focus();
      return false;
   }

   if (!frm.contact_phone.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter home phone.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.contact_phone.focus();
      return false;
   }

   if (!frm.email.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter Email Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.email.focus();
      return false;
   }

   adresse = frm.email.value;
   var place = adresse.indexOf("@",1);
   var point = adresse.indexOf(".",place+1);

   if ((place > -1)&&(adresse.length >2)&&(point > 1)) {

   } else {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter valid Email Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
        frm.email.focus();
        return false;
   }


   if (!frm.address.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter your Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.address.focus();
      return false;
   }

   if (!frm.city.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter your City.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.city.focus();
      return false;
   }

   displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Thank you! The message was successfully sent!</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
   return true;
   
}

function checkRequest(frm_id) {
   var frm = document.getElementById(frm_id);
  
   if (!frm.name.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter Name.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.name.focus();
      return false;
   }

   if (!frm.contact_phone.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter home phone.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.contact_phone.focus();
      return false;
   }

   if (!frm.email.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter Email Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.email.focus();
      return false;
   }

   adresse = frm.email.value;
   var place = adresse.indexOf("@",1);
   var point = adresse.indexOf(".",place+1);

   if ((place > -1)&&(adresse.length >2)&&(point > 1)) {

   } else {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter valid Email Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
        frm.email.focus();
        return false;
   }


   if (!frm.address.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter your Address.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.address.focus();
      return false;
   }

   if (!frm.city.value) {
      displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Please enter your City.</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
      frm.city.focus();
      return false;
   }

   displayStaticMessage('<table border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'433px\'><colgroup width=\'8px\'/><colgroup width=\'415px\'/><colgroup width=\'9px\'/><tr style=\'height:8px; line-height:8px;\'><td colspan=\'3\' class=\'mD_back_t\'>&nbsp;</td></tr><tr style=\'height:181px\'><td class=\'mD_back_l\'>&nbsp;</td><td class=\'mD_back_c\'valign=\'top\'><table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'410px\'><tr height=\'35px\' valign=\'middle\'><td align=\'left\' class=\'mes_title\'>House Smart</td><td align=\'right\'><a onclick=\'closeMessage();return false\' href=\'#\' class=\'modalDialog_a\'><img src=\'images/cancel_btn.gif\' border=\'0\'/></a></td></tr><tr height=\'140px\'><td align=\'center\'  width=\'400\' valign=\'middle\' class=\'mes_text\' colspan=\'2\'>Thank you! The message was successfully sent!</td></tr></table></td><td class=\'mD_back_r\'>&nbsp;</td></tr><tr style=\'height:9px; line-height:9px;\'><td colspan=\'3\' class=\'mD_back_b\'>&nbsp;</td></tr></table>', false);
   return true;
   
}

function getCookie(name) {
  var cookie = " " + document.cookie;
  var search = " " + name + "=";
  var setStr = null;
  var offset = 0;
  var end = 0;
  if (cookie.length > 0) {
    offset = cookie.indexOf(search);
    if (offset != -1) {
      offset += search.length;
      end = cookie.indexOf(";", offset)
      if (end == -1) {
        end = cookie.length;
      }
      setStr = unescape(cookie.substring(offset, end));
    }
  }
  return(setStr);
}
