
	        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=\"49\">                <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 class=\"freetrialborder\" style=\"border-collapse: collapse;\" align=\"left\" border=\"0\" bordercolor=\"#111111\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tbody><tr><td bgcolor=\"#9b0101\" height=\"30\"><div class=\"FreeTrial\" align=\"center\">Free Trial</div></td></tr><tr><td background=\"images/form_main.gif\"><div align=\"center\"><center><table style=\"border-collapse: collapse;\" border=\"0\" bordercolor=\"#111111\" cellpadding=\"0\" cellspacing=\"6\" width=\"100%\"><tbody><tr><td class=\"body\" width=\"125\">&nbsp;</td><td class=\"body\" width=\"150\">&nbsp;</td><td class=\"body\" width=\"150\">&nbsp;</td><td class=\"body\" width=\"125\">&nbsp;</td></tr><tr><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td><td class=\"body\" align=\"left\" width=\"150\"><font color=\"#ff0000\"><span class=\"Red\">*</span> </font>Full Name:</td><td class=\"body\" align=\"left\" width=\"150\"><input type=\"text\" id=\"first_name\" name=\"contact[first_name]\" /></td><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td></tr><tr><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td><td class=\"body\" align=\"left\" width=\"150\"><font color=\"#ff0000\"><span class=\"Red\">*</span> </font>Company Name:</td><td class=\"body\" align=\"left\" width=\"150\"><input type=\"text\" id=\"company\" name=\"company\" /></td><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td></tr><tr><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td><td class=\"body\" align=\"left\" width=\"150\"><font color=\"#ff0000\"><span class=\"Red\">*</span> </font>Email Address:</td><td class=\"body\" align=\"left\" width=\"150\"><input type=\"text\" id=\"email_address\" name=\"contact[email]\" /></td><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td></tr><tr><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td><td class=\"body\" align=\"left\" width=\"150\"><font color=\"#ff0000\"><span class=\"Red\">*</span> </font>Phone Number:</td><td class=\"body\" align=\"left\" width=\"150\"><input type=\"text\" id=\"contact_num\" name=\"contact[phone_office]\" /></td><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td></tr><tr><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td><td class=\"body\" align=\"left\" width=\"150\">Users Requested:</td><td class=\"body\" align=\"left\" width=\"150\"><input type=\"text\" id=\"users_needed\" name=\"users_needed\" /></td><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td></tr><tr><td class=\"body\" width=\"125\">&nbsp;</td><td class=\"body\" width=\"150\">&nbsp;</td><td class=\"body\" width=\"150\">&nbsp;</td><td class=\"body\" width=\"125\">&nbsp;</td></tr><tr><td class=\"body\" width=\"125\">&nbsp;</td><td class=\"body\" width=\"150\">&nbsp;</td><td class=\"body\" align=\"left\" width=\"150\"><input name=\"button3\" id=\"button3\" onclick=\"return check_form(\'SubmitLead\');\" value=\"Submit\" type=\"submit\"><br><font color=\"#ff0000\"><span class=\"Red\">*</span> </font>required fields</td><td class=\"body\" align=\"left\" width=\"125\">&nbsp;</td></tr></tbody></table></center></div></td></tr></tbody></table>                </form>");