<!--

//E-mail Collection Validation

function Validate() {
		if(email(document.EmailCollection.Email.value)) {
		if(document.EmailCollection.FirstName.value.length<1){
				alert('OOPS, please enter your First Name.');
				document.EmailCollection.FirstName.focus();
			} else if(document.EmailCollection.LastName.value.length<1){
				alert('OOPS, please enter your Last Name.');
				document.EmailCollection.LastName.focus();
		   } else{
				PopFormTarget ('freevideodraw','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,width=163,height=285,left=0,top=0');
				document.EmailCollection.submit();
				document.EmailCollection.Email.value="";
			    document.EmailCollection.FirstName.value="";
			    document.EmailCollection.LastName.value="";
				

			
		
		
					}
	}
}

function email(email) {
		invalidChars = " /:,;";
		if (email == "") {
			alert("Please enter your e-mail address.")
			return false;
		}
		for (i=0; i<invalidChars.length; i++) {
			badChar = invalidChars.charAt(i)
			if (email.indexOf(badChar,0) != -1) {
				alert("Please make sure your e-mail is correct. Check for illegal characters.")
				return false;
			}
		}
		atPos = email.indexOf("@",1)
		if (atPos == -1) {
			alert("Your e-mail must have an '@' sign for it to be valid")
			return false;
		}
		if (email.indexOf("@",atPos+1) != -1) {
			return false;
		}
		periodPos = email.indexOf(".")
		if (periodPos == -1) {
			alert("Please check your e-mail address and make sure it is correct.")
			return false;
		}
		if (periodPos+3 > email.length)	{
			alert("Please check your e-mail address and make sure it is correct.")
			return false;
		}
		return true;
	}
	
	var EmailInput=(document.all)?'<INPUT TYPE=TEXT SIZE="17" MAXLENGTH="64" NAME="Email" VALUE="" onFocus="this.select()">':'<INPUT TYPE=TEXT SIZE="7" MAXLENGTH="64" NAME="Email" VALUE="" onFocus="this.select()">';
	var FirstNameInput=(document.all)?'<INPUT TYPE=TEXT SIZE="17" MAXLENGTH="64" NAME="FirstName" VALUE="" onFocus="this.select()">':'<INPUT TYPE=TEXT SIZE="7" MAXLENGTH="64" NAME="FirstName" VALUE="" onFocus="this.select()">';
	var LastNameInput=(document.all)?'<INPUT TYPE=TEXT SIZE="17" MAXLENGTH="64" NAME="LastName" VALUE="" onFocus="this.select()">':'<INPUT TYPE=TEXT SIZE="7" MAXLENGTH="64" NAME="LastName" VALUE="" onFocus="this.select()">';
	
	// Pop Form Thank You Page

function PopFormTarget (windowName, features) {
	open ('', windowName, features);
}

	
		function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



//-->
