function DeleteCategory(ID) {
    if (confirm("Desea borrar la categorķa? Al Borrar la categorķa, todas las Preguntas Frecuentes relacionadas a esta categorķa seran borradas." )) {
        window.location.replace("del_cate.asp?ID=" + ID );
    }
}

function DeleteF(ID) {
    if (confirm("Borrar Pregunta ?" )) {
        window.location.replace("del.asp?ID=" + ID );
    }
}

function h_DeleteF(ID) {
    if (confirm("Borrar tema ?" )) {
        window.location.replace("h_del.asp?ID=" + ID );
    }
}


function ValidFAQ(){
    if (document.frm.title.value=="") {
    	alert("Debe ingresar el Titulo.")
    	document.frm.title.focus()
    return false }
    if (document.frm.Q.value=="") {
    	alert("Debe de ingresar la pregunta.")
    	document.frm.Q.focus()
    return false }
    if (document.frm.cate.value=="") {
    	alert("Debe de ingresar la categoria.")
    	document.frm.cate.focus()
    return false }
} 
   
function ValidCAte(){
    if (document.frm.name.value=="") {
    	alert("Debe de ingresar el nombre de la categoria.")
    	document.frm.name.focus()
    return false }
} 
   
function AskLogout() {
	if (confirm("Desea Terminar la sesion ? " )) {
		window.location.replace("/administracion?Logout=True");
	}
}

function ValidLogin(){
    if (document.frm.username.value=="") {
    	alert("Ingrese su nombre de usuario.")
    	document.frm.username.focus()
    return false }
    if (document.frm.password.value=="") {
    	alert("Ingrese su password.")
    	document.frm.password.focus()
    return false }    
}   

