function ExportToWord()
{
    global $cCharset;
    header("Content-Type: application/vnd.ms-word");
    header("Content-Disposition: attachment;Filename=Customer_Module_Assignment.doc");
    echo "<html>";
    echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=" . $cCharset . "\">";
    echo "<body>";
    echo "<table border=1>";
    WriteTableData();
    echo "</table>";
    echo "</body>";
    echo "</html>";
}
function ExportToWord($cipherer)
{
    global $cCharset;
    header("Content-Type: application/vnd.ms-word");
    header("Content-Disposition: attachment;Filename=pad_pad_daftar_hist.doc");
    echo "<html>";
    echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=" . $cCharset . "\">";
    echo "<body>";
    echo "<table border=1>";
    WriteTableData($cipherer);
    echo "</table>";
    echo "</body>";
    echo "</html>";
}
function ExportToWord($rs, $nPageSize, $strTableName, $eventObj, $cipherer, $pageObject)
{
	global $cCharset;
	header("Content-Type: application/vnd.ms-word");
	header("Content-Disposition: attachment;Filename=".GetTableURL($strTableName).".doc");

	echo "<html>";
	echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$cCharset."\">";
	echo "<body>";
	echo "<table border=1>";

	WriteTableData($rs, $nPageSize, $strTableName, $eventObj, $cipherer, $pageObject);

	echo "</table>";
	echo "</body>";
	echo "</html>";
}