/*Javascript for mailing program
REVISION HISTORY
12-05-2004 Wrote original version and uploaded it to domain.
09-17-2005 Revised code. Loaded JS into external module. Uploaded revision.
*/ 

         function framebreakout()
         {
           if (top.location != location) 
           {
             top.location.href = document.location.href;
           }
         }
         //
         function validate(formObj)
         {
           if (formObj.name.value.length == 0)
           {
             window.alert("You must enter your name.");
             formObj.name.focus();
             return false;
           }
           //
           if (formObj.email.value.length == 0)
           {
             window.alert("You must provide an email address.");
             formObj.email.focus();
             return false;
           }
           //
           if (formObj.email.value.indexOf("/") > -1)
           {
             window.alert("Email address with invalid character: /");
             formObj.email.focus();
             return false;
           }
           //
           if (formObj.email.value.indexOf(":") > -1)
           {
             window.alert("Email address with invalid character: :");
             formObj.email.focus();
             return false;
           }
           //
           if (formObj.email.value.indexOf(",") > -1)
           {
             window.alert("Email address with invalid character: ,");
             formObj.email.focus();
             return false;
           }
           //
           if (formObj.email.value.indexOf(";") > -1)
           {
             window.alert("Email address has invalid character: ;");
             formObj.email.focus();
             return false;
           }
           //
           if (formObj.email.value.indexOf("@") < 0)
           {
             window.alert("Email address with missing @ sign");
             formObj.email.focus();
             return false;
           }
           //
           if (formObj.email.value.indexOf("\.") < 0)
           {
             window.alert("Email address with missing period");
             formObj.email.focus();
             return false;
           } 
           //
           if (formObj.comment.value.length == 0)
           {
             window.alert("You must enter a comment.");
             formObj.comment.focus();
             return false;
           }
           //
           else
           {  
             return true;
           }
         }
