//===============================================================================
//All contents of this file are confidential and 
//copyright (c) Inland Revenue Authority of Singapore
//All rights reserved.
//===============================================================================

/****************************************************************
* 
* File Name		 :	print.js
* 
* Created		 :	24-Jun-2009
* Original Author:	Sabitha
* 
***************************************************************
* MODIFICATION HISTORY
* ------------------------------------------------------------
* When			Who				Why
* ------------------------------------------------------------
* 24-Jun-2009	Sabitha			Created
*/
/*
*---------------------------------------------------------------
 * FUNCTION		: printThisPage()
 *---------------------------------------------------------------
 * DESCRIPTION  : Print the Content of the page
 * PARAMETER    : 
 *---------------------------------------------------------------
 */
function printThisPage()
{
 var disp_setting="resizable=yes,toolbar=no,location=no,directories=yes,menubar=no,";
 disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25";  
 var content_value1 = document.getElementById("print").innerHTML;
 var docprint=window.open("","",disp_setting);
 docprint.document.open();
 docprint.document.write('<html><head><title>Calculate your Property Tax</title>');
 docprint.document.write('<style type="text/css">');
 docprint.document.write('.style2 { width:100px;background-color:#D8D8D8; text-align:left; }');
 docprint.document.write('.calFields{width:400px; text-align:right;}.style3 { text-align:right; width:40px}.subHead{padding: 5px 0; }');
 docprint.document.write('.style1{width:400px;}.style6{ background-color:#A0A0A0; text-align:left; font-weight: bold; width:100px}')
 docprint.document.write('</style>');
 docprint.document.write('<script type="text/javascript" src="scripts/tooltip.js"></script>');
 docprint.document.write('</head><body style=" font-family:Arial,verdana,Sans-Serif; color:#000; margin: 0 2px 0 2px; background: white;" >');   
 docprint.document.write('<div valign="top" align="right" cellspacing="0" cellpadding="0" border="0"><a href="javascript:void(0);" id="hyperlinkPrint" onclick="javascript:window.print();"><b>Print</b></a>&nbsp;&nbsp; <a href="javascript:void(0);" id="hyperlinkClose" onclick="javascript:window.close();"><b>Close</b></a></div>');
 docprint.document.write('<table  cellpadding="4 px" width="100%" border="0"><tr><th width="100%" colspan="4" align="left" style="background-color:#C62C2A;">');
 docprint.document.write('<span style="color:white;"> <h1>Calculate your Property Tax<h1></span></th></tr></table>');
 docprint.document.write(content_value1);
 docprint.document.write('</body></html>');
 docprint.document.close();
 docprint.focus();
}
 
 