<!--

/***
* Descrição.: formata um campo do formulário de  acordo com a máscara informada...
* Parâmetros: - objForm (o Objeto Form) - strField (string contendo o nome do textbox) - sMask (mascara que define o
* formato que o dado será apresentado,  usando o algarismo "9" para definir números e o símbolo "!" para qualquer caracter...
* - evtKeyPress (evento) Uso.......: <input type="textbox" name="xxx"..... onkeypress="return autoFormat(document.rcfDownload, 'str_cep', '99999-999', event);">
* Observação: As máscaras podem ser representadas como os exemplos abaixo:
* CEP -> 99.999-999
* CPF -> 999.999.999-99
* CNPJ -> 99.999.999/9999-99
* Data -> 99/99/9999
* Tel Resid -> (99) 999-9999
* Tel Cel -> (99) 9999-9999
* Processo -> 99.999999999/999-99
* C/C -> 999999-!
* E por aí vai...
***/
function autoFormat(objForm, strField, sMask, evtKeyPress)
{
   var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla;

   if(window.Event)//Internet Explorer
   {
      nTecla = evtKeyPress.keyCode;
   }
   else//FireFox
   {
      nTecla = evtKeyPress.which;
   }
   
   if(nTecla==8)return true;//backspace
   
   sValue = objForm[strField].value;
   //sValue = document.forms[0].getElementById(strField).value;

   // Limpa todos os caracteres de formatação que
   // já estiverem no campo.
   sValue = sValue.toString().replace( "-", "" );
   sValue = sValue.toString().replace( "-", "" );
   sValue = sValue.toString().replace( ".", "" );
   sValue = sValue.toString().replace( ".", "" );
   sValue = sValue.toString().replace( "/", "" );
   sValue = sValue.toString().replace( "/", "" );
   sValue = sValue.toString().replace( "(", "" );
   sValue = sValue.toString().replace( "(", "" );
   sValue = sValue.toString().replace( ")", "" );
   sValue = sValue.toString().replace( ")", "" );
   sValue = sValue.toString().replace( ":", "" );
   sValue = sValue.toString().replace( " ", "" );
   sValue = sValue.toString().replace( " ", "" );
   fldLen = sValue.length;
   mskLen = sMask.length;

   i = 0;
   nCount = 0;
   sCod = "";
   mskLen = fldLen;

   while (i <= mskLen) {
      bolMask = ((sMask.charAt(i) == ":") || (sMask.charAt(i) == "-") || (sMask.charAt(i) == ".") || (sMask.charAt(i) == "/"))
      bolMask = bolMask || ((sMask.charAt(i) == "(") || (sMask.charAt(i) == ")") || (sMask.charAt(i) == " "))

      if (bolMask) {
         sCod += sMask.charAt(i);
         mskLen++;
      }
      else {
         sCod += sValue.charAt(nCount);
         nCount++;
      }

      i++;
   }

   objForm[strField].value = sCod;
   //document.forms[0].getElementById(strField).value = sCod;
   
   if (nTecla != 8)
   { // backspace
      if (sMask.charAt(i-1) == "9")
      { // apenas números...
      
        return somenteNumero(evtKeyPress);
         
      }// números de 0 a 9
      else 
      { // qualquer caracter...
         return true;
      }
   }
   else
   {
      return true;
   }
   
}

function teclasPermitidas(keyCode)
{
    if (keyCode==8) return true;//backspace
    if (keyCode == 0 ) return true;
    if (keyCode == 9 ) return true; //tecla tab
    //if (keyCode == 13) return true; //tecla enter
    if (keyCode == 16) return true; //shift internet explorer
    if (keyCode == 17) return true; //control no internet explorer
    if (keyCode == 27 ) return true; //tecla esc
    if (keyCode == 34 ) return true; //tecla end
    if (keyCode == 35 ) return true;//tecla end
    if (keyCode == 36 ) return true; //tecla home

    //para FireFox
    if (keyCode == 37 ) return true; //seta esquerda
    if (keyCode == 39 ) return true; //seta direita
}

