color_rowover = "#FFFFFF";
color_rowout = "";

function ShowImage(image,width,height){
	width_window = width + 100;
	height_window = height + 150;

	if (width < 800){ width_window = 800} //para las imagenes de las caņitas esas, ancho minimo

	window.open("view_image.php?imagen=" + image + "&img_width=" + width + "&img_height=" + height,"","left=0,top=0,width="+ width_window +",height= "+ height_window +",toolbar=no,status=no,scrollbars=yes,fullscreen=no,resizable=yes");
}

function ShowImage_Corporate(imagetoshow,image,width,height){
	width_window = width + 100;
	height_window = height + 150;

	if (width < 800){ width_window = 800} //para las imagenes de las caņitas esas, ancho minimo

	window.open("view_image.php?imagetoshow="+imagetoshow+"&imagen=" + image + "&img_width=" + width + "&img_height=" + height,"","left=0,top=0,width="+ width_window +",height= "+ height_window +",toolbar=no,status=no,scrollbars=no,fullscreen=no,resizable=yes");
}



function OpenLink(page){
	window.open(page);
}


//Cambia el color de una fila de una tabla al recibir el foco
function RowFocus(row,color){
	row.style.backgroundColor = color ;
}

//igual al perder el foco
function RowBlur(row,color){
	row.style.backgroundColor = color ;
}