							function isBlank(s)
							{
								var len,k,flg;
								flg=true;
								if(s!=null)
								{
									len=s.length;
									for(k=0;k<len;k++)
									{
										if(s.substring(k,k+1) != " ")
										flg=false;
									}
								}
								return flg;
							}
							
							var xemail;
							
							//not using this function to submit form. Using standard action in form tag in html
							/*function Subscribe()
							 {
								xemail=document.frmEmail.email.value;
								newWin=window.open("http://ebm.e.taunton.com/r/regf2","form_window","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,copyhistory=0,width=650,height=700,top=5,left=50");
								newWin.focus();
							 }*/
							
							function validate_signup()
							{
								var emailStr1 = window.document.frmEmail.email.value;
								if(isBlank(emailStr1))
								{
									alert("Please enter an E-Mail Address.");
									window.document.frmEmail.email.value="";
									window.document.frmEmail.email.focus();
									return false;
								}
								var emailPat=/^(.+)@(.+)$/
								var specialChars="\\(\\)<>\\@%&,;:\\\\\\\"\\.\\[\\]"
								var validChars="\[^\\s" + specialChars + "\]"
								var quotedUser="(\"[^\"]*\")"
								var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
								var atom=validChars + '+'
								var word="(" + atom + "|" + quotedUser + ")"
								var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
								var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
						
								var matchArray=emailStr1.match(emailPat);
								if (matchArray==null)
								{
									alert("Please enter a valid E-Mail Address.");
									window.document.frmEmail.email.value="";
									window.document.frmEmail.email.focus();
									return false;
								}
								var user=matchArray[1]
								var domain=matchArray[2]
						
								if (user.match(userPat)==null)
								{
								    alert("Please enter a valid E-Mail Address.");
								    window.document.frmEmail.email.value="";
									window.document.frmEmail.email.focus();
								    return false;
								}
						
								var IPArray=domain.match(ipDomainPat);
								if (IPArray!=null)
								{
									for (var i=1;i<=4;i++) 
									{
									    if (IPArray[i]>255) 
										{
									        alert("Please enter a valid E-Mail Address.");
									       	window.document.frmEmail.email.value="";
											window.document.frmEmail.email.focus();
											return false;
									    }
								    }
								}
						
								var domainArray=domain.match(domainPat);
								if (domainArray==null)
								{
									alert("Please enter a valid E-Mail Address.");
									window.document.frmEmail.email.value="";
									window.document.frmEmail.email.focus();
									return false;
								}
						
								var atomPat=new RegExp(atom,"g");
								var domArr=domain.match(atomPat);
								var len=domArr.length;
								if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>3)
								{
									alert("Please enter a valid E-Mail Address.");
									window.document.frmEmail.email.value="";
									window.document.frmEmail.email.focus();
									return false;
								}
								if (len<2)
								{
									var errStr="Please enter a valid E-Mail Address.";
									alert(errStr);
									window.document.frmEmail.email.value="";
									window.document.frmEmail.email.focus();
									return false;
								}
							}