//IE e FF
function somenteDocumento(event)
{
    var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
    var caract = new RegExp(/^[0-9/.-]$/);//verificando se foi numero ou barra(/)
    var caract = caract.test(String.fromCharCode(keyCode));
    
    if(teclasPermitidas(keyCode))
        return true;
        
    if(!caract)
    {
        keyCode=0;
        return false;
    }
    else
        return true;
}

//funciona para IE e FF
function somenteData(event)
{
    var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
    var caract = new RegExp(/^[0-9/]$/);//verificando se foi numero ou barra(/)
    var caract = caract.test(String.fromCharCode(keyCode));

    if(teclasPermitidas(keyCode))
        return true;

    if(!caract)
    {
        keyCode=0;
        return false;
    }
    else
        return true;    
}

//funciona para IE e FF
function somenteNumero(event)
{
    var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
    var caract = new RegExp(/^[0-9\b/]+$/i);
    var caract = caract.test(String.fromCharCode(keyCode));

    if(teclasPermitidas(keyCode))
        return true;
    
    if(!caract)
    {
        keyCode=0;
        return false;
    }
    else
     return true;
}


function hasSelected(controle) {
   var retorno=false;
   var controls=document.getElementById(controle).form.elements[controle];
   var values="";
   var i=0;

   while(i<=controls.length-1 && !retorno) {
      if (controls[i].checked) {
         values+=controls[i].value + ",";
         retorno=true;
      }
      i++;
   }

   if(values=="")
      return false;
   else
      return left(values, values.length-1);
}

function isCPF(CPF)
{
   CPF = CPF.replace(".", "");
   CPF = CPF.replace("-", "");

   if (CPF.length != 11 || CPF == "00000000000" || CPF == "11111111111" ||
       CPF == "22222222222" || CPF == "33333333333" || CPF == "44444444444" ||
       CPF == "55555555555" || CPF == "66666666666" || CPF == "77777777777" ||
       CPF == "88888888888" || CPF == "99999999999")
      return false;

   soma = 0;

   for (i=0; i < 9; i ++)
      soma += parseInt(CPF.charAt(i)) * (10 - i);

   resto = 11 - (soma % 11);

   if (resto == 10 || resto == 11)
      resto = 0;

   if (resto != parseInt(CPF.charAt(9)))
      return false;

   soma = 0;

   for (i = 0; i < 10; i ++)
      soma += parseInt(CPF.charAt(i)) * (11 - i);

   resto = 11 - (soma % 11);

   if (resto == 10 || resto == 11)
      resto = 0;

   if (resto != parseInt(CPF.charAt(10)))
      return false;

   return true;
}

function isRG(RG)
{
   RG = RG.replace(".", "");
   RG = RG.replace("-", "");

   var ident = new Number(RG);

   if (RG.length == 0)
      return false;

   if (isNaN(ident) || ident == 0)
      return false;

   return isNumeric(ident);
}

//Essa data valida passando-se uma caixa de texto
function isDate(Data)
{   
   if (Data.value.length==0)
	return true;
    
   var reDate1 = /^\d{1,2}\/\d{1,2}\/\d{1,4}$/;
   var reDate2 = /^[0-3]?\d\/[01]?\d\/(\d{2}|\d{4})$/;
   var reDate3 = /^(0?[1-9]|[12]\d|3[01])\/(0?[1-9]|1[0-2])\/(19|20)?\d{2}$/;
   var reDate4 = /^((0?[1-9]|[12]\d)\/(0?[1-9]|1[0-2])|30\/(0?[13-9]|1[0-2])|31\/(0?[13578]|1[02]))\/(19|20)?\d{2}$/;
   var reDate = reDate4;

   eval("reDate = reDate4");

   if (reDate.test(Data.value))
      return true;
   else
   {
   	alert("Data Invalida!");
   	Data.select();
   	Data.focus();
   	return false;
   }
}

