    // SHOW OR HIDE SECTION
    function ShowHide(nr){
        if(document.getElementById(nr).style.display=="none")
        {
            document.getElementById(nr).style.display=''  ;
        } else {
            document.getElementById(nr).style.display="none";
        }
    }
	
    function taLimit() {
    	var taObj=event.srcElement;
    	if (taObj.value.length==255*1) return false;
    }
    
    function taCount(visCnt) { 
    	var taObj=event.srcElement;
    	if (taObj.value.length>255*1) taObj.value=taObj.value.substring(0,255*1);
    	if (visCnt) visCnt.innerText=255-taObj.value.length;
    }
	
    // OPEN NEW WINDOW (centered)
    function NewWindow(mypage, myname, w, h, scroll) {
    	var winl = (screen.width - w) / 2;
    	var wint = (screen.height - h) / 2;
    	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
    	win = window.open(mypage, myname, winprops)
    	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
    }

    // CLEAR LOGIN
    function ClearLogin(ID,I_NAME) {
    	if (confirm("Está seguro de que desea limpiar la información de su usuario y contraseña?")) {
    		window.location.replace("reminder.asp?smode=clear");
    	}
    }
	
	function ValidateUpload(){
        if (document.frm.FILE1.value=="") {
        	alert("Por favor, seleccione el archivo que desea cargar.")
        	document.frm.FILE1.focus()
        return false }
    }
	

    // VALIDATE ISSUE
    function ValidStepOne(){
        if (document.frm.title.value=="") {
        	alert("Por favor, ingrese un título descriptivo para el pedido de soporte.")
        	document.frm.title.focus()
        return false }
    }

    // ADDITIONAL INFORMATION FORM VALIDATION
    function ValidateADDITIONALINFO(){
        if (document.frm.add_info.value=="") {
        	alert("Por favor, ingrese la información adicional.")
        	document.frm.add_info.focus()
        return false }
    }
    // CLEAR BOOKMARKS
    function ClearBooks() {
    	if (confirm("Limpiar todos los marcadores ?")) {
    		window.location.replace("bookmarks.asp?clear=true");
    	}
    }
    // CLOSE ISSUE
    function CloseIssue(ID) {
    	if (confirm("Desea cerrar este pedido ?\nuna vez cerrado el pedido no podrá ser actualizado con información adicional por ningun técnico.\n\nSi desea reabrirlo puede hacerlo desde su lista de pedidos.")) {
    		window.location.replace("update.asp?ID=" + ID + "&closed=True");
    	}
    }    
    // VALIDATE STATUS
    function ValidateStatus(){
        if (document.frm.id.value=="") {
        	alert("Por favor, ingrese el número de pedido.")
        	document.frm.id.focus()
        return false }
    }    
    // ADD BOOKMARK
    function AddBookmark(ID, CATE) {
    	if (confirm("Adicionar este pedido a sus elementos marcados ?")) {
    		window.location.replace("bookmark_add.asp?ID=" + ID + "&CATE=" + CATE);
    	}
    }
    // REMINDER FORM VALIDATION
    function ValidateREMINDER(){
        if (document.frm.email.value=="") {
        	alert("Por favor, ingrese su correo electrónico.")
        	document.frm.email.focus()
        return false }
    }
    // SEND EMAIL FORM VALIDATION \\
    function ValidateSENDEMAIL(){
        if (document.frm.y_name.value=="") {
        	alert("Por favor, ingrese su nombre.")
        	document.frm.y_name.focus()
        return false }
        if (document.frm.y_email.value=="") {
        	alert("Por favor, ingrese su correo electrónico.")
        	document.frm.y_email.focus()
        return false }
        if (document.frm.f_name.value=="") {
        	alert("Por favor, ingrese el nombre del colega.")
        	document.frm.f_name.focus()
        return false }
        if (document.frm.f_email.value=="") {
        	alert("Por favor, ingrese el correo electrónico del colega.")
        	document.frm.f_email.focus()
        return false }
    }
    // SEARCH FORM VALIDATION \\
    function ValidateSEARCH(){
        if (document.frm.search.value=="") {
        	alert("Por favor, ingrese una frase de búsqueda.")
        	document.frm.search.focus()
        return false }
    }
    // MY QUESTIONS LOGIN FORM VALIDATION \\
    function ValidateMYQUESTIONS(){
        if (document.frm.username.value=="") {
        	alert("Por favor, ingrese su nombre de usuario.")
        	document.frm.username.focus()
        return false }
        if (document.frm.password.value=="") {
        	alert("Por favor, ingrese su contraseña.")
        	document.frm.password.focus()
        return false }
    }
    // SUBMIT ISSUE FORM VALIDATION \\
    function ValidateNEWISSUE(){
        if (document.frm.name.value=="") {
        	alert("Por favor, ingrese su nombre.")
        	document.frm.name.focus()
        return false }
        if (document.frm.email.value=="") {
        	alert("Por favor, ingrese su correo electrónico.")
        	document.frm.email.focus()
        return false }
        if (document.frm.title.value=="") {
        	alert("Por favor, ingrese el título de la pregunta.")
        	document.frm.title.focus()
        return false }
        if (document.frm.cate.value=="") {
        	alert("Por favor, seleccione una categoría adecuada.")
        	document.frm.cate.focus()
        return false }		
        if (document.frm.question.value=="") {
        	alert("Por favor, ingrese su pregunta.")
        	document.frm.question.focus()
        return false }
    }
    // OPEN SIDE WIDNOW PANEL
    function MDM_openWindow(theURL,winName,features) { 
	  window.resizeTo(screen.width-280,screen.height-26)
	  window.moveTo(0,0);
      var _W=window.open(theURL,winName,features);
	  _W.focus();
	  _W.resizeTo(280,screen.height-26)
      _W.moveTo(screen.width-280,0); 	  
      _W.opener.name = "opener";
    }
    // ASK BEFORE LAUNCHING
    function ASK_MDM_openWindow(theURL,winName,features) { 
        if (confirm("Abrir barra de herramientas? \n\nUna nueva ventana se abrirá junto a esta \nfacilitando el acceso a lista de pedidos y a la búsqueda.")) {
    	  window.resizeTo(screen.width-280,screen.height-26)
    	  window.moveTo(0,0);
          var _W=window.open(theURL,winName,features);
    	  _W.focus();
    	  _W.resizeTo(280,screen.height-26)
          _W.moveTo(screen.width-280,0); 	  
          _W.opener.name = "opener";
    	}
    }      
    // VALIDATE COMMENT FORM
    function ValidComment(){
        if (document.frm.comment.value=="") {
        	alert("Por favor, ingrese su comentario.")
        	document.frm.comment.focus()
        return false }
    }
    // DROP DOWN NAVIG    
    function Jump(fe){
        var opt_key = fe.selectedIndex;
        var uri_val = fe.options[opt_key].value;
        window.open(uri_val,'_self');
        return true;
    }
