function textboxFocus(item) { item.style.backgroundColor = "#FFF5EE";}function textboxBlur(item) { item.style.backgroundColor = "#BEE4FF";}function formButtonClicked() {var validInput = true;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 = '#BEE4FF';}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 = '#BEE4FF';}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 = '#BEE4FF';}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
");