﻿function send_print_html(url) {
	var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=1,width=650,height=400,top=25,left=50";
	window.open(url,"",opciones); 
}

function make_print_html() {
	var wparent = window.opener;
	var vo_h = wparent.document.getElementById('div_header');
	if (vo_h==null) { vo_h = wparent.document.getElementById('ctl00_cph_center_div_header');}
	var vo_b = wparent.document.getElementById('div_body');	
	if (vo_b==null) { vo_b = wparent.document.getElementById('ctl00_cph_center_div_body');}
	tools_print();
	with(window.document) { 
		if (vo_h) {write(vo_h.innerHTML);}
		if (vo_b) {write(vo_b.innerHTML);}		
	}
}

function tools_print() {
	with(window.document) { 
		write("<div id='div_tool' style='width: 100%; text-align: right;'>");
		write("<a href='javascript:print();' title='Imprimir' ><img src='../imagenes/print16_button.png' border='0' align='middle' alt='Imprimir' /></a>");
		write(" ");		
		write("<a href='javascript:window.close();' title='Cerrar' ><img src='../imagenes/close_button.png' border='0' align='middle' alt='Cerrar' /></a>");
		write("</div><br />");
	}
}

function send_print_pdf(url) {
	var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=1,width=650,height=400,top=25,left=50";
	window.open(url,"",opciones); 
}
