
/*###################### PNG ###########################*/
function setPng24(obj) {
    obj.width=obj.height=1;
    obj.className=obj.className.replace(/\bpng24\b/i,'');
    obj.style.filter =
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
    obj.src='';
    return '';
}

function viewOpen() {

}

/******************************************************************************
''  Name          : fncResizeWidthImage
''  parameter     :
''  explaination  : ´ëÇ¥ ÀÌ¹ÌÁö Æø Å©±â Á¶Àý
''  author        :  Kim Hoon
******************************************************************************/

function fncResizeWidthImage(objImg, nMaxWidthSize){
	if (objImg.width > nMaxWidthSize) {
		objImg.width = nMaxWidthSize
	}
}

/******************************************************************************
''  Name          : fncResizeImage
''  parameter     :
''  explaination  : ´ëÇ¥ ÀÌ¹ÌÁö Å©±â Á¶Àý
''  author        :  Kim Hoon
******************************************************************************/

function fncResizeImage(objImg, nMaxWidthSize){
	if (objImg.width > objImg.height) {
		if (objImg.width > nMaxWidthSize) {
			objImg.width = nMaxWidthSize
		}
	} else {
		if (objImg.height > nMaxWidthSize * 0.9) {
			objImg.height = nMaxWidthSize * 0.9
		}
	}
}

/******************************************************************************
''  Name          : fncResizeImageBasic
''  parameter     :
''  explaination  : ÀÌ¹ÌÁö Å©±â Á¶Àý
''  author        :  Kim Hoon
******************************************************************************/

function fncResizeImageBasic(objImg, nMaxWidthSize, nMaxWidthHeight){
	if (objImg.width > nMaxWidthSize) {
		objImg.width = nMaxWidthSize
	}
	if (objImg.height > nMaxWidthHeight) {
		objImg.height = nMaxWidthHeight
	}
	if (objImg.width > nMaxWidthSize) {
		objImg.width = nMaxWidthSize
	}
}


/******************************************************************************
''  Name          : fncPopAlbumList
''  parameter     :
''  explaination  : ¾Ù¹ü ¸¸µé±â ÆË¾÷ ¶ç¿ì±â
''  author        :  Kim Hoon
******************************************************************************/

function fncPopAlbumList(){
	openNewWinCenter("/photo_old/gallery/pop_album_list.asp", "winPopAlbum", 590, 515)
}

/*
 |______________________________________________________________________________________
 |  * 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_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();
	}

}