//Essa data valida-se passando um texto
function isDate2(Data, Msg)
{   
   if (Data.length==0)
	return true;
    
   var reDate1 = /^\d{1,2}\/\d{1,2}\/\d{1,4}$/;
   var reDate2 = /^[0-3]?\d\/[01]?\d\/(\d{2}|\d{4})$/;
   var reDate3 = /^(0?[1-9]|[12]\d|3[01])\/(0?[1-9]|1[0-2])\/(19|20)?\d{2}$/;
   var reDate4 = /^((0?[1-9]|[12]\d)\/(0?[1-9]|1[0-2])|30\/(0?[13-9]|1[0-2])|31\/(0?[13578]|1[02]))\/(19|20)?\d{2}$/;
   var reDate = reDate4;

   eval("reDate = reDate4");

   if (reDate.test(Data))
      return true;
   else
   {
   	alert(Msg);   	
   	return false;
   }
}


function isDDD(DDD)
{
   if (DDD.length == 0 || !(DDD.length >= 2 && DDD.length <= 3) )
      return false;

   return isNumeric(DDD);
}


function isTelefone(Telefone)
{
   if (Telefone.length == 0 || !(Telefone.length >= 7 && Telefone.length <= 8) )
      return false;

   Telefone = Telefone.replace("-", "");

   return isNumeric(Telefone);
}

function isCEP(CEP)
{
   if (CEP.length != 8)
      return false;

   CEP = CEP.replace("-", "");

   var n = new Number(CEP);

   if (isNaN(n) || n==0)
      return false;

   return isNumeric(CEP);
}

function isNumeric(valor)
{
   var objRegExp  = /^[0-9]*$/;
   return objRegExp.test(valor);
}

// e = event
function onlyNumbers(e) {
	return somenteNumero(e);
}


function left(valor, tam) {
   if (tam>=valor.length)
      tam=valor.length;

   return valor.substr(0, tam);
}

function right(valor, tam) {
   if (tam>=valor.length)
      tam=valor.length;

   return valor.substring(valor.length-tam, valor.length)
}

function isTime(phora){
   var hora, min;
   var vethora=phora.value.split(":");

   if (phora.value != "") {
      if (vethora.length!=2 || vethora[1]=="") {
         window.alert("Formato da Hora Invalida!");
         phora.select();
         phora.focus();
         return false;
      }
      else {
         hora=vethora[0];
         min =vethora[1];

         if (hora<0 || hora>23) {
            window.alert("Hora Invalida!");
            phora.select();
            phora.focus();
            return false;
         } else if (min<0 || min>59) {
            window.alert("Minutos Invalidos!");
            phora.select();
            phora.focus();
            return false;
         }
      }

      if((isNaN(hora)) || (isNaN(min))) {
         window.alert("Hora Invalida!");
         phora.select();
         phora.focus();
         return false;
      }
   }
}

function isFormatTime(phora){
   var hora, min;
   var vethora=phora.value.split(":");

   if (phora.value != "") {
      if (vethora.length!=2 || vethora[1]=="") {
         window.alert("Formato da Hora Invalida!");
         phora.select();
         phora.focus();
         return false;
      }
      else {
        return true;         
      }

      if((isNaN(hora)) || (isNaN(min))) {
         window.alert("Formato da Hora Invalida!");
         phora.select();
         phora.focus();
         return false;
      }
   }
}

/*Função para validar CNPJ*/
function getNumber( number , len )
{
  var result = '';
  var num, i;

  for ( i = 0 ; i < number.length ; i++ )
  {
	 try
	 {
		num = parseInt( number.substring( i, i + 1 ) );
		result += num;
	 }
	 catch (exception)
	 { }
  }
  if ( result.length != len )
  {
	 // Complet with zeros
	 result = '000000000000000' + result;
	 var newLen = result.length;
	 result = result.substring ( newLen - len , newLen );
  }
  return result;
}

function check1( value )
{
  var count = 1;
  var len = value.length;
  var first;
  if ( len > 1 )
  {
	 first = value.charAt( 0 );
  }
  else
  {
	 return false;
  }
  for ( var i = 1; i < value.length ; i++ )
  {
	 if ( value.charAt( i ) == first )
	 {
		count++;
	 }
  }

  if ( count == len )
  {
	 return false;
  }

  return true;
}

