function sendprint(uid)
{
	getPopUpFlag(window.open(g_syspath + 'module/print/print.htm?uid=' + uid , 'printwin' , 'top=0,left=0,width=650,height=600,scrollbars=yes,status=yes'));
}
function sendemail(id,uid)
{
	getPopUpFlag(window.open(g_syspath + 'module/email/email.php?id='+id+'&uid=' + uid , 'emailwin' , 'top=0,left=0,width=650,height=600,scrollbars=no,status=yes'));
}
function statview(id)
{
	getPopUpFlag(window.open(g_thisfile + '?q=stat&newwin=Y&id='+id , 'bbsstatwin' , 'top=0,left=0,width=650,height=600,scrollbars=no,status=yes'));
}
function singo(table,uid,userid,mbid)
{
	if (mbid == "")
	{
		alert('회원으로 로그인해 주세요.            ');
		return;
	}
	getPopUpFlag(window.open(g_thisfile + "?q=singo&xsite=" + g_account + "&newwin=Y&id=" + g_id + "&tbl=" + table + "&suid=" + uid + "&userid="+userid, "singowin" , "left=0,top=0,width=550,height=330,scrollbars=no,status=yes"));
}
function getDivWidth(width,div)
{
	var maxsize = parseInt(width);
    var content = document.getElementById(div); 
    var img = content.getElementsByTagName("img"); 
    for(i=0; i<img.length; i++) 
    { 
        if ( eval('img[' + i + '].width > maxsize') ) 
        { 
            var heightSize = ( eval('img[' + i + '].height')*maxsize )/eval('img[' + i + '].width') ; 
            eval('img[' + i + '].width = maxsize') ; 
            eval('img[' + i + '].height = heightSize') ; 
        } 
    }
	content.innerHTML = content.innerHTML.replace(/<img /ig,"<img onclick='imgOrignWin(this);' ");
}
function imgOrignWin(img)
{	
	var obj = img.src;
	var KimsonPopupCheck = getPopUpFlag(window.open('','iwin','left=0,top=0,width=100,height=100,scrollbars=yes,status=yes'));
	KimsonPopupCheck.document.write("<title>Image View</title>\<script\>function getImageWin(ob){window.resizeTo(ob.width+27,ob.height+58);document.body.innerHTML=\"<table cellspacing=0 cellpadding=3 background='"+obj+"' width='\"+ob.width+\"' height='\"+ob.height+\"'><tr><td align=right valign=bottom><table cellspacing=0 cellpadding=0><tr><td style='font-size:9pt;font-family:Gulim;'></td><td width='' height=''></td></tr></table></td></tr></table>\";}\</script\><body leftmargin=0 topmargin=0 onclick='self.close()'><img src='"+obj+"' onload=\"getImageWin(this)\"></body>");
}

