function printPage(includeUrl, imagesUrl, nicBackheaderLogoPrint) {
	var printPage = null;
	var pageTitle = "";
	var pageContent = "";
	if (document.getElementById("printTitle") != null) {
		pageTitle = document.getElementById("printTitle").value;
	}
	if (document.getElementById("printContent") != null) {
		pageContent = document.getElementById("printContent").innerHTML; 
	}
	printPage = window.open('','','width=1000, height=700, toolbar=1, resizable=1, scrollbars=1'); 
	printPage.document.writeln("<html xmlns='http://www.w3.org/1999/xhtml'><head><title>Registry .MX</title>");
	printPage.document.writeln("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />");
    printPage.document.writeln("<meta http-equiv='expires' content='-1'/>");
	printPage.document.writeln("<meta http-equiv='cache-control' content='no-cache'/>");
	printPage.document.writeln("<link rel='stylesheet' type='text/css' href='" + includeUrl + "/nicStylesDefault.css' />");
	printPage.document.writeln("<link rel='stylesheet' type='text/css' href='" + includeUrl + "/nicStyles.css' />");
	printPage.document.writeln("<link rel='stylesheet' type='text/css' href='" + includeUrl + "/nicStylesPrint.css' />");
	printPage.document.writeln("<link href='" + includeUrl + "/nicStyles2.css' rel='alternate stylesheet' type='text/css' title='nicStyles2'/>");
	printPage.document.writeln("<link href='" + includeUrl + "/nicStyles3.css' rel='alternate stylesheet' type='text/css' title='nicStyles3'/>");
    printPage.document.writeln("<link rel='stylesheet' media='all' type='text/css' href='" + includeUrl + "/dropdown_ie5.css'/>");
    
    printPage.document.writeln("<scrip" + "t type='text/javascript'>");
    printPage.document.writeln("function resize_iframe(){"); 
	printPage.document.writeln("document.getElementById('sizeframe').height=100;");
	printPage.document.writeln("document.getElementById('sizeframe').height=window.frames['sizeframe'].document.body.scrollHeight + 20;");
	printPage.document.writeln("}");
	printPage.document.writeln("</scrip" + "t>");
	printPage.document.writeln("<scrip" + "t type='text/javascript'>");
	printPage.document.writeln("function sample(){"); 
	printPage.document.writeln("return false;");
	printPage.document.writeln("}");	
    printPage.document.writeln("</scrip" + "t>");
    
    printPage.document.writeln("</head>")
    printPage.document.writeln("<body bgcolor='#ffffff' onload='window.print()'>");
    printPage.document.writeln("<table width='750' border='0' cellspacing='0' cellpadding='0' style='text-align:center; margin:auto;' bgcolor='#FFFFFF'>");
    printPage.document.writeln("<tr><td><img src='" + imagesUrl + "/" + nicBackheaderLogoPrint + "' alt='NicMX' width='600' height='125' /></td></tr>");
    printPage.document.writeln("<tr><td class='InteriorContenidoEncabezado'>");
    printPage.document.writeln(pageTitle);
    printPage.document.writeln("</td></tr>");
    printPage.document.writeln("<tr><td>&nbsp;</td></tr>");
    printPage.document.writeln("<tr><td class='InteriorContenidoTexto'><div align='center'>"); 
	printPage.document.writeln(pageContent); 
	printPage.document.writeln("</div></td></tr><tr><td>&nbsp;</td></tr>");
	printPage.document.writeln("</table>" + "</b" + "ody></html>");
	
	//IE7
	if (printPage.document.all) {
		for (var i=0; i < printPage.document.all.length; i++) {
			if (printPage.document.all(i).tagName == 'A') {
				printPage.document.all(i).href = '#';
				printPage.document.all(i).onclick = "sample();";
				printPage.document.all(i).onmouseover = "sample();";
				printPage.document.all(i).onmouseout = "sample();";
			}
			if (printPage.document.all(i).tagName == 'SELECT') {
				printPage.document.all(i).onclick = "sample();";
				printPage.document.all(i).onchange = "sample();";
			}
		}
	} else {
		printPage.document.writeln("<scrip" + "t type='text/javascript'>");
    	printPage.document.writeln("var links = document.getElementsByTagName('A');");
    	printPage.document.writeln("for (var i=0; i < links.length; i++) {");
    	printPage.document.writeln("links[i].href='http://#';");
    	printPage.document.writeln("links[i].onclick = 'sample();'");
    	printPage.document.writeln("links[i].onmouseover = 'sample();'");
    	printPage.document.writeln("links[i].onmouseout = 'sample();'");
    	printPage.document.writeln("}");
    	printPage.document.writeln("var selects = document.getElementsByTagName('SELECT');");
    	printPage.document.writeln("for (var i=0; i < selects.length; i++) {");
    	printPage.document.writeln("selects[i].onclick = 'sample();'");
    	printPage.document.writeln("selects[i].onchange = 'sample();'");
    	printPage.document.writeln("}");
    	printPage.document.writeln("</scrip" + "t>");
	}	
	
}