    // ADDITIONAL INFORMATION FORM VALIDATION
    function ValidateADDITIONALINFO(){
        if (document.frm.add_info.value=="") {
        	alert("Por favor digite a informação adicional.")
        	document.frm.add_info.focus()
        return false }
    }
    // CLEAR BOOKMARKS
    function ClearBooks() {
    	if (confirm("Clear all bookmarks ?")) {
    		window.location.replace("bookmarks.asp?clear=true");
    	}
    }
    // CLOSE ISSUE
    function CloseIssue(ID) {
    	if (confirm("Would you like to close this issue ?")) {
    		window.location.replace("update.asp?ID=" + ID + "&closed=True");
    	}
    }    
    // VALIDATE STATUS
    function ValidateStatus(){
        if (document.frm.id.value=="") {
        	alert("Digite o ID (número) para prosseguir.")
        	document.frm.id.focus()
        return false }
    }    
    // ADD BOOKMARK
    function AddBookmark(ID, CATE) {
    	if (confirm("Add this issue to your bookmarks ?")) {
    		window.location.replace("bookmark_add.asp?ID=" + ID + "&CATE=" + CATE);
    	}
    }
    // REMINDER FORM VALIDATION
    function ValidateREMINDER(){
        if (document.frm.email.value=="") {
        	alert("Por favor digite seu endereço de e-mail.")
        	document.frm.email.focus()
        return false }
    }
    // SEND EMAIL FORM VALIDATION \\
    function ValidateSENDEMAIL(){
        if (document.frm.y_name.value=="") {
        	alert("Por favor digite seu nome.")
        	document.frm.y_name.focus()
        return false }
        if (document.frm.y_email.value=="") {
        	alert("Por favor digite seu endereço de e-mail.")
        	document.frm.y_email.focus()
        return false }
        if (document.frm.f_name.value=="") {
        	alert("Por favor digite o nome do seu amigo.")
        	document.frm.f_name.focus()
        return false }
        if (document.frm.f_email.value=="") {
        	alert("Por favor digite o endereço de e-mail do seu amigo.")
        	document.frm.f_email.focus()
        return false }
    }
    // SEARCH FORM VALIDATION \\
    function ValidateSEARCH(){
        if (document.frm.search.value=="") {
        	alert("Por favor digite a frase a ser localizada.")
        	document.frm.search.focus()
        return false }
    }
    // MY QUESTIONS LOGIN FORM VALIDATION \\
    function ValidateMYQUESTIONS(){
        if (document.frm.username.value=="") {
        	alert("Digite seu nome de usuário.")
        	document.frm.username.focus()
        return false }
        if (document.frm.password.value=="") {
        	alert("Digite sua senha.")
        	document.frm.password.focus()
        return false }
    }
    // SUBMIT ISSUE FORM VALIDATION \\
    function ValidateNEWISSUE(){
       d = document.frm
		nome = d.name.value.split(" ")
		tmp = nome.length
		if (tmp <= 1)
		{
			alert("Informe nome e sobrenome!!!");
			d.name.focus();
			return false;
		}
		else
		{
			if ((nome[0].length < (3))||(nome[1].length < (2))||(nome[0] == nome[1]))
			{
				alert("Informe nome e sobrenome correto!!!");
				d.name.focus();
				return false;
			}
	
		}
		var mail = d.email.value
		var er = new RegExp(/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]{2,}\.[A-Za-z0-9]{2,}(\.[A-Za-z0-9])?/); 
		var erro = 1 
		if(typeof(mail) == "string")
		{                
			if(er.test(mail))
			{ erro = 0; }        
		}
		else if(typeof(mail) == "object")
		{                
			if(er.test(mail.value))
			{                                         
				erro = 0;                                 
			}        
		}
		else
		{                
			erro= 1
		}
      	if (erro == 1)
		{
			alert("Informe um E-mail valido");
			d.email.focus();
			return false; 
		}
		if (document.frm.title.value=="") {
        	alert("Por favor digite o título da pergunta.")
        	document.frm.title.focus()
        return false }
		if (d.url.selectedIndex =='')
		{
			alert("Selecione uma das opções \"Tipo de Acesso\".");
			d.url.focus();
			return false;
		}
        if (document.frm.question.value=="") {
        	alert("Por favor digite sua pergunta.")
        	document.frm.question.focus()
        return false }
		if ((document.frm.username.value == "") || (document.frm.username.value.length < (5)))
		{
			alert("Informe o login no minimo de 5 caracteres.");
			document.frm.username.focus();
			return false;
		}
		if((document.frm.password.value == "") || (document.frm.password.value.length < (5)))
		{
			alert("Informe o senha no minimo de 5 caracteres.");
			document.frm.password.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("Janela de ajuda ? Uma nova janela será aberta após essa, para acesso ao Help Desk e utilidades de busca.")) {
    	  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 digite seu comentário.")
        	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,'_top');
        return true;
    }
