// JavaScript Document
function on_usr(){
	var OriGen = document.getElementById("x_user");
	var Str = OriGen.value;
	if(Str.search(/usuario@dominio.com/)=='0'){
		OriGen.value='';
	}
}
function off_usr(){
	var OriGen = document.getElementById("x_user");
	var Str = OriGen.value;
	if(OriGen.value==''){
		document.getElementById("x_user").value='usuario@dominio.com';
	}
	return true;
}
function n_ft_min(){
	var OriGen = document.getElementById('ContNot');
	var OriGen2 = document.getElementById('ContNott');
	if(OriGen.style.fontSize==''){
		OriGen.style.fontSize='10px';
		OriGen2.style.fontSize='10px';
		return true;
	}
	if(OriGen.style.fontSize=='10px'){
		OriGen.style.fontSize='9px';
		OriGen2.style.fontSize='9px';
		return true;
	}
	if(OriGen.style.fontSize=='12px'){
		OriGen.style.fontSize='10px';
		OriGen2.style.fontSize='10px';
		return true;
	}
	if(OriGen.style.fontSize=='14px'){
		OriGen.style.fontSize='12px';
		OriGen2.style.fontSize='12px';
		return true;
	}
}
function n_ft_mor(){
	var OriGen = document.getElementById('ContNot');
	var OriGen2 = document.getElementById('ContNott');
	if(OriGen.style.fontSize==''){
		OriGen.style.fontSize='10px';
		OriGen2.style.fontSize='10px';
		return true;
	}
	if(OriGen.style.fontSize=='9px'){
		OriGen.style.fontSize='10px';
		OriGen2.style.fontSize='10px';
		return true;
	}
	if(OriGen.style.fontSize=='10px'){
		OriGen.style.fontSize='12px';
		OriGen2.style.fontSize='12px';
		return true;
	}
	if(OriGen.style.fontSize=='12px'){
		OriGen.style.fontSize='14px';
		OriGen2.style.fontSize='14px';
		return true;
	}
}
function GoTo(ini){
	var inif=document.getElementById('ini');
	inif.value=(ini*10)-10;
	document.paginator.submit();
}
function GoToPrev(){
	var inif=document.getElementById('ini');
	if(inif.value<10){
		return false;
	}else{
		inif.value=inif.value-10;
		document.paginator.submit();
	}
}
function GoToNext(){
	var inif=document.getElementById('ini');
	var tot=document.getElementById('nr');
	if((tot.value<10) || (inif.value>(tot.value-10))){
		return false;
	}else{
		inif.value=parseInt(inif.value)+10;
		document.paginator.submit();
	}
}
function sel_todo(){
   for (i=0;i<document.enviar.elements.length;i++)
      if(document.enviar.elements[i].type == "checkbox")
         document.enviar.elements[i].checked=1
}
function des_todo(){
   for (i=0;i<document.enviar.elements.length;i++)
      if(document.enviar.elements[i].type == "checkbox")
         document.enviar.elements[i].checked=0
}
function mardes(obj){
	if(document.getElementById(obj).checked==1){
		des_todo();
	}else{
		sel_todo();
	}
}