// Check Login form
function checkLogin(objUsername,objPwd){
	//Check username
	if ((checkExists(objUsername)) == false) {
			alert("Username must be filled in to continue.");
			objUsername.focus();
			return false;
	}		
	//Check password
	if ((checkExists(objPwd)) == false) {
			alert("Password must be filled in to continue.");
			objPwd.focus();
			return false;
	}
	// Success!
	return true;
}
// Check for pop-up blocker
function IsPopupBlocker() {
	var oWin = window.open("","testpopupblocker","width=100,height=50,top=5000,left=5000");
	if (oWin==null || typeof(oWin)=="undefined") {
		return true;
	} else {
		oWin.close();
		return false;
	}
}
