function DeleteCat(cat_dbid) {
    if (confirm("Delete Category ?" )) {
        window.location.replace("cafe_delcat.asp?cat_dbid=" + cat_dbid );
    }
}
function DeleteF(building_dbid) {
    if (confirm("Delete Building ?" )) {
        window.location.replace("cafe_delblding.asp?building_dbid=" + building_dbid );
    }
}
function DeleteInv(id,strSearch) {
    if (confirm("Delete Inventory Item ?" )) {
        window.location.replace("cafe_delinv.asp?id=" + id );
    }
}
function DeleteStaffL(id) {
    if (confirm("Delete Staff Login ?" )) {
        window.location.replace("cafe_delstaffl.asp?id=" + id );
    }
}
function ValidFAQ(){
    if (document.frm.title.value=="") {
    	alert("Please enter title.")
    	document.frm.title.focus()
    return false }
    if (document.frm.Q.value=="") {
    	alert("Please enter question.")
    	document.frm.Q.focus()
    return false }
    if (document.frm.cate.value=="") {
    	alert("Please enter category.")
    	document.frm.cate.focus()
    return false }
}    
function ValidBld(){
    if (document.form.strbld.value=="Select Building...") {
    	alert("Error: Please select vaild building! Use down arrow to select a vaild building.")
    	document.form.strbld.focus()
    return false }
}    
function AskLogout() {
	if (confirm("Log Out ? " )) {
		window.location.replace("../logout.asp?Logout=True");
	}
}  
function AskArchive() {
	if (confirm("***WARNING: Are you sure you wish to ARCHIVE your CURRENT plan and start a new one?***" )) {
		window.location.replace("../individual/processarchive.asp");
	}
}
