function textboxFocus(item) { item.style.backgroundColor = "#FFF5EE";}function textboxBlur(item) { item.style.backgroundColor = "#FFEEBB";}function formButtonClicked() {var validInput = true;var fname = document.getElementById('fname').value;if (fname.length < 1) {validInput = false;document.getElementById('fnameStar').style.color = '#FF0000';document.getElementById('fname').style.backgroundColor = '#FFDDDD';}else {document.getElementById('fnameStar').style.color = '#000000';document.getElementById('fname').style.backgroundColor = '#FFEEBB';}var customField1 = document.getElementById('customField1').value;if (customField1.length < 1) {validInput = false;document.getElementById('customField1Star').style.color = '#FF0000';document.getElementById('customField1').style.backgroundColor = '#FFDDDD';}else {document.getElementById('customField1Star').style.color = '#000000';document.getElementById('customField1').style.backgroundColor = '#FFEEBB';}var customField2 = document.getElementById('customField2').value;if (customField2.length < 1) {validInput = false;document.getElementById('customField2Star').style.color = '#FF0000';document.getElementById('customField2').style.backgroundColor = '#FFDDDD';}else {document.getElementById('customField2Star').style.color = '#000000';document.getElementById('customField2').style.backgroundColor = '#FFEEBB';}var customField3 = document.getElementById('customField3').value;if (customField3.length < 1) {validInput = false;document.getElementById('customField3Star').style.color = '#FF0000';document.getElementById('customField3').style.backgroundColor = '#FFDDDD';}else {document.getElementById('customField3Star').style.color = '#000000';document.getElementById('customField3').style.backgroundColor = '#FFEEBB';}var customField4 = document.getElementById('customField4').value;if (customField4.length < 1) {validInput = false;document.getElementById('customField4Star').style.color = '#FF0000';document.getElementById('customField4').style.backgroundColor = '#FFDDDD';}else {document.getElementById('customField4Star').style.color = '#000000';document.getElementById('customField4').style.backgroundColor = '#FFEEBB';}var customField5 = document.getElementById('customField5').value;if (customField5.length < 1) {validInput = false;document.getElementById('customField5Star').style.color = '#FF0000';document.getElementById('customField5').style.backgroundColor = '#FFDDDD';}else {document.getElementById('customField5Star').style.color = '#000000';document.getElementById('customField5').style.backgroundColor = '#FFEEBB';}var company = document.getElementById('company').value;if (company.length < 1) {validInput = false;document.getElementById('companyStar').style.color = '#FF0000';document.getElementById('company').style.backgroundColor = '#FFDDDD';}else {document.getElementById('companyStar').style.color = '#000000';document.getElementById('company').style.backgroundColor = '#FFEEBB';}var subject = document.getElementById('subject').value;if (subject == '0') {validInput = false;document.getElementById('subjectStar').style.color = '#FF0000';document.getElementById('subject').style.backgroundColor = '#FFDDDD';}else {document.getElementById('subjectStar').style.color = '#000000';document.getElementById('subject').style.backgroundColor = '#FFEEBB';}var lname = document.getElementById('lname').value;if (lname.length < 1) {validInput = false;document.getElementById('lnameStar').style.color = '#FF0000';document.getElementById('lname').style.backgroundColor = '#FFDDDD';}else {document.getElementById('lnameStar').style.color = '#000000';document.getElementById('lname').style.backgroundColor = '#FFEEBB';}var validEmail = true;var email = document.getElementById('email').value;validEmail = (email.indexOf('.') > 0) && (email.indexOf('@') > 0);if (email.length < 1) {validInput = false;}if (email.length < 1 || !validEmail) {document.getElementById('emailStar').style.color = '#FF0000';document.getElementById('email').style.backgroundColor = '#FFDDDD';}else {document.getElementById('emailStar').style.color = '#000000';document.getElementById('email').style.backgroundColor = '#FFEEBB';}if (!validInput || !validEmail) { if (!validEmail && validInput) {alert('The email address you typed in is not valid.');}else {alert('Form is not complete. Please complete items marked in red.');}}else {if (document.getElementById('webPastiesForm') == null) {alert('Please remove the existing
");