/*Funciones para textareas*/
//Parametros:TextArea, Ancho, Alto
function TA_Resize(TA,w,h){   
    TA.cols=h;
    TA.rows=w; 
}
/*Funciones para Colores*/
color_view=null;
color_editor=null;
function VerColor(col){
  if (color_view != null){
	   NoVerColor();
  }
  if (col.length >0){
       color_view = window.open('','', 'width=200,height=120,screenX=0,screenY=0');
	   color_view .document.bgColor = col;
       color_view .document.title=col;
	   setTimeout("NoVerColor()",2000);
  }
  return true
}
function NoVerColor(){
  if (color_view != null){
      color_view.window.close()
      color_view = null
  }
  return true
}

var current_textobj_color=null;
function EditarColor(url_editor,textobj){
   if (color_editor!=null)
     color_editor.close()
   current_textobj_color=textobj;
   color_editor=window.open(url_editor,'','width=300,height=200');
   color_editor.opener=self;
}
function setColor(color){
    current_textobj_color.value=color;
	color_editor.close();
}
