function chgMenu(objDiv){
	if(objDiv.style.display == "none")
		objDiv.style.display = "block";
	else
		objDiv.style.display = "none";
}

function chkLogin(objhid,objuid,objpwd){
		hid = objhid.value;
		hid = hid.replace(/ /gi,"");
		uid = objuid.value;
		uid = uid.replace(/ /gi,"");
		pwd = objpwd.value;
		pwd = pwd.replace(/ /gi,"");
		if(hid != "" && uid != "" && pwd != ""){
				return true;
		}
		else{
			alert("代號或帳號密碼錯誤,登入失敗");
			return false;
		}
}

function chkall(input1,input2)
{
    var objForm = document.forms[input1];
    var objLen = objForm.length;
    for (var iCount = 0; iCount < objLen; iCount++)
    {
        if (input2.checked == true)
        {
            if (objForm.elements[iCount].type == "checkbox")
            {
                objForm.elements[iCount].checked = true;
            }
        }
        else
        {
            if (objForm.elements[iCount].type == "checkbox")
            {
                objForm.elements[iCount].checked = false;
            }
        }
    }
}

