function FlashFatch(file,objWidth,objHeight,wmode) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='" + objWidth + "' height='" + objHeight + "'>");
	document.write("<param name='movie' value='" + file + "'>");
	document.write("<param name='quality' value='high'>");
	if(wmode == true) document.write("<param name='wmode' value='transparent'>");
	document.write("<embed src='" + file + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + objWidth + "' height='" + objHeight + "'></embed>");
	document.write("</object>");
}


function orderFlashFetch(objName,fileName) {
	if(fileName.indexOf("orderType2=")==-1)
		fileName += "&orderType2=1";
	else
		fileName = fileName.replace("orderType2=&","orderType2=1&");
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
	document.write(' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
	document.write(' width="930" height="700" id="' + objName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + fileName + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#cccccc" />');
	document.write('<embed src="'+fileName+'" quality="high" bgcolor="#cccccc"');
	document.write(' width="930" height="700" name="' + objName + '" align="middle" allowScriptAccess="sameDomain"');
	document.write(' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}


//ÀÌÇÏ ¹ä½º Á¦ÀÛ 2007.1.11

//Ä«µå °áÁ¦ ÆäÀÌÁö·Î ÀÌµ¿
function cardPayment(orderKey){
	if(!orderKey)
		alert("ÁÖ¹®Å°°¡ ¾ø½À´Ï´Ù");
	else document.getElementById("heddenFrame").src = "/shop/payment.for.flash.php?orderKey="+orderKey;
}

function otherPayment(){
	opener.location.href = "/member/mysnackbox.php";
	window.self.close();
}

function modifyCardPayment(logKey){
	if(!logKey)
		alert("ÁÖ¹®Å°°¡ ¾ø½À´Ï´Ù");
	document.getElementById("heddenFrame").src = "/shop/payment.for.flash.modify.php?logKey="+logKey;
}


//Ã¢´Ý±â
function closewin(msg, para){
	if(!para){
		if(confirm(msg))
			self.close();
	}
	else
		self.close();
}

function failPayment(){
	document.getElementById("orderFls").setVariable("paymentResult", "false");
}


function succesPayment(){
	document.getElementById("orderFls").setVariable("paymentResult", "true");
	var openwin=window.open("/shop/childwin.html","childwin","width=299,height=149");
	openwin.close();	
}