	function irA(ano){
		alert(ano);
		//window.localtion.href="?mod=contribuyentes&submod=0&ano="+ano; 
	}

	/**
	 * Imprime en una nueva ventana tipo popup el contenido del componente que viene por parametro.
	 * @param {Object} sourceid El id del componente del cual se lee.
	 * @param {Object} wwidth El ancho de la ventana nueva.
	 * @param {Object} wheight El alto de la ventana nueva.
	 */	
	function imprimir(sourceid,wwidth,wheight){
		var especificaciones="top=0, left=0, toolbar=no,location=no, status=no,menubar=no,scrollbars=no, resizable=no, width="+wwidth+",height="+wheight;
		var titulo="Titulo";
		var mywin = window.open("",titulo,especificaciones);
		mywin.document.write("<html><head>" + 
							 "<LINK rel=\"stylesheet\" type=\"text/css\" href=\"/dgr/servicios/css/emitir.css\">" +
							 "<title>DGR Chubut</title></head><body>");
		mywin.document.write(document.getElementById(sourceid).innerHTML);
		mywin.document.write("</body></html>");
		mywin.document.close();
		mywin.print();
	}
	
	
function abi_imprimir(sourceid,wwidth,wheight){
	var especificaciones="top=0, left=0, toolbar=no,location=no, status=no,menubar=no,scrollbars=yes, resizable=yes, width="+wwidth+",height="+wheight;
	var titulo="DGR Chubut";
	var mywin = window.open("",titulo,especificaciones);
	mywin.document.write("<html><head>" + 
						 "<link rel=\"stylesheet\" href=\""+sitio_url+"css/style.css\" type=\"text/css\" media=\"screen\" />"+
						 "<link rel=\"stylesheet\" href=\""+sitio_url+"css/form.css\" type=\"text/css\" media=\"screen\" />"+
						 "<title>DGR Chubut</title></head><body style=\"background:none;\">");
	mywin.document.write("<div id=\"content-bd\">" + document.getElementById(sourceid).innerHTML + "</div>");
	mywin.document.write("</body></html>");
	mywin.document.close();
	mywin.print();
}
	
	function res(mensaje){
		alert(mensaje);
	}
	function totalizar(ops_ids,to_id){
		var  tot;
		tot = 0.0;
		for (i=0;i< ops_ids.length;i++){
			if (document.getElementById(ops_ids[i]).value == ''){
				document.getElementById(ops_ids[i]).value = parseFloat(0);
			}
			tot += parseFloat(document.getElementById(ops_ids[i]).value.replace('\,','.'));
		}
		document.getElementById(to_id).innerHTML = tot.toString();
	}

	function verificarTamano(eid,sizet,mensaje){
			if (document.getElementById(eid).value.length > (parseInt(sizet))){
				alert('La descripcion no puede contener más de '+sizet+' caracteres. Ha sido recortada.');
				document.getElementById(eid).value=document.getElementById(eid).value.substr(0,sizet-1);
			}
	}
	function validarImporte(eid){
		var reg = new RegExp('^\\d*\\,?\\d{0,2}$');
		if (!(document.getElementById(eid).value.match(reg))){
			alert("Importe no válido: ingrese un importe de la forma 22,4");
			document.getElementById(eid).value = '';
		}
	}
	
	
	function agregarFavorito(p_url,p_titulo){
    	alert("Presione Crtl+D para agregar este sitio en sus Bookmarks"); 
	} 