//Fim da função para validar CNPJ
function isCNPJ( cnpj )
{
  var cnpjCalc;
  var cnpjAdd;
  var i;
  var cnpjDigit;

  cnpj = getNumber( cnpj , 14 );

  check1( cnpj );

  // Get only numeric digits
  cnpjCalc = cnpj.substring( 0 , 12 );

  // First part of digit verification
  cnpjAdd = 0;
  for( i = 0 ; i < 4 ; i++ )
  {
	 cnpjAdd += parseInt( cnpjCalc.substring( i , i + 1 ) ) * (5 - i);
  }

  for( i = 0 ; i < 8 ; i++ )
  {
	 cnpjAdd += parseInt( cnpjCalc.substring( i + 4 , i + 4 + 1 ) ) * (9 - i);
  }

  // Fisrt digit
  cnpjDigit = 11 - (cnpjAdd % 11);

  if ( cnpjDigit == 10 || cnpjDigit == 11 )
  {
	 cnpjCalc += '0';
  }
  else
  {
	 cnpjCalc += cnpjDigit;
  }

  // Second part of digit verification
  cnpjAdd = 0;
  for ( i = 0 ; i < 5 ; i++ )
  {
	 cnpjAdd += parseInt( cnpjCalc.substring( i , i + 1 ) ) * (6 - i);
  }
  for ( i = 0 ; i < 8 ; i++ )
  {
	 cnpjAdd += parseInt( cnpjCalc.substring( i + 5, i + 5 + 1 ) ) * (9 - i);
  }

  // Second digit
  cnpjDigit = 11 - (cnpjAdd % 11);
  if ( cnpjDigit == 10 || cnpjDigit == 11 )
  {
	 cnpjCalc += '0';
  }
  else
  {
	 cnpjCalc += cnpjDigit;
  }

  return ( cnpj == cnpjCalc );
}


function BlockKeybord()//for --> IE
{
	if((event.keyCode < 48) || (event.keyCode > 57))
	{
		event.returnValue = false;
	}
}

function troca(str,strsai,strentra)
{
	while(str.indexOf(strsai)>-1)
	{
		str = str.replace(strsai,strentra);
	}
	return str;
}

function isCurrency(valor)
{
   var aux;
   aux = valor.replace(".", "");

   aux = valor.split(",");

   if (aux.length<2)
   {
      valor += ",00";
   }

   var objRegExp  = /^[0-9]*,\d{2}$/;
   return objRegExp.test(valor);
}

/* ##################### FUNCOES DE MOEDA  ########################## */

//função para formatação de valores monetários retirada de
function formatamoney(c) {
    var t = this; if(c == undefined) c = 2;		
    var p, d = (t=t.split("."))[1].substr(0, c);
    for(p = (t=t[0]).length; (p-=3) >= 1;) {
	        t = t.substr(0,p) + "." + t.substr(p);
    }
    return t+","+d+Array(c+1-d.length).join(0);
}

function demaskvalue(valor, currency){
// Se currency é false, retorna o valor sem apenas com os números. Se é true, os dois últimos caracteres são considerados as 
// casas decimais
var val2 = '';
var strCheck = '0123456789';
var len = valor.length;
	if (len== 0){
		return 0.00;
	}

	if (currency ==true){	
		/* Elimina os zeros à esquerda 
		* a variável  <i> passa a ser a localização do primeiro caractere após os zeros e 
		* val2 contém os caracteres (descontando os zeros à esquerda)
		*/
		
		for(var i = 0; i < len; i++)
			if ((valor.charAt(i) != '0') && (valor.charAt(i) != ',')) break;
		
		for(; i < len; i++){
			if (strCheck.indexOf(valor.charAt(i))!=-1) val2+= valor.charAt(i);
		}

		if(val2.length==0) return "0.00";
		if (val2.length==1)return "0.0" + val2;
		if (val2.length==2)return "0." + val2;
		
		var parte1 = val2.substring(0,val2.length-2);
		var parte2 = val2.substring(val2.length-2);
		var returnvalue = parte1 + "." + parte2;
		return returnvalue;
		
	}
	else{
			//currency é false: retornamos os valores COM os zeros à esquerda, 
			//sem considerar os últimos 2 algarismos como casas decimais 
			val3 ="";
			for(var k=0; k < len; k++){
				if (strCheck.indexOf(valor.charAt(k))!=-1) val3+= valor.charAt(k);
			}			
	return val3;
	}
}

