

//驗證若干TextBox是否為空
//用法:var textBoxIds = new Array("txtUserCode", "txtPwd");
// var flag=TextBoxIsEmpty(textBoxIds);
function TextBoxIsEmpty(textBoxIds) {
for (var i = 0; i < textBoxIds.length; i++) {
var textBox = document.getElementById(textBoxIds[i]);
if (typeof (textBox) == "object" && trim(textBox.value) == "") {
return true;
}
}
return false;
}