function textboxFocus(item) { item.style.backgroundColor = "#FFFFFF";}function textboxBlur(item) { item.style.backgroundColor = "#FFFFFF";}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 = '#FFFFFF';}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 = '#FFFFFF';}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 = '#FFFFFF';}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 = '#FFFFFF';}var dropdownField1 = document.getElementById('dropdown1').value;if (dropdownField1.length < 1) {validInput = false;document.getElementById('dropdownField1Star').style.color = '#FF0000';document.getElementById('dropdown1').style.backgroundColor = '#FFDDDD';}else {document.getElementById('dropdownField1Star').style.color = '#000000';document.getElementById('dropdown1').style.backgroundColor = '#FFFFFF';}var dropdownField2 = document.getElementById('dropdown2').value;if (dropdownField2.length < 1) {validInput = false;document.getElementById('dropdownField2Star').style.color = '#FF0000';document.getElementById('dropdown2').style.backgroundColor = '#FFDDDD';}else {document.getElementById('dropdownField2Star').style.color = '#000000';document.getElementById('dropdown2').style.backgroundColor = '#FFFFFF';}var dropdownField3 = document.getElementById('dropdown3').value;if (dropdownField3.length < 1) {validInput = false;document.getElementById('dropdownField3Star').style.color = '#FF0000';document.getElementById('dropdown3').style.backgroundColor = '#FFDDDD';}else {document.getElementById('dropdownField3Star').style.color = '#000000';document.getElementById('dropdown3').style.backgroundColor = '#FFFFFF';}var question = document.getElementById('question').value;if (question.length < 1) {validInput = false;document.getElementById('questionStar').style.color = '#FF0000';document.getElementById('question').style.backgroundColor = '#FFDDDD';}else {document.getElementById('questionStar').style.color = '#000000';document.getElementById('question').style.backgroundColor = '#FFFFFF';}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 = '#FFFFFF';}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
");