document.write('<table border="0" cellspacing="0" cellpadding="0" width="100%">');
document.write('<tR><td><div align="center" class=reports><br><img src="images/login1.gif" alt="" width="54" height="28" border="0"></div></td></tr>');
document.write('<tR><td><br><form name=f1 method=post action="loginchk.asp">');
document.write('<table align=center cellpadding=5 cellspacing=0>');
document.write('<tr><td class=c1><b>Login :</b></td><tD class=c1><input type="text" size=11 name="username" maxlength=20 class=c1></td></tr>');
document.write('<tr><td class=c1><b>Password :</b></td><tD class=c1><input type="password" size=11 name="pwd" maxlength=20 class=c1></td></tr>');
document.write('<tR><td colspan=2><img src="images/b.gif" width="1" height="5" alt="" border="0"></td></tr>');
document.write('<tr><td align=center colspan=2><input  type="submit"  value="Login" onclick="return validate_login()" style="background-color:#F7F3F7;font-family:verdana;font-size:12px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button"  value="Reset" onclick="return resetfields()" style="background-color:#F7F3F7;font-family:verdana;font-size:12px;"></td></tr>');
document.write('</table></form></td></tr></table>');

function validate_login()
{
	username=document.f1.username.value;
	pwd=document.f1.pwd.value;
	if(username.length<=0)
	{
		alert("Please enter Username");
		document.f1.username.focus();
		return false;
	}
	if(pwd.length<=0)
	{	
		alert("Please enter password");
		document.f1.pwd.focus();
		return false;
	}
	//alert("hi")
	document.f1.submit();
}
function resetfields()
{
	document.f1.username.value="";
	document.f1.pwd.value="";
	document.f1.username.focus();
	return false;
}
