// JavaScript Document

function login_Submit()
{
	if(document.form1.username.value=="")
	{
		alert('请填写用户名称');
		document.form1.username.focus();
		return false;
	}
	if(document.form1.password.value=="")
	{
		alert('请填写用户密码');
		document.form1.password.focus();
		return false;
	}
	if(document.form1.getCode.value=="")
	{
		alert('请填验证码');
		document.form1.getCode.focus();
		return false;
	}
}
function getObject(objectId) {
   if(document.getElementById && document.getElementById(objectId)) {
// W3C DOM
return document.getElementById(objectId);
   } else if (document.all && document.all(objectId)) {
// MSIE 4 DOM
return document.all(objectId);
   } else if (document.layers && document.layers[objectId]) {
// NN 4 DOM.. note: this won't find nested layers
return document.layers[objectId];
   } else {
return false;
   }
}

