
document.onclick = fncClickPositionXY;
var gi_position_X = 0;
var gi_position_Y = 0;
/*
 |______________________________________________________________________________________
 |  * Name : fncClickPositionXY
 |  * Explanation : Å¬¸¯ Æ÷Áö¼Ç °ªºÎ¿©
 |  * Output :  
 |  * History : (position number : date / author / explain)
 |     #000 : 2007-08-22  / Nicholas Kim  / ÃÖÃÊÀÛ¼º
 |     #001 : 
 |     #002 : 
 |     #003 : 
 |  * Parameters
 |______________________________________________________________________________________
*/
function fncClickPositionXY(e){
	gi_position_X = event.clientX + document.body.scrollLeft;
	gi_position_Y = event.clientY + document.body.scrollTop;
}
	
/*
 |______________________________________________________________________________________
 |  * Name : fncObjLocMove
 |  * Explanation : Æ¯Á¤ object À§Ä¡ Á¶Á¤
 |  * Output : 
 |  * History : (position number : date / author / explain)
 |     #000 : 2007-08-22  / Nicholas Kim  / ÃÖÃÊÀÛ¼º
 |     #001 : 
 |     #002 : 
 |     #003 : 
 |  * Parameters : prmObj ´Â ¹Ýµí object ¿©¾ß ÇÔ
 |______________________________________________________________________________________
*/	
function fncObjLocMove(prmObj){
	
	if (gi_position_X < 0){gi_position_X = 0;}
	if (gi_position_Y < 0){gi_position_Y = 0;}

	prmObj.style.left = gi_position_X;
	prmObj.style.top = gi_position_Y;
	
}

/*
 |______________________________________________________________________________________
 |  * Name : SSMD_WingGive
 |  * Explanation : »ó»ó³¯°³ ÈÄ¿øÇÏ±â ÆË¾÷Ã¢ ¿­±â
 |  * Output :  Windows Object
 |  * History : (position number : date / author / explain)
 |     #000 : 2007-06-01  / KimC  / ÃÖÃÊÀÛ¼º
 |     #001 : 
 |     #002 : 
 |     #003 : 
 |  * Parameters
 |     inSeq : ÄÁÅÙÃ÷ °íÀ¯¹øÈ£
 |     inCntsCd : ÄÁÅÙÃ÷ ºÐ·ù
 |     inGiverId : ÁÖ´ÂÀÌ ¾ÆÀÌµð
 |     inReserverId : ¹Þ´ÂÀÌ ¾ÆÀÌµð
 |     inTitle : ÄÁÅÙÃ÷ Á¦¸ñ
 |______________________________________________________________________________________
*/
/* #000 ÃÖÃÊÀÛ¼º*/
function SSMD_WingGive(inSeq, inCntsCd, inGiverId, inReserverId, inTitle) {

	var urlname = "/common/procedure/WingGive.asp?WG_Seq=" + inSeq + "&WG_CntsCd=" + inCntsCd + "&WG_GiverId=" + inGiverId + "&WG_ReceiverId=" + inReserverId + "&WG_Title=" + escape(inTitle);
	//alert(urlname);
	
	var h = 260;
	var w = 400;
	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();
	}

}


/*
 |______________________________________________________________________________________
 |  * Name : SSMD_ReportContents
 |  * Explanation : ½Å°íÇÏ±â ÆË¾÷Ã¢ ¿­±â (´ÜÆí¿µÈ­, ¸¸È­, ¹®ÇÐ, »çÁø)
 |  * Output :  Windows Object
 |  * History : (position number : date / author / explain)
 |     #000 : 2007-06-01  / KimC  / ÃÖÃÊÀÛ¼º
 |     #001 : 
 |     #002 : 
 |     #003 : 
 |  * Parameters
 |     inUserId : ÀÛ¼ºÀÚ ¾ÆÀÌµð
 |     inCntsCd : ÄÁÅÙÃ÷ ºÐ·ù
 |     inCntsKind : ±¸ºÐ (Default : CNTS0)
 |     inSeq : ÄÁÅÙÃ÷ °íÀ¯¹øÈ£
 |     inTitle : ÄÁÅÙÃ÷ Á¦¸ñ
 |______________________________________________________________________________________
*/
/* #000 ÃÖÃÊÀÛ¼º*/
function SSMD_ReportContents(inUserId, inCntsCd, inCntsKind, inSeq, inTitle) {

	var urlname = "/common/procedure/ReportContents.asp?RC_UserId=" + inUserId + "&RC_CntsCd=" + inCntsCd + "&RC_CntsKind=" + inCntsKind + "&RC_Seq=" + inSeq + "&RC_Title=" + escape(inTitle);
	//alert(urlname);
	
	var h = 515;
	var w = 400;
	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();
	}

}



