	function soNumeroBarra(campo) {
	  var caracteresIvalidos = "1234567890/";
	  for (i = 0; i < campo.value.length; i++) {
	    if (caracteresIvalidos.indexOf(campo.value.charAt(i)) == -1) {
	      temp1 = campo.value.substr(0, i);
	      temp2 = campo.value.substr(i + 1, campo.value.length);
	      campo.value = temp1 + temp2;
	      i = 0;
	    }
	  }
	}
	
	function maskFormatDate(component,componentFocus){
	 	var v = component.value;
	    v=v.replace(/\D/g,"") 					//Remove tudo o que não é dígito
	    v=v.replace(/^(\d{2})(\d)/,"$1/$2")     //Coloca barra entre o segundo e o terceiro dígitos
	    v=v.replace(/(\d{2})(\d)/,"$1/$2")      //Coloca hífen entre o quarto e o quinto dígitos
		v=v.substr(0, 10);
	    component.value = v;
	}	
	
	var win = null;
	
	function NewWindow(mypage,myname,w,h,scroll){
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes,status=no';
		win = window.open(mypage,myname,settings)
	}

	