function goDelView(delName, delnum)  {
var viewURL = "";
	if (delName == "20") {
		viewURL = "http://d2d.ilogen.com/d2d/delivery/invoice_tracesearch_link_view.jsp?slipno="+delnum;
	} else if (delName == "86") {
		viewURL = "http://www.dongbuexpress.co.kr/Html/Delivery/DeliveryCheckView.jsp?item_no="+delnum;
	} else if (delName == "65") {
		viewURL = "http://www.hlc.co.kr/hydex/jsp/tracking/trackingViewCus.jsp?InvNo="+delnum;
	} else if (delName == "60") {
		viewURL = "http://www.hanjinexpress.hanjin.net/customer/hddcw18.tracking?w_num="+delnum;
	} else if (delName == "75") { //CJ GLS
		viewURL = "http://nexs.cjgls.com/web/service02_01.jsp?slipno="+delnum;
	}
	var selfWindow = window.open(viewURL, "goWindow", "");

}
function bookMark() {
	var title = document.title;
	var url = window.location.href;
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) {
		window.external.AddFavorite( url, title);
	}
}
// PODs. ÆíÁý³»¿ë ¹Ì¸®º¸±â Ã¢ È£Ãâ
function goPreview(viewType, storageCode, productcode) {
	var turl = "";
	var selfParam = "?storageid=" + storageCode+"&viewtype="+viewType+"&productcode="+productcode;
	var selfWindow = "";

	if (viewType == "print") {
		turl = "/goods/preview_print.asp" + selfParam;
		selfWindow = window.open(turl, 'printPreview', 'width=750,height=550,scrollbars=yes');
	} else if (viewType == "identity") {
		alert('ÁØºñÁßÀÔ´Ï´Ù.');
	} else if (viewType == "photobook") {
		turl = "/goods/preview_photobook.asp" + selfParam;
		selfWindow = window.open(turl, 'photobookPreview', 'width=1000,height=700,scrollbars=auto,status=no');
	} else if (viewType == "shopping") {
		turl = "/goods/preview_shopping.asp" + selfParam;
		selfWindow = window.open(turl, 'shoppingPreview', 'width=320,height=450,scrollbars=auto,status=no');
	} else if (viewType == "photofancy") {
		alert('ÁØºñÁßÀÔ´Ï´Ù.');
	} else if (viewType == "calendar") {
		alert('ÁØºñÁßÀÔ´Ï´Ù.');
	} else {
		alert('¹Ì¸®º¸±â À¯ÇüÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
	}

}

// PODs. ÆíÁý³»¿ë ¹Ì¸®º¸±â Ã¢ È£Ãâ - front
function print_preview(arg, type) {
	var win_location = "";
	var win_name = "";
	var win_property = "";

		if (type == 'identity') {
			win_location = "/pop/identity_preview.asp?id="+arg;
			win_name = "kodakPreview";
			win_property = "width=810,height=800,scrollbars=no";
		} else if (type == 'print') {
			win_location = "/pop/print_preview.asp?id="+arg;
			win_name = "kodakPreview";
			win_property = "width=810,height=800,scrollbars=no";
		} else {
			win_location = "/pop/photo_preview.asp?id="+arg;
			win_name = "kodakPreview";
			win_property = "width=830,height=800,scrollbars=no";
		}
	var selfWindow = window.open(win_location, win_name, win_property);

}
//Æ÷Åä½ºÅä¸® ¹Ì¸®º¸±â
function goPhotoStoryView(stgid) {
	turl = "/webzin/photostory.asp?stgid=" + stgid;
	window.open(turl,'Æ÷Åä½ºÅä¸®','scrollbars=yes,resizable=no,width=1007 height=800 top=100 left=100');
}


//---- flash view -----//
function ShowFlash(url, width, height){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
	document.write('<param name="allowScriptAccess" value="always">');
	document.write('<param name="movie" value="..' + url + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="menu" value="false">');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<embed src="..' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
	document.write('</object>');
}

function SNSShare(type, title, longurl) {
	switch (type) {

		case 'me2day':
			var tag = 'Kodak KODAK online ÀÌº¥Æ®';
			var link = 'http://me2day.net/posts/new?new_post[body]="' + encodeURIComponent(title) + '":' + longurl + '&new_post[tags]=' + encodeURIComponent(tag);
			popwin = window.open(link, 'popwin', 'menubar=yes,toolbar=yes,status=yes,resizable=yes,location=yes,scrollbars=yes');
			if (popwin)
				popwin.focus();
			break;

		case 'yozm':
			var link = 'http://yozm.daum.net/api/popup/prePost?sourceid=41&link=' + longurl + '&prefix=' + encodeURIComponent(title);
			popwin = window.open(link, 'popwin', 'width=400,height=364,scrollbars=no,resizable=no');
			if (popwin)
				popwin.focus();
			break;

		case 'facebook':
			var link = 'http://www.facebook.com/sharer.php?u=' + encodeURIComponent(longurl) + "&t=" + encodeURIComponent(title);
			popwin = window.open(link, 'popwin', 'width=600,height=500,scrollbars=no,resizable=no');
			if (popwin)
				popwin.focus();
			break;

		default:
			alert('error');
			break;
	}
	return;

}
