function chkEmail(s) {

chkEmail1    = /^\w+([\.\-]\w+)*\@\w+([\.\-]\w+)*\.\w+$/;
chkEmail2    = /^.*@[^_]*$/;

  return (chkEmail1.test(s) && chkEmail2.test(s));

}

function chktest() {

        isName  = /^[A-Za-z'\-\ ]+$/;
        isValidString = /^[A-Za-z0-9'\-\.\,\:\\\_\/\(\)\ ]+$/;
        isValidAddress = /^[A-Za-z0-9'\-\.\,\:\#\\\_\/\(\)\ ]+$/;
        isValidNum = /^[0-9'\-]+$/;
        isPhone = /^[01]?\s*[\(\.-]?(\d{3})[\)\.-]?\s*(\d{3})[\.-](\d{4})$/;
        isAmex = /^[3]/;
        isVisa = /^[4]/;
        isMC = /^[5]/;
        isDisc = /^[6]/;


        var msg = "Error: Missing Information!\n";
        var error_msg = "";



        if ((document.TestiForm.s_fname.value == "") || (document.TestiForm.s_fname.value == null)) {
                error_msg += "\First Name is a REQUIRED Field.";
        }


        if ((document.TestiForm.s_lname.value == "") || (document.TestiForm.s_lname.value == null)) {
                error_msg += "\nLast Name is a REQUIRED Field.";
        }


        if ((document.TestiForm.s_email.value != "") && (document.TestiForm.s_email.value != null)) {
                if (!chkEmail(document.TestiForm.s_email.value))
                       error_msg += "\nData Entered in Email is INVALID.";
        }


        if ((document.TestiForm.s_story.value == "") || (document.TestiForm.s_story.value == null)) {
                error_msg += "\nShare Your Story is a REQUIRED Field.";
        }


   	if (document.TestiForm.s_accept.checked != "1") {
                error_msg += "\nYou must agree to the terms.";
   	}




	if (error_msg) {
        	alert(msg+error_msg);
		return false;
	}
 
}


