// JavaScript Document

function chk_bl_username()
{
	if(document.frm1.username.value=='')
	{
		document.getElementById('div_username').style.height="15px";
		document.getElementById('div_username').style.color="#FF0000";
		document.getElementById('div_username').innerHTML = "Please specify username";
		return false;
	}
	else
	{
		document.getElementById('div_username').style.height="0px";
		document.getElementById('div_username').innerHTML = "";
		return true;
	}
}
function chk_bl_password()
{
	if(document.frm1.password.value=='')
	{
		document.getElementById('div_password').style.height="15px";
		document.getElementById('div_password').style.color="#FF0000";
		document.getElementById('div_password').innerHTML = "Please specify password";
		return false;
	}
	else
	{
		document.getElementById('div_password').style.height="0px";
		document.getElementById('div_password').innerHTML = "";
		return true;
	}
}


function validate()
{
	if(document.frm1.username.value=='')
	{
		document.getElementById('div_username').style.height="15px";
		document.getElementById('div_username').style.color="#FF0000";
		document.getElementById('div_username').innerHTML = "Please specify username";
		document.frm1.username.focus();
		return false;
	}
	if(document.frm1.password.value=='')
	{
		document.getElementById('div_password').style.height="15px";
		document.getElementById('div_password').style.color="#FF0000";
		document.getElementById('div_password').innerHTML = "Please specify password";
		document.frm1.password.focus();
		return false;
	}
	else
	{
		document.getElementById('div_username').style.height="0px";
		document.getElementById('div_username').innerHTML = "";
		document.getElementById('div_password').style.height="0px";
		document.getElementById('div_password').innerHTML = "";
		return true;
	}

}





