'.$error_message.''; ?> String.prototype.trim = function() { a = this.replace(/^\s+/, ''); return a.replace(/\s+$/, ''); }; function ValidateForm(){ var str=document.leadform.email.value; var lname = document.leadform.lastname.value; var company = document.leadform.company.value; if(lname.trim() == ''){ alert("Last name required.."); return false; }else if(company.trim() == ''){ alert("Company name required .. "); return false; } if((str.lastIndexOf(".") > 2) && (str.indexOf("@") > 0) && (str.lastIndexOf(".") > (str.indexOf("@")+1)) || (str=='')) document.leadform.submit(); else alert('Invalid Email Id'); } h3{margin:0; font-size: 14px;} hr{color: #EEE; background-color: #EEE; margin: 0; height:1px; } body { color: #333333; font-size: 11px; font-family: verdana, sans-serif } table#perfect { background-color: #F5F5F5; border: 1px solid #CCC;} table#perfect caption { color: yellow; font-size: 110%; font-weight: bold; background-color: black; padding: 3px; margin-left: auto; margin-right: auto } table#perfect th { text-align: right; font-weight: bold } table#perfect div { text-align: center; margin-top: 6px } table#perfect span { float: right; font-size: 65% } table#perfect a { color: darkslategray; text-decoration: none } input.click { cursor: pointer } First Name:* | |
---|
Last Name:* | | Your E-Mail: | | Phone: | | Company:* | | Country: | | Description: | <?php echo $_POST['description']?> | |
|