/*
 |______________________________________________________________________________________
 |  * Name : SSMD_ReportContents_Photo
 |  * Explanation : ½Å°íÇÏ±â ÆË¾÷Ã¢ ¿­±â (»çÁø)
 |  * Output :  Windows Object
 |  * History : (position number : date / author / explain)
 |     #000 : 2007-07-30  / Kim Hoon  / À§ ÇÔ¼ö¿Í µ¿ÀÏ..È£ÃâµÇ´Â ÆäÀÌÁö¸¸ ´Ù¸§
 |     #001 : 
 |     #002 : 
 |     #003 : 
 |  * Parameters
 |     inUserId : ÀÛ¼ºÀÚ ¾ÆÀÌµð
 |     inCntsCd : ÄÁÅÙÃ÷ ºÐ·ù
 |     inCntsKind : ±¸ºÐ (Default : CNTS0)
 |     inSeq : ÄÁÅÙÃ÷ °íÀ¯¹øÈ£
 |     inTitle : ÄÁÅÙÃ÷ Á¦¸ñ
 |______________________________________________________________________________________
*/
/* #000 ÃÖÃÊÀÛ¼º*/
function SSMD_ReportContents_Photo(inUserId, inCntsCd, inCntsKind, inSeq, inTitle) {

	var urlname = "/common/procedure/ReportContents_Photo.asp?RC_UserId=" + inUserId + "&RC_CntsCd=" + inCntsCd + "&RC_CntsKind=" + inCntsKind + "&RC_Seq=" + inSeq + "&RC_Title=" + escape(inTitle);
	//alert(urlname);
	
	var h = 560;
	var w = 400;
	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();
	}

}


/*
 |______________________________________________________________________________________
 |  * Name : SSMD_ReportContents_Screen
 |  * Explanation : ½Å°íÇÏ±â ÆË¾÷Ã¢ ¿­±â (¿µÈ­)
 |  * Output :  Windows Object
 |  * History : (position number : date / author / explain)
 |     #000 : 2009-05-27  / ÀÌ»ó±â  / À§ ÇÔ¼ö¿Í µ¿ÀÏ..È£ÃâµÇ´Â ÆäÀÌÁö¸¸ ´Ù¸§
 |     #001 : 
 |     #002 : 
 |     #003 : 
 |  * Parameters
 |     inUserId : ÀÛ¼ºÀÚ ¾ÆÀÌµð
 |     inCntsCd : ÄÁÅÙÃ÷ ºÐ·ù
 |     inCntsKind : ±¸ºÐ (Default : CNTS0)
 |     inSeq : ÄÁÅÙÃ÷ °íÀ¯¹øÈ£
 |     inTitle : ÄÁÅÙÃ÷ Á¦¸ñ
 |______________________________________________________________________________________
*/
/* #000 ÃÖÃÊÀÛ¼º*/
function SSMD_ReportContents_Screen(inUserId, inCntsCd, inCntsKind, inSeq, inTitle) {

	var urlname = "/common/procedure/ReportContents_Screen.asp?RC_UserId=" + inUserId + "&RC_CntsCd=" + inCntsCd + "&RC_CntsKind=" + inCntsKind + "&RC_Seq=" + inSeq + "&RC_Title=" + escape(inTitle);
	//alert(urlname);
	
	var h = 504;
	var w = 338;
	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();
	}

}


/*
 |______________________________________________________________________________________
 |  * Name : SSMD_SendPaper
 |  * Explanation : ÂÊÁöº¸³»±â ÆË¾÷Ã¢ ¿­±â
 |  * Output :  Windows Object
 |  * History : (position number : date / author / explain)
 |     #000 : 2007-06-01 / KimC / ÃÖÃÊÀÛ¼º
 |     #001 : 2007-08-23 / KimC / .NET -> ASP ÆäÀÌÁö·Î º¯È¯
 |     #002 : 
 |     #003 : 
 |  * Parameters
 |     inUserId : ¹Þ´ÂÀÌ ¾ÆÀÌµð
 |______________________________________________________________________________________
*/
/* #000 ÃÖÃÊÀÛ¼º*/
function SSMD_SendPaper(inUserId) {

	//var urlname = "/blog/blog/popup/PopSendSpaper.aspx?recvId=" + inUserId;  //#001
	var urlname = "/common/procedure/SpaperWrite.asp?receiverId=" + inUserId;
	
	//var h = 515;  //#001
	var h = 460;  //#001
	var w = 440;
	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, "", winstyle);
	
	if(openWin == null) {
		alert("Â÷´ÜµÈ ÆË¾÷Ã¢À» Çã¿ëÇØ ÁÖ¼¼¿ä.");
	} else {
		openWin.focus();
	}

}

