<? 
   if (function_exists("mb_http_input")) mb_http_input("euc-kr"); 
   if (function_exists("mb_http_output")) mb_http_output("euc-kr");
?>
<?
    $rcid       = $_POST["reCommConId"];
    $rctype     = $_POST["reCommType"];
    $rhash      = $_POST["reHash"];
	
	$p_protocol = "http";
	if (strlen($_SERVER['SERVER_PROTOCOL'])>4 && "https" == substr($_SERVER['SERVER_PROTOCOL'],0,5) )
	{
		$p_protocol = "https";
	}
?>
<html>
<head>
<meta http-equiv="Cache-Control" content="no-cache"> 
<meta http-equiv="Pragma" content="no-cache"> 
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<title>KSPay(<?echo($rcid)?>)</title>
<script language="JavaScript">
<!--
    function init()
	{
 		document.domain="barbiestyle.co.kr";

		if (typeof(top.opener) == "undefined" || typeof(top.opener.eparamSet) == "undefined" || typeof(top.opener.goResult) == "undefined")
 		{
 			alert("ERROR: 주문페이지를 확인할 수 없어 결제를 중단합니다!!");
 			self.close();
 			return;
 		}
<? if (!empty($rcid) && 10 > strlen($rcid)) { ?>
		alert("ERROR: 결제요청정보(<?echo($rcid)?>)를 확인할 수 없어 결제를 중단합니다!!");
		self.close();
		return;
<? }else{ ?>
        top.opener.eparamSet("<?echo($rcid)?>","<?echo($rctype)?>","<?echo($rhash)?>");
        top.opener.goResult();
<? } ?>
		setTimeout( 'self.close()', '3000' );
    }

    init();
-->
</script>
</head>
<body>
 	<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
        <td valign="middle" align="center"><table width="450" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="<?echo($p_protocol)?>://kspay.ksnet.to/store/KSPayFlashV1.3/mall/imgs/processing.gif" width="450" height="141"></td>
          </tr>
          <tr>
            <td><img src="<?echo($p_protocol)?>://kspay.ksnet.to/store/KSPayFlashV1.3/mall/imgs/process_step.gif" width="456" height="20"></td>
          </tr>
        </table>		
		</td>
      </tr>
    </table>
</body>
</html>