<?
session_start();

$document = array();
$script = "";
$init = "";

require "../lib/getnpost.php";
require "../lib/config.php";
require "../lib/dbconnect.php";
require "../lib/auth.php";
require "../lib/common.php";

require "helpdesk_common.php";

function mkHDRemote(&$document, &$script, &$init) {
	$document['main'] .= <<<EOS
            <table width="670" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td background="/company/images/subtitle_back.gif"><img src="/helpdesk/images/subtitle_11.gif" width="120" height="29"> 
                </td>
              </tr>
            </table>
            <table width="670" border="0" cellspacing="10" cellpadding="0">
              <tr> 
                <td width="119" align="center" valign="top"><br>
                  <img src="/helpdesk/images/icon_05.gif" width="81" height="66"></td>
                <td width="1" bgcolor="#DADADA"></td>
                <td width="510" align="center"><img src="/helpdesk/images/caption_11.gif" width="499" height="128"><br>
                  <br>
                  <table width="480" border="0" cellpadding="10" cellspacing="5" bgcolor="#DADADA">
                    <tr>
                      <td align="center" bgcolor="#FFFFFF" >
		<script language="javascript">
		function RegProd(){
		window.open('','act','width=300,height=150,menubars=no,scrollbars=no,resizable=no');
		document.cp_dofrm.target='act';
		document.cp_dofrm.action="ch_hdcoupon_do.php";
		//document.cp_dofrm.submit();
		}

		function ToUpper(obj){
			if (obj.value){
				str = obj.value;
				up_str = str.toUpperCase();
				obj.value = up_str;
			}

		}
		</script>
<form onSubmit="RegProd();" name="cp_dofrm" method="post">
<table>
<tr>
<td width="400" align="center">
<input name="keys[]" type="text" maxlength="4" class="box04" style="width: 50px;" onKeyUp="ToUpper(this);"> - 
<input name="keys[]" type="text" maxlength="4" class="box04" style="width: 50px;" onKeyUp="ToUpper(this);"> - 
<input name="keys[]" type="text" maxlength="4" class="box04" style="width: 50px;" onKeyUp="ToUpper(this);"> - 
<input name="keys[]" type="text" maxlength="4" class="box04" style="width: 50px;" onKeyUp="ToUpper(this);"> - 
<input name="keys[]" type="text" maxlength="4" class="box04" style="width: 50px;" onKeyUp="ToUpper(this);">
</td>
<td width="80" align="center">
<input type="image" src="images/b_couponok.gif" width="75" height="22" />
</td>
</tr>
</table>
</form>
                      </td>
                    </tr>
                  </table>
                  <br>
                </td>
              </tr>
            </table>
            <br>
            <table width="670" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td background="/company/images/subtitle_back.gif"><img src="/helpdesk/images/subtitle_12.gif" width="120" height="29"> 
                </td>
              </tr>
            </table>
            <table width="670" border="0" cellspacing="10" cellpadding="0">
              <tr> 
                <td width="119" align="center" valign="top"><br>
                  <img src="/helpdesk/images/icon_06.gif" width="78" height="75"></td>
                <td width="1" bgcolor="#DADADA"></td>
                <td width="510" align="center"><img src="/helpdesk/images/caption_12.gif" width="499" height="127"><br> 
                  <br> <table width="480" border="0" cellpadding="10" cellspacing="5" bgcolor="#DADADA">
                    <tr> 
                      <td align="center" bgcolor="#FFFFFF" >
<form>
<table>
<tr>
<td width="400" align="center">
<input name="textfield6" type="text" class="box04" style="width: 50px;"> - 
<input name="textfield22" type="text" class="box04" style="width: 50px;"> - 
<input name="textfield32" type="text" class="box04" style="width: 50px;"> - 
<input name="textfield42" type="text" class="box04" style="width: 50px;"> - 
<input name="textfield52" type="text" class="box04" style="width: 50px;">
</td>
<td width="80" align="center">
<input type="image" src="images/b_couponok.gif" width="75" height="22" />
</td>
</tr>
</table>
</form>
                      </td>
                    </tr>
                  </table>
                  <br> </td>
              </tr>
            </table> <br>
            <br>

EOS;
}

## Start

mkHDRemote($document, $script, $init);

$document['subtitlename'] = "ÄíÆùµî·Ï";

$document['subtitle'] = <<<EOS
<img src="/helpdesk/images/subtitle_06.gif" />
EOS;

$document['caption'] = <<<EOS
<img src="/helpdesk/images/caption_10.gif" />
EOS;

require "helpdesk_template.php";
?>
