	var actualClass;
	function paintRow(obj){
		actualClass = obj.className;
		obj.className = "rowSelected";
	}
	function unpaintRow(obj){
		obj.className = actualClass;
	}
	/*** function openPage( url:String )      ***/
	function openPage(url)//void 
	{
		self.location.href = url;
	}
	function valEmp(dato, nombre){
		if(dato == ""){
			alert("El campo " +nombre+" no puede ir vacio");
			return false;
		}else 
			return true;
	}
	function valStr(dato, nombre){
		var eregf = /[^\w\-\.' '1234567890ρΡαινσϊΑΙΝΣΪ:]/;
		if(eregf.test(dato)){
			alert("Solo se permiten letras en el campo "+nombre);	
			return false;
		}else return true;			
	}
	function valEma(dato){
	  var eregf = /[^\w\-\.]/;
	  var filter=/^.+@.+\..{2,3}$/;
		if ( (filter.test(dato)) && (eregf.test(dato)) )return true;
			else{
				alert("El campo Email es incorrecto");
				return false;
			}
	}
	function getSelectedValues(select) {
		var r = new Array();
		for (var i = 0; i < select.options.length; i++)
		if (select.options[i].selected){
			r.push(select.options[i].value);		
		}
		return r;
	}		 

	function resize(pix, size) {
	 if (pix.width > 20){
    	w=pix.width;
    	h=pix.height;
    	if (w > size) {
      		f=1-((w - size) / w);
      		pix.width=w * f;
      		pix.height=h * f;
    	}   	 
  	  }
	}


  function showit(segment)  {
    document.getElementById(segment).style.visibility="visible";
  }
  
  function hideit() {
    for (i=0;i<document.getElementsByTagName("p").length; i++) {
	document.getElementsByTagName("p").item(i).style.visibility = "hidden";
    }
  }  

		//{EDTBUTTONS}