function reais(obj,event){

var whichCode = (window.Event) ? event.which : event.keyCode;
//Executa a formatação após o backspace nos navegadores !document.all
if (whichCode == 8 && !documentall) {	
//Previne a ação padrão nos navegadores
	if (event.preventDefault){ //standart browsers
			event.preventDefault();
		}else{ // internet explorer
			event.returnValue = false;
	}
	var valor = obj.value;
	var x = valor.substring(0,valor.length-1);
	obj.value= demaskvalue(x,true).formatCurrency();
	return false;
}
//Executa o Formata Reais e faz o format currency novamente após o backspace
FormataReais(obj,'.',',',event);
} // end reais


function backspace(obj,event){
//Essa função basicamente altera o  backspace nos input com máscara reais para os navegadores IE e opera.
//O IE não detecta o keycode 8 no evento keypress, por isso, tratamos no keydown.
//Como o opera suporta o infame document.all, tratamos dele na mesma parte do código.

var whichCode = (window.Event) ? event.which : event.keyCode;
if (whichCode == 8 && documentall) {	
	var valor = obj.value;
	var x = valor.substring(0,valor.length-1);
	var y = demaskvalue(x,true).formatCurrency();

	obj.value =""; //necessário para o opera
	obj.value += y;
	
	if (event.preventDefault){ //standart browsers
			event.preventDefault();
		}else{ // internet explorer
			event.returnValue = false;
	}
	return false;

	}// end if		
}// end backspace

function FormataReais(fld, milSep, decSep, e) {
var sep = 0;
var key = '';
var i = j = 0;
var len = len2 = 0;
var strCheck = '0123456789';
var aux = aux2 = '';
var whichCode = (window.Event) ? e.which : e.keyCode;

//if (whichCode == 8 ) return true; //backspace - estamos tratando disso em outra função no keydown
if (whichCode == 0 ) return true;
if (whichCode == 9 ) return true; //tecla tab
if (whichCode == 13) return true; //tecla enter
if (whichCode == 16) return true; //shift internet explorer
if (whichCode == 17) return true; //control no internet explorer
if (whichCode == 27 ) return true; //tecla esc
if (whichCode == 34 ) return true; //tecla end
if (whichCode == 35 ) return true;//tecla end
if (whichCode == 36 ) return true; //tecla home

//O trecho abaixo previne a ação padrão nos navegadores. Não estamos inserindo o caractere normalmente, mas via script

if (e.preventDefault){ //standart browsers
		e.preventDefault()
	}else{ // internet explorer
		e.returnValue = false
}

var key = String.fromCharCode(whichCode);  // Valor para o código da Chave
if (strCheck.indexOf(key) == -1) return false;  // Chave inválida

//Concatenamos ao value o keycode de key, se esse for um número
fld.value += key;

var len = fld.value.length;
var bodeaux = demaskvalue(fld.value,true).formatCurrency();
fld.value=bodeaux;

//Essa parte da função tão somente move o cursor para o final no opera. Atualmente não existe como movê-lo no konqueror.
  if (fld.createTextRange) {
    var range = fld.createTextRange();
    range.collapse(false);
    range.select();
  }
  else if (fld.setSelectionRange) {
    fld.focus();
    var length = fld.value.length;
    fld.setSelectionRange(length, length);
  }
  return false;

}

/* ##################### FIM FUNCOES DE MOEDA  ########################## */

function consultarCEP(){
    window.open('CEP/ConsultarCEP.aspx','CEP', "width=550,height=350,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no");
}

function selecionarCEP(CEP) {
    window.opener.atualizarCEP(CEP);
    window.close();
}

function guardaIdRegistro(valor)
{
	document.getElementById("Chave").value = valor;
}

