function validate_required(field,alerttxt)
{
	with (field)
	{
	if (value==null||value=="")
	  {alert(alerttxt);return false;}
	else {return true}
	}
}
function validate_form(thisform)
{
	with (thisform)
	{
		
	if (validate_required(username,"Username must be filled out!")==false)
	  {username.focus();return false;}
	if (validate_required(password,"Password must be filled out!")==false)
	  {password.focus();return false;}

	}
}

function jsShow(Id)
{
	with (document.getElementById(Id))
	{
		style.display = ( (style.display == "none") ? "" : "none");
	}
}

