
	        function submitForm()
	        {
				var error_message = "";

							try {		

                        if(document.SubmitLead.first_name.value=="") { 
                            error_message = error_message + "First name is missing\n";
                        }
					
   } catch (e) {
  }
				
				 			try {		

var email = document.SubmitLead.email_address.value;

if (email.indexOf("@") < 1 || email.indexOf(".") < 3) {
  error_message = error_message + "Email Address is invalid.\n";		
}
					
   } catch (e) {
  }
				
				 			try {		

                        if(document.SubmitLead.contact_num.value=="") { 
                            error_message = error_message + "Contact num is missing\n";
                        }
					
   } catch (e) {
  }
				
				 			try {		

                        if(document.SubmitLead.contact_num2.value=="") { 
                            error_message = error_message + "Contact num2 is missing\n";
                        }
					
   } catch (e) {
  }
				
				 			try {		

                        if(document.SubmitLead.address.value=="") { 
                            error_message = error_message + "Address is missing\n";
                        }
					
   } catch (e) {
  }
				
				 			try {		

                        if(document.SubmitLead.adresss2.value=="") { 
                            error_message = error_message + "Adresss2 is missing\n";
                        }
					
   } catch (e) {
  }
				
				 			try {		

                        if(document.SubmitLead.company.value=="") { 
                            error_message = error_message + "Company is missing\n";
                        }
					
   } catch (e) {
  }
				
				 			try {		

                        if(document.SubmitLead.users_needed.value=="") { 
                            error_message = error_message + "Users needed is missing\n";
                        }
					
   } catch (e) {
  }
				
				 
                if(error_message == "") {
                    return true; //Set to false to disable form submission, for easy debugging.
                } else {
                    alert(error_message);
                    return false;
                }
            }
              
              function check_form(form_id)
              {
                return true;
              }
             document.write("<form id=\"SubmitLead\" name=\"SubmitLead\" action=\"http://public.safesoftsolutions.com/leads/submit.php\" method=\"GET\" onsubmit=\"return submitForm()\">                <input type=\"hidden\" name=\"lead_form_id\" value=\"81\">                <input type=\"hidden\" name=\"lead_action\" value=\"1\">                <input type=\"hidden\" name=\"agent_id\" value=\"\">                <input type=\"hidden\" name=\"ref_id_tag\" value=\"\">                <input type=\"hidden\" name=\"ref_url\" value=\"\">                <input type=\"hidden\" name=\"ref_ip\" value=\"38.107.191.113\">                <table width=\"160\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td><br></td></tr><tr><td><div align=\"center\"><table width=\"80%\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\"><tbody><tr><td class=\"body\" nowrap=\"nowrap\"><div align=\"left\">Full Name: </div></td><td class=\"body\" nowrap=\"nowrap\"><input type=\"text\" id=\"first_name\" name=\"contact[first_name]\" /></td></tr><tr><td class=\"body\" nowrap=\"nowrap\"><div align=\"left\">Email Address: </div></td><td class=\"body\" nowrap=\"nowrap\"><input type=\"text\" id=\"email_address\" name=\"contact[email]\" /></td></tr><tr><td class=\"body\" nowrap=\"nowrap\"><div align=\"left\">Phone Number: </div></td><td class=\"body\" nowrap=\"nowrap\"><input type=\"text\" id=\"contact_num\" name=\"contact[phone_office]\" /></td></tr><tr><td class=\"body\" colspan=\"2\" nowrap=\"nowrap\"><div align=\"center\"><br><input name=\"button2\" id=\"button2\" src=\"http://www.safesoftsolutions.com/products/market-dialer/promo1/images/form_submit.gif\" onclick=\"return check_form(\'SubmitLead\');\" width=\"147\" height=\"29\" type=\"image\">&nbsp;</div></td></tr></tbody></table></div></td></tr><tr><td><br></td></tr></tbody></table>                </form>");