function textboxFocus(item) { item.style.backgroundColor = "#FFF5EE";}function textboxBlur(item) { item.style.backgroundColor = "#E4ECD8";}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 = '#E4ECD8';}var phone = document.getElementById('phone').value;if (phone.length < 7) {validInput = false;document.getElementById('phoneStar').style.color = '#FF0000';document.getElementById('phone').style.backgroundColor = '#FFDDDD';}else {document.getElementById('phoneStar').style.color = '#000000';document.getElementById('phone').style.backgroundColor = '#E4ECD8';}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 = '#E4ECD8';}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 = '#E4ECD8';}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
");