
function verPagina(IdDpt, IdDct, nDct){
	document.forms[0].deptoNo.value=IdDpt;
	document.forms[0].docNo.value=IdDct;
	document.forms[0].docname.value=nDct;
	document.forms[0].action="index.asp";
	document.forms[0].submit();	
}

function verPortada(IdDpt){
    if (IdDpt == 1) {
	window.location.replace("index.asp");
	} else {
	document.forms[0].deptoNo.value=IdDpt;
	//document.forms[0].docNo.value=IdDct;
	//document.forms[0].docname.value=nDct;
	document.forms[0].action="secciones.asp";
	document.forms[0].submit();
	}
}

function verPortada2(IdDpt,titulo){
	document.forms[0].deptoNo.value=IdDpt;
	//document.forms[0].docNo.value=IdDct;
	//document.forms[0].docname.value=nDct;
	document.forms[0].action="secciones.asp?titulo="+titulo;
	document.forms[0].submit();	
}

function buscar(e){
	//var keyChar = String.fromCharCode(e.which);
	//var which = e.which;
	//var key = (e.which !=null) ? (e.which) : (e.keyCode);
	//alert("Entra");
	var key = e.keyCode;
	//alert("key: "+key);
	//alert("key: "+(key==13));
	if (key==3){
		document.forms[0].action="busqueda.asp";
		//alert("action: "+(document.forms[0].action));
		document.forms[0].submit();
	}
}

/********************\
 Manda al sistema en
 otro idioma, solo le
 pasamos 0 para default
 o el nombre del dir
 para ir al otro
\********************/
function entrar(whereGo) {
  var dir = "";
  if(whereGo == 0) {
	  dir = "";
	} else {
	  dir = whereGo + "/";
	}
	this.location.replace(dir+"home.asp");
}

function goTo(here) {
  if (here == "inicio") {
	   this.location.replace("index.htm");
	} else if (here == "contacto") {
	
	} else if (here == "cursos") {
	
	}
}

function winmsg(msg) {
  this.status=msg;
	return true;
}