
/*
 |______________________________________________________________________________________
 |  * Name : SSArtHall_Zipcode
 |  * Explanation : ¿ìÆí¹øÈ£Ã£±â
 |  * Output :  Windows Object
 |  * History : (position number : date / author / explain)
 |     #000 : 2008-01-07  / INNODIS-KimC  / ÃÖÃÊÀÛ¼º
 |     #001 :
 |     #002 :
 |     #003 :
 |  * Parameters
 |     objZipcode : ¿ìÆí¹øÈ£ ÇÊµå¸í
 |     objAddressMain : ÁÖ¼Ò ÇÊµå¸í1
 |     objAddressDetail : ÁÖ¼Ò ÇÊµå¸í2
 |______________________________________________________________________________________
*/
/* #000 ÃÖÃÊÀÛ¼º*/
function SSArtHall_Zipcode(fieldZipcode, fieldAddressMain, fieldAddressDetail) {

	var urlname = "/common/execute/Zipcode.asp?fieldZipcode=" + fieldZipcode + "&fieldAddressMain=" + fieldAddressMain + "&fieldAddressDetail=" + fieldAddressDetail;
	//alert(urlname);

	var h = 460;
	var w = 500;
	var iMyWidth;
	var iMyHeight;

	iMyWidth = (window.screen.width/2) - (w/2+50);
	iMyHeight = (window.screen.height/2) - (h/2+50);

	var winstyle = "left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",height=" + h + ",width=" + w + ", toolbar=no, menubar=no,directories=no,resizable=no,status=no,scrollbars=no,location=no,copyhistory=no";

	var openWin = window.open(urlname, null, winstyle);

	if(openWin == null) {
		alert("Â÷´ÜµÈ ÆË¾÷Ã¢À» Çã¿ëÇØ ÁÖ¼¼¿ä.");
	} else {
		openWin.focus();
	}

}


function showImgOriginal(imgurl){

	var h = 100;  //200
	var w =100;  //200
	var iMyWidth;
	var iMyHeight;

	//iMyWidth = (window.screen.width/2) - (w/2+50);
	//iMyHeight = (window.screen.height/2) - (h/2+50);
	iMyWidth = 0;  //20
	iMyHeight = 0;  //20

	var thisForm = document.frmMyform;
	var urlname = "/common/execute/previewImage.asp?imgurl=" + escape(imgurl);

	var openWin = window.open(urlname, "","left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",height=" + h + ",width=" + w + ", toolbar=no, menubar=no,directories=no,resizable=no,status=no,scrollbars=yes");

	openWin.focus();

}

function showFlashOriginal(furl){

	var h = 200;  //300
	var w = 200;  //336
	var iMyWidth;
	var iMyHeight;

	//iMyWidth = (window.screen.width/2) - (w/2+50);
	//iMyHeight = (window.screen.height/2) - (h/2+50);
	iMyWidth = 20;
	iMyHeight = 20;

	var thisForm = document.frmMyform;
	var urlname = "/common/execute/previewFlash.asp?furl=" + escape(furl);

	var openWin = window.open(urlname, "","left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",height=" + h + ",width=" + w + ", toolbar=no, menubar=no,directories=no,resizable=no,status=no,scrollbars=yes");

	openWin.focus();

}

function downloadDextUploadX_Single(fileurl) {

	var urlname = "/common/execute/downloadDextUploadX_Single.asp?fileurl=" + escape(fileurl);

	var winstyle = "";
	var openWin;

	var h = 410;
	var w = 444;
	var iMyWidth;
	var iMyHeight;

	iMyWidth = (window.screen.width/2) - (w/2+50);
	iMyHeight = (window.screen.height/2) - (h/2+50);

	winstyle = "left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",height=" + h + ",width=" + w + ", toolbar=no, menubar=no,directories=no,resizable=no,status=no,scrollbars=no,location=no,copyhistory=no";

	openWin = window.open(urlname, null, winstyle);
	openWin.focus();

	return;
}

function downloadDextUploadX(fileurl) {

	var urlname = "/common/execute/downloadDextUploadX.asp?fileurl=" + escape(fileurl);

	var winstyle = "";
	var openWin;

	var h = 410;
	var w = 444;
	var iMyWidth;
	var iMyHeight;

	iMyWidth = (window.screen.width/2) - (w/2+50);
	iMyHeight = (window.screen.height/2) - (h/2+50);

	winstyle = "left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",height=" + h + ",width=" + w + ", toolbar=no, menubar=no,directories=no,resizable=no,status=no,scrollbars=no,location=no,copyhistory=no";

	openWin = window.open(urlname, null, winstyle);
	openWin.focus();

	return;
}

function downloadFile(filepath) {
	document.location.href = "/common/execute/filedownload.asp?filepath=" + filepath;
	return;
}