/*
 |______________________________________________________________________________________
 |  * Name : SSMD_SendPaper
 |  * Explanation : ÂÊÁöº¸³»±â ÆË¾÷Ã¢ ¿­±â (¿µÈ­)
 |  * Output :  Windows Object
 |  * History : (position number : date / author / explain)
 |     #000 : 2007-06-01 / KimC / ÃÖÃÊÀÛ¼º
 |     #001 : 2007-08-23 / KimC / .NET -> ASP ÆäÀÌÁö·Î º¯È¯
 |     #002 : 2009-05-27 / ÀÌ»ó±â / ¿µÈ­ÂÊ µðÀÚÀÎ¸¸ ¼öÁ¤µÈ ÆäÀÌÁö
 |     #003 : 
 |  * Parameters
 |     inUserId : ¹Þ´ÂÀÌ ¾ÆÀÌµð
 |______________________________________________________________________________________
*/
/* #000 ÃÖÃÊÀÛ¼º*/
function SSMD_SendPaper_Screen(inUserId) {

	//var urlname = "/blog/blog/popup/PopSendSpaper.aspx?recvId=" + inUserId;  //#001
	var urlname = "/common/procedure/SpaperWrite_Screen.asp?receiverId=" + inUserId;
	
	//var h = 515;  //#001
	var h = 340;  //#001
	var w = 344;
	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, "", winstyle);
	
	if(openWin == null) {
		alert("Â÷´ÜµÈ ÆË¾÷Ã¢À» Çã¿ëÇØ ÁÖ¼¼¿ä.");
	} else {
		openWin.focus();
	}

}

/*
 |______________________________________________________________________________________
 |  * Name : SSMD_ViewReceivePaper
 |  * Explanation : ¹ÞÀºÂÊÁöº¸±â ÆË¾÷Ã¢ ¿­±â
 |  * Output :  Windows Object
 |  * History : (position number : date / author / explain)
 |     #000 : 2007-08-21  / KimC  / ÃÖÃÊÀÛ¼º
 |     #001 : 
 |     #002 : 
 |     #003 : 
 |  * Parameters
 |     inSeq : ÂÊÁö ·¹ÄÚµå°íÀ¯¹øÈ£
 |______________________________________________________________________________________
*/
/* #000 ÃÖÃÊÀÛ¼º*/
function SSMD_ViewReceivePaper(inSeq) {

	var urlname = "/common/procedure/SpaperView_Receive.asp?seq=" + inSeq;
	//alert(urlname);
	
	var h = 440;
	var w = 440;
	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, "", winstyle);
	
	if(openWin == null) {
		alert("Â÷´ÜµÈ ÆË¾÷Ã¢À» Çã¿ëÇØ ÁÖ¼¼¿ä.");
	} else {
		openWin.focus();
	}

}


/*
 |______________________________________________________________________________________
 |  * Name : SSMD_ViewSendPaper
 |  * Explanation : º¸³½ÂÊÁöº¸±â ÆË¾÷Ã¢ ¿­±â
 |  * Output :  Windows Object
 |  * History : (position number : date / author / explain)
 |     #000 : 2007-08-21  / KimC  / ÃÖÃÊÀÛ¼º
 |     #001 : 
 |     #002 : 
 |     #003 : 
 |  * Parameters
 |     inSeq : ÂÊÁö ·¹ÄÚµå°íÀ¯¹øÈ£
 |______________________________________________________________________________________
*/
/* #000 ÃÖÃÊÀÛ¼º*/
function SSMD_ViewSendPaper(inSeq) {

	var urlname = "/common/procedure/SpaperView_Send.asp?seq=" + inSeq;
	//alert(urlname);
	
	var h = 440;
	var w = 440;
	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, "", winstyle);
	
	if(openWin == null) {
		alert("Â÷´ÜµÈ ÆË¾÷Ã¢À» Çã¿ëÇØ ÁÖ¼¼¿ä.");
	} else {
		openWin.focus();
	}

}


/*
 |______________________________________________________________________________________
 |  * Name : SSMD_OpenFindUser
 |  * Explanation : »ç¶÷Ã£±â ÆË¾÷Ã¢ ¿­±â
 |  * Output :  Windows Object
 |  * History : (position number : date / author / explain)
 |     #000 : 2007-08-22  / KimC  / ÃÖÃÊÀÛ¼º
 |     #001 : 
 |     #002 : 
 |     #003 : 
 |  * Parameters
 |     objName : ´ë»ó element ÀÌ¸§
 |______________________________________________________________________________________
*/
/* #000 ÃÖÃÊÀÛ¼º*/
function SSMD_OpenFindUser(eleName) {

	var urlname = "/common/procedure/SpaperFindUser.asp?eleName=" + eleName;
	//alert(urlname);
	
	var h = 240;
	var w = 440;
	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, "", winstyle);
	
	if(openWin == null) {
		alert("Â÷´ÜµÈ ÆË¾÷Ã¢À» Çã¿ëÇØ ÁÖ¼¼¿ä.");
	} else {
		openWin.focus();
	}

}


