var tp, cp;
/*
function prevPage()
{
	var i = cp-1;
	if ((i < 0)) return;
	var obj = document.getElementById("id"+cp);
	obj.style.display = "none";

	var obj = document.getElementById("id"+i);
	obj.style.display = "";
	cp = i;
	
	if (cp <= 0 ) {
		prevHot.style.display = "none";
		prevCool.style.display = "";
	}
	
	if (cp < tp) {
		nextHot.style.display = "";
		nextCool.style.display = "none";
	}
}

function nextPage( np )
{
	var i = cp+1;
	if (i > tp) return;
	var obj = document.getElementById("id"+cp);
	obj.style.display = "none";

	var obj = document.getElementById("id"+i);
	obj.style.display = "";
	cp = i;
	
	prevHot.style.display = "";
	prevCool.style.display = "none";	
	if (cp == tp) {
		nextHot.style.display = "none";
		nextCool.style.display = "";
		
	}
}
*/
function printDoc( titleFont )
{
	var i = 0;
	var docElement;

	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		html += '<link type="text/css" href="/common/styles/styles.css" rel="stylesheet">\n';
		html += '<link rel="stylesheet" href="/common/styles/ihtGlobal_v2.css">\n';
		html += '<link rel="stylesheet" href="/common/styles/menu.css">\n';
		html += '<script language="javascript" src="/common/vars/vars.js"></script>';
		html += '\n</HE' + 'AD>\n<BODY>\n<table cellspacing=0 cellpadding=5 border=0 width=100%><tr><td width=20>&nbsp;</td><td width=760 valign=top>';
		docElement = document.getElementById("idPageTopic");
		if (docElement != null)
		{
			html += '\n' + docElement.innerHTML + '\n';
			html += '\n<hr width="100%" color="black">\n';
		}
		/*
		for ( i = 0; i <= tp; i++ )
		{
			docElement = document.getElementById("id"+i);
			if (docElement != null)
			{
				html += docElement.innerHTML;
				html += "<br>";
			}
			docElement = null;
		}
		*/
		docElement = document.getElementById("articleBody");
		if (docElement != null)
		{
			html += docElement.innerHTML;
			html += "<br>";
		}
		docElement = null;

		html += '\n</td></tr></table></BO' + 'DY>\n</HT' + 'ML>';
		var windowPrint = window.open("","_samdocPrint");
		windowPrint.document.open();
		windowPrint.document.write(html);
		windowPrint.document.close();
		windowPrint.print();
	}
}

function printDocTam()
{
	var i = 0;
	var docElement;
	var titleFont = "Tam_Aniezhai";

	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		html += '<link type="text/css" href="/common/styles/styles.css" rel="stylesheet">\n';
		html += '<script language="javascript" src="/common/vars/vars.js"></script>\n';
		html += '<script language="javascript" src="/common/script/magscript.js"></script>\n';		
		html += '<script language="javascript" src="/common/script/mag.js"></script>\n';		
		html += '\n</HE' + 'AD>\n<BODY>\n<table cellspacing=0 cellpadding=5 border=0 width=100%><tr><td width=20>&nbsp;</td><td width=760 valign=top>';
		docElement = document.getElementById("idPageTopic");
		if (docElement != null)
		{
			html += '\n<div style="font: 20px ' + titleFont + ';">' + docElement.innerHTML + '</div>\n';
			html += '\n<hr width="100%" color="black">\n';
		}
		/*
		for ( i = 0; i <= tp; i++ )
		{
			docElement = document.getElementById("id"+i);
			if (docElement != null)
			{
				html += docElement.innerHTML;
				html += "<br>";
			}
			docElement = null;
		}
		*/
		docElement = document.getElementById("articleBody");
		if (docElement != null)
		{
			html += docElement.innerHTML;
			html += "<br>";
		}
		docElement = null;

		html += '\n</td></tr></table></BO' + 'DY>\n</HT' + 'ML>';
		var windowPrint = window.open("","_samdocPrint");
		windowPrint.document.open();
		windowPrint.document.write(html);
		windowPrint.document.close();
		windowPrint.print();
	}
}

function printDocEng()
{
	var i = 0;
	var docElement;
	var titleFont = "Verdana";

	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		html += '<link type="text/css" href="/common/styles/styles.css" rel="stylesheet">\n';
		html += '<link type="text/css" href="/common/styles/newsletter.css" rel="stylesheet">\n';
		html += '<script language="javascript" src="/common/vars/vars.js"></script>\n';
		html += '<script language="javascript" src="/common/script/magscript.js"></script>\n';
		html += '<script language="javascript" src="/common/script/mag.js"></script>\n';
		html += '\n</HEAD>\n<BODY>\n';
		docElement = document.getElementById("idPageTopic");
		if (docElement != null)
		{
			html += '\n<div style="font: 18px ' + titleFont + ';">\n' + docElement.innerHTML + '\n</div>\n';
			html += '\n<hr width="90%" color="black">\n';
		}
		/*
		for ( i = 0; i <= tp; i++ )
		{
			docElement = document.getElementById("id"+i);
			if (docElement != null)
			{
				html += docElement.innerHTML;
				html += "<br>";
			}
			docElement = null;
		}
		*/
		docElement = document.getElementById("articleBody");
		if (docElement != null)
		{
			html += '\n<div style="font: 13px ' + titleFont + ';">\n' + docElement.innerHTML + '\n</div>\n';
			//html += docElement.innerHTML;
			html += "<br>";
		}
		docElement = null;

		//html += '\n</td></tr></table></BO' + 'DY>\n</HT' + 'ML>';
		html += '\n</BODY>\n</HTML>';
		var windowPrint = window.open("","_samdocPrint");
		windowPrint.document.open();
		windowPrint.document.write(html);
		windowPrint.document.close();
		windowPrint.print();
	}
}



function emailLink1( strLink )
{
	var i = 0;
	var docElement;
	var titleFont = "Verdana";

	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		html += '<link type="text/css" href="/common/styles/styles.css" rel="stylesheet">\n';
		html += '<link rel="stylesheet" href="/common/styles/ihtGlobal_v2.css">\n';
		html += '<link rel="stylesheet" href="/common/styles/menu.css">';
		html += '\n</HEAD>\n<BODY>\n';
		docElement = document.getElementById("idPageTopic");
		if (docElement != null)
		{
			html += '\n<div style="font: 18px ' + titleFont + ';">\n' + docElement.innerHTML + '\n</div>\n';
			html += '\n<hr width="90%" color="black">\n';
		}
		/*
		for ( i = 0; i <= tp; i++ )
		{
			docElement = document.getElementById("id"+i);
			if (docElement != null)
			{
				html += docElement.innerHTML;
				html += "<br>";
			}
			docElement = null;
		}
		*/
		docElement = document.getElementById("articleBody");
		if (docElement != null)
		{
			html += '\n<div style="font: 13px ' + titleFont + ';">\n' + docElement.innerHTML + '\n</div>\n';
			//html += docElement.innerHTML;
			html += "<br>";
		}
		docElement = null;

		//html += '\n</td></tr></table></BO' + 'DY>\n</HT' + 'ML>';
		html += '\n</BODY>\n</HTML>';
		var windowPrint = window.open("","_samdocPrint");
		windowPrint.document.open();
		windowPrint.document.write(html);
		windowPrint.document.close();
		windowPrint.print();
	}
}
