// JavaScript Document
	function validar()
	{
		if(document.getElementById('slSubCategoria').value=="--SELECCIONE--")
		{
			document.getElementById('alertSubCat').style.display="block";
		}
		else
		{
			document.getElementById('alertSubCat').style.display="none";
		}
	}

<!--
// --------------------------------------------------------------------------------------------------
//		funciones de ventanas
// --------------------------------------------------------------------------------------------------
var ventana;
var cont=0;
var titulopordefecto = "ventana";
function redimensionar(ancho,alto) {
	if (document.all) {
		ventana.resizeTo(ancho+12,alto+28);
	} else {
		ventana.resizeTo(ancho+8,alto+55);
	}
	ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2);
} 
function mostrar_imagen(url_imagen,titulo){
	if(cont==1) {
		ventana.close();
		ventana=null;
	} 
	if (titulo==null) titulo=titulopordefecto;
	ventana=window.open('','ventana','resizable=yes,sc  rollbars=no');
	ventana.document.write('<html><head><title>' + titulo + '</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="' + url_imagen + '" onLoad="opener.redimensionar(this.width, this.height)">');
	ventana.document.close();
	cont++;
}

function abrir_ventana(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openwin(url, width, height) {
var name = "popup"; // popup name
var width = width; // popup width
var height = height; // popup height
var left = (screen.width - width) / 2 ;
var top = (screen.height - height) / 2;
var windowproperties = "width="+ width +",height="+ height +",left="+ left +",top="+ top +",scrollbars=1";
window.open(url, name, windowproperties);
}

// --------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------
