      
        function high(which2) {
            theobject=which2;
            highlighting=setInterval("highlightit(theobject)",50);
        } // end function
        
        function low(which2) {
            clearInterval(highlighting);
            which2.filters.alpha.opacity=50;
        } // end function
        
        function highlightit(cur2) {
            if(cur2.filters.alpha.opacity<100)
            cur2.filters.alpha.opacity+=5
            else if(window.highlighting)
            clearInterval(highlighting)
        } // end function
        


function mClk(src) {
	if(event.srcElement.tagName=='TD') {
		src.children.tags('A')[0].click();
	}
}

function Atras(){
history.back();
return true;
}

function Adelante(){
history.forward();
return true;
}

function PopupImage(img) {
	titre=":: Colegio Fray García de Cisneros ::";
	w=open("",'image','width=300,height=300,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function no_right_click() {  if (event.button==2)  {  alert('Propiedad del Jardín de Niños Christa McAuliffe ©'); } } document.onmousedown=no_right_click;</"+"SCRIPT>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

redirTime = "10000";
redirURL = "principal.asp";
function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); }


function printWindow() {
window.print();
}

function MM_preloadImages() { //v3.0
  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 aMayusculas (campo) {
    campo.value=campo.value.toUpperCase();
    }

function aMinusculas (campo) {
    campo.value=campo.value.toLowerCase();
    }

function changeCase(frmObj) {
var index;
var tmpStr;
var tmpChar;
var preString;
var postString;
var strlen;
tmpStr = frmObj.value.toLowerCase();
strLen = tmpStr.length;
if (strLen > 0)  {
for (index = 0; index < strLen; index++)  {
if (index == 0)  {
tmpChar = tmpStr.substring(0,1).toUpperCase();
postString = tmpStr.substring(1,strLen);
tmpStr = tmpChar + postString;
}
else {
tmpChar = tmpStr.substring(index, index+1);
if (tmpChar == " " && index < (strLen-1))  {
tmpChar = tmpStr.substring(index+1, index+2).toUpperCase();
preString = tmpStr.substring(0, index+1);
postString = tmpStr.substring(index+2,strLen);
tmpStr = preString + tmpChar + postString;
         }
      }
   }
}
frmObj.value = tmpStr;
}


var mikExp = /[$\\"\\\#%\^\&\*\(\)\[\]\+\_\{\}\`\~\=\|]/;
function dodacheck(val) {
var strPass = val.value;
var strLength = strPass.length;
var lchar = val.value.charAt((strLength) - 1);
if(lchar.search(mikExp) != -1) {
var tst = val.value.substring(0, (strLength) - 1);
val.value = tst;
   }
}
