function SubLogin()
{
		document.forms.frmLogin.submit();
}
function SubForm()
{
		document.forms.frmRegister.submit();
}
function upperthat(secure)
{
	if(secure.value)
	{
		var str	= secure.value;
		secure.value = str.toUpperCase();
			for(x=0;x<=9;x++)
			{
				if(secure.value.match(x))
				{
					secure.value = "";
				}
			}
	}
}
function underage(obj){
	var d=new Date(); 
	var cday=d.getDate(); 
	var cmonth=d.getMonth() + 1; 
	var cyear=d.getFullYear(); 
	if(obj != '')
	{
		if(obj > (cyear-13)){
			location.href = 'underage.php';
		}else{
			if(obj == (cyear-13))
			{
				if(document.forms['frmRegister'].drpMM.value == cmonth)
				{
					if(document.forms['frmRegister'].drpDD.value > cday)
					{
						location.href = 'underage.php'; 
					}
				}else{
					if(document.forms['frmRegister'].drpMM.value > cmonth)
					{
						location.href = 'underage.php';
					}
				}
			}
		}
	}
}
function chkfocus(obj)
{
	
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		if(obj)
		{
			if(obj.name)
			{
				
				var name = obj.name;
				var value = obj.value;
					
				if(name == "txtTelephone1")
				{
					if(value.length == 3)
					{
						document.forms['frmRegister'].txtTelephone2.focus();
					}				
				}
				if(name == "txtTelephone2")
				{
					if(value.length == 3)
					{
						document.forms['frmRegister'].txtTelephone3.focus();
					}				
				}
			}
		}
	}
}
function selthis(obj)
{
	if(obj)
	{
		if(obj.value != "")
		{
			obj.select();
		}
	}
}