function beforeSubmit()
{
	var username = trim(document.form1.username.value);
	if( username == null || username == "" || username.length < 6 )
	{
		alert(alert_38);
		return false;
	}
	else
	{
		var initial = username.substring(0,1);
		if( (("0123456789").indexOf(initial) > -1) )
		{
			//alert('username may not start with a number');
			alert(alert_39);
			return false;
		}
		if( initial == '_' )
		{
			//alert('username may not start with an underscore');
			alert(alert_40);
			return false;
		}
		if( usernameCheck(username) )
		{
			document.form1.operation.value = "loginuser";
			document.form1.submit();
		}
	}
	
	/*
	if( checkEmail() )
	{
		document.form1.operation.value = "loginuser";
		document.form1.submit();
	}
	*/
}