function confirmaApagar(){
	if( confirm('O registro selecionado será permanentemente excluído, confirma?') )
		return true;
	else{
		return false;
	}
}

//Se a Hora1 for maior que a Hora2 return true, senao false.
//Se for Igual também retorna False
function TimeDiff(hora1, hora2)
{
    var h1 = hora1.split(':');
    var h2 = hora2.split(':');
        
    if ((h1[0]==h2[0]) && (h1[1]>=h2[1]))//Hora
        return false;        
    else if (h1[0]>h2[0])
        return false;
    else
        return true;
    
}

function troca()
{
    if(document.getElementById("divSenha").style.visibility=="hidden")
        document.getElementById("flgTrocaSenha").value = "0";
    else
        document.getElementById("flgTrocaSenha").value = "-1";                                
}

function esconder(divname)
{
	document.getElementById(divname).style.visibility="hidden";
	document.getElementById(divname).style.display="none";
}

function mostrar(divname)
{
	document.getElementById(divname).style.visibility="visible";
	document.getElementById(divname).style.display="block";
}

function esconderMostrar(divname)
{
	if(document.getElementById(divname).style.visibility=="hidden")
	{
		document.getElementById(divname).style.visibility="visible";
		document.getElementById(divname).style.display="block";
	}
	else
	{
		document.getElementById(divname).style.visibility="hidden";
		document.getElementById(divname).style.display="none";
	}
}

function redirecionaUsuario(idUsuario)
{
	window.open('/VPO2/aspx/usuariocontrato.aspx?id='+idUsuario);
}

//validacao de cpf para custom validation
function validaCPF(sender, args)
{
    var controle = document.forms[0]['txtCPF'];
    
    if (!isCPF(controle.value))    
        args.IsValid = false;
    else
        args.IsValid = true;
}

//validacao de email para custom validation
function validacaoEmail(sender,args)
{
    var caracter = new RegExp(/^[\w-]+(\.[\w-]+)*@(([A-Za-z\d][A-Za-z\d-]{0,61}[A-Za-z\d]\.)+[A-Za-z]{2,6}|\[\d{1,3}(\.\d{1,3}){3}\])$/);
    var valor = document.forms[0]['txtEmail'].value;
    
    if (caracter.test(valor))
        args.IsValid = true;
    else
        args.IsValid = false;
}

//validacao de telefone para custom validation
function validaTelefone(sender, args)
{
    var caracter = new RegExp(/^\(?\d{3}\)?\d{4}-\d{4}$/);
    var valor = document.forms[0]['txtTelefone'].value;
    
    if (caracter.test(valor))
        args.IsValid = true;
    else
        args.IsValid = false;
}

//validacao de url para custom validation
function validaURL(sender, args)
{
    var caracter = new RegExp(/^\w*[\://]*\w+\.\w+\.\w+[/\w+]*[.\w+]*$/);
    var valor = document.forms[0]['txtSite'].value;
    
    if (caracter.test(valor))
        args.IsValid = true;
    else
        args.IsValid = false;
}

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 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 MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  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 mmLoadMenus() {
  if (window.mm_menu_0225171227_0) return;
    window.mm_menu_0225171227_0 = new Menu("root",127,16,"Arial, Helvetica, sans-serif",10,"#666666","#FFFFFF","#E4E4E4","#47687A","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
   mm_menu_0225171227_0.addMenuItem("Cadastro&nbsp;Usuário","location='/VPO2/aspx/usuario.aspx'");
   mm_menu_0225171227_0.addMenuItem("Fechar&nbsp;Ponto");
   mm_menu_0225171227_0.addMenuItem("Fechar&nbsp;OS");
   mm_menu_0225171227_0.hideOnMouseOut=true;
   mm_menu_0225171227_0.bgColor='#999999';
   mm_menu_0225171227_0.menuBorder=1;
   mm_menu_0225171227_0.menuLiteBgColor='#CCCCCC';
   mm_menu_0225171227_0.menuBorderBgColor='#FFFFFF';

mm_menu_0225171227_0.writeMenus();
}

-->