var desc;
function fldcheckmembership()
{
	
	if (theForm.month.value != "")
		//
		{
			
			var month = theForm.month.value;
			var date = theForm.dd.value;
			if ((month == 2) || (month == 4) || (month == 6) || (month == 8) || (month == 9) || (month == 11))
				{
					if (date > 30)
						{
							window.alert("Invalid Date!");
							return false;
						}
				}
			
		}
	if (theForm.month.value == 0)
		{
			window.alert("Please complete your birthdate")
			return false;
		}
	
	if (theForm.yyyy.value == "yyyy")
		{
			window.alert("Please complete your birthdate")
			return false;
			
		}
	if (theForm.txtlname.value == "")
		{
			window.alert("Please enter your Last name.");
			return false;
		}
	if (theForm.txtfname.value == "")
		{
			window.alert("Please enter your First name.");
			return false;
		}
	if (theForm.gender.value == "N")
		{
			window.alert("Please select your Gender.");
			return false;
		}
	if (theForm.txtuserid.value == "")
		{
			window.alert("Please enter your User name.");
			return false;
		}
	if (theForm.txtpassword.value != "")
		{
			if (theForm.txtpassword.value == theForm.txtuserid.value)
				{
					window.alert("Password must be diffrent from User name.");
					return false;
				
				}
		
			else if (theForm.txtpassword.value != theForm.txtconfirm_pw.value)
		
				{
					window.alert("Please enter the same Password twice.");
					return false;
				}
			else
			var pw = theForm.txtpassword.value;
				if (pw.length < 6 )
					{
					window.alert("Password must be at least 6 characters")
					return false;
					}
				
				
			
		}
	 if (theForm.txtpassword.value == "")
				{
				window.alert("Please specify your password.");
					return false;
				}	
	if (theForm.question.value == 0)
		{
			window.alert("Please select password question.");
			return false;
		}
	
	if (theForm.txtanswer.value == "")
		{
			window.alert("Please enter your answer.");
			return false;
		}

	
	if (theForm.txtemail.value != "")
		{
			
			var email = theForm.txtemail.value;
			var iAtLocation = email.indexOf("@");
			if (iAtLocation > 0)
				{
					
					var iDotLocation = email.indexOf(".",iAtLocation);
					if ((iDotLocation > iAtLocation +1) && (email.length > iDotLocation + 1))
						{
							return true;
						}
					else
						window.alert("Please enter a valid email address!");
						return false;
				}
			else
					window.alert("Please enter a valid email address!");
					return false;
		}
	
	if (theForm.txtemail.value == "")
	{
		window.alert("Email address is required.")
		return false;
	}
	
	if (theForm.yyyy.value == "")
		{
			window.alert("Please complete your birthday.");
			return false;
		}	
	

}
function check_login_fld()
{
if (theForm.user_name.value == "")
	{
		window.alert("Please specify your User Name.")
		return false;
	}

if (theForm.user_password.value == "")
	{
		window.alert("Please specify your Password.")
		return false;
	}	

}
function disagree()
{
	window.location = "../bhcsonline.asp"
}
function newsdescription(desc)
{
	var values 
	values = desc
	window.alert(values)
	document.all.newsdesc.innerHTML = desc;
	
	
}
function open_win()
{
window.open("spalto_setup.asp","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=400, height=300, titlebar=no")
}
function myfrm()
{
	document.theForm.submit();
	clearInterval(count);
}

