﻿// JScript 파일

function GetReceiptPrint(paymenttype, TradeID)
{
    if(paymenttype == "S")
    {
        alert('Please request directly to cyberskyshop.');
    }
    else if(paymenttype == "A")
    {
		var tread = window.open("https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid="+TradeID+"&noMethod=1", "PopReceipt", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=435,height=630");
    }
    else if(paymenttype == "C")
    {
    	var url = "http://www.payzone.co.kr/UI/receipt.jsp?controlNo=" + TradeID  ; 
        window.open(url,"MEMB_POP_RECEIPT", "toolbar=0,menubar=0,scrollbars=0,status=0,resizable=0,width=380,height=700");
    }
    else if(paymenttype == "R")
    {
        alert('Please contact to cyberskyshop if you completed your payment on your flight.');
    }
    else
    {
        alert('Your order information is not correct. \\n\\r\\n\\rPlease request to cyberskyshop  administrator.');
    }
}

function PopOrderList(ordercode)
{
	var checkPage = window.open("/ENGLISH/GOODS/pop_orderList.aspx?OrderCode=" + ordercode,"checkPage","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=552,height=448,top=0,left=400");
}

function ChangeFlt(id)
{
    ctl = "expectDate_" + id;
    var expectDate = document.getElementById(ctl).value; 
	var url = "MyMileCouponReg.aspx?x=1&cmID=" + id + "&expectDate=" + expectDate;
	
	if(expectDate.length != 10)
	{
		alert("탑승예정일을 입력해 주세요");
	}
	else
	{
		window.open(url,"reg","width=800,height=800");
	}
}
function LimousinePrint(orderCode)
{
	var checkPage = window.open("pop_MyLimousinePrint.aspx?orderCode=" + orderCode,"KAL_LIMOUSINE_PRINT","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=618,height=381");
	checkPage.focus();
}

function popLimousineSchedule()
{
	var checkPage = window.open("http://www.kallimousine.com/schedule/schedule_pop.asp","KAL_LIMOUSINE","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=630,height=460");
	checkPage.focus();
}

