﻿  function receipt(tid)
	{
		var receiptUrl = "https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid=" + tid + "&noMethod=1";
		window.open(receiptUrl,"receipt","width=430,height=700, scrollbars=yes,resizable=yes");		
	}
	
	function errhelp(errcode)
	{
		var errhelpUrl = "http://www.inicis.com/Help/errorcode_list.jsp?pstPayMethod=all&pstCode=" + errcode
		window.open(errhelpUrl,"errhelp","width=573,height=423");
	}
	
  function goShowReceipt(tid)
  {
	  var receiptUrl = "https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid=" + tid + "&noMethod=1";
	  var win = window.open(receiptUrl,"receipt","menubar=1,width=430,height=700, scrollbars=yes,resizable=yes,left=252,top=116");
	  win.focus();
	  
  }
  
  function GoCheckDelivery(ship_company, num)
  {
    switch(ship_company)
    {  
     case "우체국택배": 
   	  var win = window.open('http://service.epost.go.kr/trace.RetrieveRegiPrclDeliv.postal?sid1=' + num, 'chkdelivery','width=450, height=500, menubar=no, directories=no, resizable=yes, status=no, scrollbars=no');
      win.focus();	    
   	  break;
     case "대한통운택배": 
      var win = window.open ('http://www.doortodoor.co.kr/servlets/cmnChnnel?tc=dtd.cmn.command.c03condiCrg01Cmd&invc_no='+num,"_ship","");
      win.focus();	    
      break;
     case "옐로우캡택배": 
      var win = window.open ('http://yellowcap.bizeye.co.kr/search.asp?slipno='+num,"signp1","left=0,top=0,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=635,height=700");
      win.focus();	    
      break;
    }
  }