// JavaScript Document


	function openWindowoption(myURL) {
		var len = document.frmPoll.PollOption.length;
		for(var i = 0; i < len;	i++) {
		if(document.frmPoll.PollOption[i].checked) {
			break;
	}	}
	
		myURL = myURL + "&i=" + i;
		var popV='width=500,height=500,titlebar="Poll",toolbar=0,location=0,menubar=0,scrollbars=0,resizable=0,directories=0,status=0';
		var xwin = window.open("",'winpop', popV, true);
		xwin.location=myURL;
			}
						
	function openWindow(myURL) {			
		var popV='width=500,height=500,titlebar="Poll",toolbar=0,location=0,menubar=0,scrollbars=0,resizable=0,directories=0,status=0';
		var xwin = window.open("",'winpop', popV, true);
		xwin.location=myURL;
		}
		
		
	function verify(thisForm) {

		strEmail = document.ccoptin.ea.value;
	
		var bAtFound = false;
		var	bPeriodFound = false;
		var bJunkFound = false;
		var bSignUpFound = false;
		var	sJunkChar = "";
		var Pass = true

	
	
		for (var i = 0; i < strEmail.length; i++) {
			var sChar = strEmail.substring(i, i + 1)
			if (sChar == "@") {
				bAtFound = true;
			}
			
			if (sChar == ".") {
				bPeriodFound = true;
			}
			
			if ((sChar == "'") ||
				(sChar == "!") ||
				(sChar == "~") ||
				(sChar == "`") ||
				(sChar == "#") ||
				(sChar == "$") ||
				(sChar == "%") ||
				(sChar == "^") ||
				(sChar == "&") ||
				(sChar == "*") ||
				(sChar == "+") ||
				(sChar == "=") ||
				(sChar == ":") ||
				(sChar == ";") ||
				(sChar == ",") ||
				(sChar == "<") ||
				(sChar == ">") ||
				(sChar == "?") ||
				(sChar == "/") ||
				(sChar == "{") ||
				(sChar == "}") ||
				(sChar == ")") ||
				(sChar == "(") ||
				(sChar == "|")) {
				bJunkFound = true;
				sJunkChar = sChar;
			}
		}
		

		if (strEmail == '' || strEmail == 'Email Address') {
			alert("Please enter a valid email address.");
			thisForm.ea.focus();
			Pass = false;
			return false;
		}
		if (bAtFound == false) {
			alert("Email must contain an @ sign! Try Again...");
			thisForm.ea.focus();
			Pass = false;
			return false;
		}
		if (bPeriodFound == false) {
			alert("Email must contain at least one period(.)! Try Again...");			
			thisForm.ea.focus();
			Pass = false;
			return false;
		}
		if (bJunkFound == true) {
			alert("Email contains illegal characters ==> "+sJunkChar+" <==! Try Again...");
			//thisForm.Email.value = "";
			thisForm.ea.focus();			
			Pass = false;
			return false;
		}

		if (Pass == true)
		{
			return Pass;
		}
		return;
	}		
