		function validateNewsletterForm(theForm,theFid) {
			if (emailCheck(theForm.email_address.value)==false) {
				alert('Please enter a valid Email.');
				return false;
			}
			else {
				var leftPos = 0;
				var topPos = 0;

				if (screen) {
					leftPos = (screen.width / 2) - 175;
					topPos = (screen.height / 2) - 50;
				}

				var signupWindow=window.open('http://oi.vresp.com?fid=' + theFid, 'vr_optin_popup', ',width=600,height=450,left='+leftPos+',top='+topPos);
				signupWindow.focus();
				return true;
			}
		}
		
		function emailCheck(theEmail) {
			var at="@";
			var dot=".";
			var lat=theEmail.indexOf(at);
			var lstr=theEmail.length;
			var ldot=theEmail.indexOf(dot);

			if (theEmail.indexOf(at)==-1) {
			   return false;
			}

			if (theEmail.indexOf(at)==-1 || theEmail.indexOf(at)==0 || theEmail.indexOf(at)==lstr) {
			   return false;
			}

			if (theEmail.indexOf(dot)==-1 || theEmail.indexOf(dot)==0 || theEmail.indexOf(dot)==lstr) {
			    return false;
			}

			 if (theEmail.indexOf(at,(lat+1))!=-1) {
			    return false;
			 }

			 if (theEmail.substring(lat-1,lat)==dot || theEmail.substring(lat+1,lat+2)==dot) {
			    return false;
			 }

			 if (theEmail.indexOf(dot,(lat+2))==-1) {
			    return false;
			 }

			 if (theEmail.indexOf(" ")!=-1) {
			    return false;
			 }

	 		 return true;					
		}

		var thisleftPos = 0;
		var thistopPos = 0;