/* login script */

if(getAttributes()==1 || getAttributes()==2 || getAttributes()==3 || getAttributes()==4 || getAttributes()==5)
{
	document.writeln("<table width=100% align=center><tr><td align=center>");
	document.writeln("<b>Welcome, login successful.</b><br>");
	document.writeln("<a href='signout.php'>Signout</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href='changepwd.php'>Change Password</a>");
	document.writeln("</td></tr></table>");
}
else
{
	document.writeln("<FORM name=register method=POST action=check_reg.php>");
	document.writeln("<input type=hidden name=redirect value=redirect>");
	document.writeln("<table border=0 align=center>");
	document.writeln("<tr><td>");
	document.writeln("user login <input type=text name=USER_ID size=15 style='font-size: 12px; background-color: #CACAFF'>");
	document.writeln("password <input type=password name=PASS_ID size=15 style='font-size: 12px; background-color: #CACAFF'>");
	document.writeln("<input type=submit value=Go name=bntlogin>");
	document.writeln("</td></tr><tr><td align='center'>");
	document.writeln("<a class=newuser href=terms_of_uses.htm>new user?</a> &nbsp;&nbsp&nbsp;&nbsp");
	document.writeln("<a class=newuser href=forgotpwd.php>forgot password?</a>");
	document.writeln("</td></tr>");
	document.writeln("</table>");
	document.writeln("</FORM>");
}