/*
######################################################
#                                                    #
#    Custom API copyright mmiv Wm Leslie Howard    #
#    http://eYeOpenersdesign.com                 #
#    http://eYeOpeners.info
#    wm@webwm.com                                   #
#                                                    #
######################################################
*/

//Informs Announce List subscribers of confirmation E-mail.
//USE: <input type=submit value="Send Updates" onclick="return alertAnnouceList(document.all.name.value,document.all.address.value,'Nova Institute','notifications@novainstitute.org')">

//toDo: Create formal and informal passed variable conditions.

function alertAnnouceList(name,email,client,listAddress){
	alert("Dear "+name+",\r\rFor your protection we will send an E-mail confirmation to the address submitted:\r\r\t"+email+"\r\rIn order to complete the subscription process, take the link in the E-mail you receive from\r\r\t"+client+" Updates | "+listAddress+"\r\rWith the subject\r\r\tSubscription Verification\r\rSet your spam filters and traps accordingly.\r\rThanks for joining us!\r\r\t"+client);
	return true}

//USE IN PLACE OF CGI ERROR PAGES. ADD "INVALID" VALIDATION, etc.
function validateUniversal(){
if(document.all.name.value==''){
	alert("Name is a required field. Please enter at least a first name or your first and last name.\r\rThank you!")}
else if(document.all.email.value==''){
	alert("\"Email Address\" is a required field. Please enter your Email address.\r\rThank you!")}}