var imprime;
function imprimir(ID, oQue){
  if (imprime){
    if (!imprime.closed) imprime.close();
  }
  imprime = window.open("imprimir.php?"+ID_NOTICIA+'='+oQue,"imprimir","toolbar=0 ,location=0, directories=0, status=0, menubar=0,width=500,height=440,scrollbars=1");
  imprime.focus();
	
}
var envia;	
function enviar(ID, oQue){
  if (envia){
    if (!envia.closed) envia.close();
  }
  envia =window.open("enviar.php?"+ID_NOTICIA+'='+oQue,"enviar","toolbar=0 ,location=0, directories=0, status=0, menubar=0,width=438,height=450,scrollbars=0");
  envia.focus();
	
}
function montarFlash( swf, width, height, wmode, cache) {
	noCache = cache || cache == undefined ? "" : "?" + new Date();
	wmode = wmode || wmode == undefined ? "opaque" : "transparent";
	
	monta_swf = "";
	monta_swf += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\""+ width +"\" height=\""+ height +"\" title=\"\">";
	monta_swf += "<param name=\"movie\" value=\""+ swf + noCache +"\" />";
	monta_swf += "<param name=\"quality\" value=\"high\" />";
	monta_swf += "<param name=\"menu\" value=\"0\" />";
	monta_swf += "<param name=\"wmode\" value=\""+ wmode +"\" />";
	monta_swf += "<embed src=\""+ swf + noCache +"\" quality=\"high\" wmode=\""+ wmode +"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+ width +"\" height=\""+ height +"\"></embed>";
	monta_swf += "</object>";
	
	document.write(monta_swf);
}
function startMenu( id) {
	if ( document.all && document.getElementById) {
		navRoot = document.getElementById( id);
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName == "LI") {
				node.onmouseover = function() {
					this.className += " over";
				}
				node.onmouseout = function() {
					this.className = this.className.replace(" over", "");
				}
			}
		}
	}
}



function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);

else
countfield.value = maxlimit - field.value.length;
}

	