window.defaultStatus='c-learn'function MM_preloadImages(){  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_findObj(n, d){  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;}function MM_swapImage(){  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function open_popupp(file,name,width,height,scrollbars,resizable){		var top,left		left=(screen.availWidth-width) / 2		top=(screen.availHeight-height) / 2				var popUp = window.open(file,name,'top='+ top +', left='+ left +', height='+ height +', width='+ width +', scrollbars='+ scrollbars +', resizable='+ resizable);		popUp.opener = self;}function open_popup(url, margen){	miheight=screen.availHeight-margen;	miwidth=screen.availWidth-margen;		mitop= (screen.availHeight - miheight) / 2;	mileft= (screen.availWidth - miwidth) / 2;		window.open (url, "popup", "top=" + mitop + ", left= " + mileft + ", height=" + miheight+ ", width=" + miwidth + ", resizable=yes, toolbar=no, scrollbar=no, status=no, location=no")}function AbrirListado(path,name,formulario,showme){		var left	=	(screen.availWidth	-	199)	/	2		var top		=	(screen.availHeight	-	350)	/	2				if(eval(name)){			if(eval(name +'.closed')){				eval(name +' = window.open("'+ path +'tools/usuarios/usuarios.asp?formulario='+ formulario +'&showme='+ showme +'","'+ name +'","top='+ top +' ,left='+ left +' ,width=219 ,height=350 ,scrollbars=yes, resizable=yes")');			}else{				eval(name +'.focus()')			}		}else{			eval(name +' = window.open("'+ path +'tools/usuarios/usuarios.asp?formulario='+ formulario +'&showme='+ showme +'","'+ name +'","top='+ top +' ,left='+ left +' ,width=219 ,height=350 ,scrollbars=yes, resizable=yes")');		}}function viewItem(path,url){		var file	=	path +'foldersengine/view.asp?url='+ url		var name	=	'viewItem'		var width	=	'600'		var heigt	=	'400'		var left	=	(screen.availWidth	-	width) / 2		var top		=	(screen.availHeight	-	heigt) / 2				var popUp = window.open(file,name,'top='+ top +', left='+ left +', height='+ heigt +', width='+ width +', scrollbras=no, resizable=yes');		popUp.opener = self;}//function open_popup(file,name,width,height){//		var top,left//		left=(screen.availWidth-width) / 2//		top=(screen.availHeight-height) / 2//		////		var popUp = window.open(file,name,'top=' + top + ',left=' + left + ',height=' + height + ',width=' + width + 'scrolling=no');//		popUp.opener = self;//}function popup_center_size(url, miwidth, miheight){		mitop= (screen.availHeight - miheight) / 2;	mileft= (screen.availWidth - miwidth) / 2;		window.open (url, "popup", "top=" + mitop + ", left= " + mileft + ", height=" + miheight + ", width=" + miwidth + ", resizable=yes toolbar=no, scrollbar=no, status=no, location=no")}function popup_center(url, miwidth, miheight){		mitop= (screen.availHeight - miheight) / 2;	mileft= (screen.availWidth - miwidth) / 2;		window.open (url, "popup", "top=" + mitop + ", left= " + mileft + ", height=" + miheight + ", width=" + miwidth + ", resizable=yes, toolbar=no, scrollbars=yes, status=no, location=no")}function popup_center(winname, url, miwidth, miheight){		mitop= (screen.availHeight - miheight) / 2;	mileft= (screen.availWidth - miwidth) / 2;		winpopup = window.open (url, winname, "top=" + mitop + ", left= " + mileft + ", height=" + miheight + ", width=" + miwidth + ", resizable=yes, toolbar=no, scrollbars=yes, status=no, location=no")	winpopup.focus();}function expandingWindowSize(website,widthmio,heightmio) {var heightspeed = 10; // vertical scrolling speed (higher = slower)var widthspeed = 10;  // horizontal scrolling speed (higher = slower)var leftdist = (screen.availWidth - widthmio)/2;    // distance to left edge of windowvar topdist = (screen.availHeight - heightmio)/2;     // distance to top edge of windowvar width = 1var height = 1if (document.all) {var sizer = window.open("","","left=" + leftdist + ",top=" + topdist + ",width=1,height=1,scrollbars=yes");for (sizeheight = 1; sizeheight < heightmio; sizeheight += heightspeed) {sizer.resizeTo("1", sizeheight);}for (sizewidth = 1; sizewidth < widthmio; sizewidth += widthspeed) {sizer.resizeTo(sizewidth, sizeheight);}sizer.location = website;}elsewindow.location = website;}function MM_openBrWindow(theURL,winName,features) {  window.open(theURL,winName,features);}function MM_showHideLayers() { //v3.0  var i,p,v,obj,args=MM_showHideLayers.arguments;  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }    obj.visibility=v; }}function Calendario(path,formulario,campo){	var top, left, width, height	width		=	180	height	=	210	left		=	(screen.availWidth-width) / 2	top			=	(screen.availHeight-height) / 2		var popUp = window.open(path +'tools/Calendario/calendario.asp?formulario='+ formulario +'&campo='+ campo,'calendario','top=' + top + ',left=' + left + ',height=' + height + ',width=' + width + 'scrolling=no');	popUp.opener = self;}function isLetra(){	if(isNaN(String.fromCharCode(event.keyCode))){		return true;	}else{		return false;	}}function collapse(divid) {		//alert(document.getElementById(divid).style.display);		if (document.getElementById(divid).style.display == 'block') {			document.getElementById(divid).style.display = 'none';		}		else {			document.getElementById(divid).style.display = 'block';			//document.getElementById(divid).style.position = 'relative';			//document.getElementById(divid).style.overflow = 'visible';			//document.getElementById(divid).style.visibility = 'visible';		}		}
