function rowEffect(object, cssclass) {
  object.className = cssclass;
}

function bloqEnter(objEvent, buttonNome)
// uso: onkeypress="bloqEnter(event, 'SubmitMovES')"
{
 var iKeyCode;
 iKeyCode = objEvent.keyCode;
 if(iKeyCode == 13) {
	 document.getElementById(buttonNome).click();
	 return false;
	 
	 }
}


function SomenteNumero(e){
    var tecla=(window.event)?event.keyCode:e.which;
    if((tecla > 47 && tecla < 58)){ 
		return true;
	}else{
		if(tecla == 9){ return true; }		
    	if (tecla != 8){
			return false;
		}else{
			return true;
		}

    }
}



function hideEL(elemNome){
document.getElementById(elemNome).style.visibility="hidden";
}
function showEL(elemNome){
document.getElementById(elemNome).style.visibility="visible";
}


function postConteudo(valor, elemNome, submNome){
document.getElementById(elemNome).value=valor;	
document.getElementById(submNome).click();
tb_remove();
}



function checkBrowser(){
  this.ver=navigator.appVersion
  this.dom=document.getElementById?1:0
  this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
  this.ie4=(document.all && !this.dom)?1:0;
  this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
  this.ns4=(document.layers && !this.dom)?1:0;
  this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5)
  return this
}

function hideTela(){
  bw=new checkBrowser();
  var div ="divLoadCont"
  obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?document[div]:0;
  obj.visibility='visible'
  }

function retornaWsize(ref){
	if(ref == "w"){
		var wid = document.body.clientWidth;	
	}
	if(ref == "h"){
		var wid = document.body.clientHeight;	
	}
	document.write(wid);
}


function setConteudo(componente, valor){
 document.getElementById(componente).value=valor;
}


function temporizadorPag(){
t = setTimeout("recarrega()",60000);
}

function stopTimer()
{
try{
clearTimeout(t);
}catch(e){
	
}
}

function recarrega(){
location.reload(true);
}
