	<!--
	// concatenates window parameters
	function getParam(ancho,alto) {
		paramval = "toolbar=no,location=no,scrollbars=yes" +
		",width=" + ancho +
		",height=" + alto;
		return paramval;
	}
	// Opens new window
	function openWindow(url,name,param) {
			        newWindow = window.open(url,name,param);
    }

	// displays msg in message area
	function setMsg(msg) {
        window.status = msg;
        return true;
	}

	// effects image rollovers
	function changeImages(name,path) {
        document.images[name].src = path;
        return true;
	}

	// header
	function genHead(title,css,jsrc) {
		var header = '<head>';
		if (title.lengh) {
	   	header += '<title>' + title + '<\/title>';
		}
	   	if (css.length) {
		header += '<style type="text/css" media="screen">' + css + '<\/style>';
		}
		if (jsrc.length) {
	   	header += '<script type="text/javascript">' + jsrc + '<\/script>';
		}
		header += '<\/head>';
		return (header);
	}

	// body
	function genBody(contents) {

		var b1='<button type="button" onClick="self.close()">Cerrar<\/button>';
		var b2='<button type="button" onClick="self.print()">Imprimir<\/button>';

		var sbody = '<body>';
		sbody += contents;
	   	sbody += '<form>' + '<table><tr>';
		sbody += '<td>' + b1 + '<\/td>';
		sbody += '<td>' + b2 + '<\/td>';
		sbody += '<\/tr><\/table>' + '<\/form>';
		sbody += '<\/body>';
		return(sbody);
	}

	// shows htmlf Document
	var css_doc = ' body { color: #000000; background-color: #ffffff; font-family: sans-serif; font-size: small; } ';
	function showDoc(title, ancho, alto, doc) {
		var param = getParam(ancho,alto);
		newWindow = window.open('','docwin',param);
		newWindow.document.write(genHead(title,css_doc,''));
		newWindow.document.write(genBody(doc));
		newWindow.document.close();
	}

	// shows Pics
	function showPic(title,ancho, alto,img,alt,txt,css) {
		var param = getParam(ancho,alto);
		var contents='<div style="align: center;">';
		contents += '<img border=0 src="' + img + '" alt="' + alt + '">';
		contents += '<p>' + 'Figura: ' + txt + '<\/p>';
		contents += '</div>';
		newWindow = window.open('','picwin',param);
		newWindow.document.write(genHead(title,css,''));
		newWindow.document.write(genBody(contents));
		newWindow.document.close();
	}

	var css_map = ' body { color: #000000; background-color: #ffffff; font-family: sans-serif; font-size: small; } ';
	function showMap(title,img,alt,txt) {
		showPic(title,650,650,img,alt,txt,css_map);
	}

	// hacer ventana 800x600
	function ResizeWindow() {
		if ( confirm("Ajustar la ventana a 800 x 600") ) {
			self.resizeTo(800,600);
		}
	}
	//-->

