function showrecord(gopage)
	{
		var width1, height1, left1, top1;
		width1 = 350;
		height1 = 350;
		left1 = (screen.width - width1) / 2;
		top1 = (screen.height - height1) / 2;
		window.open(gopage,"test","width="+width1+",height="+height1+",toolbar=no,location=no,menubar=no,resizable=no,scrollbars=yes,top="+top1+",left="+left1);
	}
function view_userinfo(userid)
	{
		var width, height, left, top;
		width = 440;
		height = 260;
		left = (screen.width - width) / 2;
		top = (screen.height - height) / 2;
		window.open("http://www.nuria.co.kr/tool/userinfo.asp?userid="+userid, "USERINFO","HEIGHT="+height+",WIDTH="+width+",scrollbars=no,resizable=no,status=0,top="+top+",left="+left);
	}

	function view_user_point(userid)
	{
		var width, height, left, top;
		width = 440;
		height = 300;
		left = (screen.width - width) / 2;
		top = (screen.height - height) / 2;
		window.open("http://www.nuria.co.kr/tool/user_point.asp?userid="+userid, "USERINFO","HEIGHT="+height+",WIDTH="+width+",scrollbars=no,resizable=no,status=0,top="+top+",left="+left);
	}


	
function previewImageNewWindow(img)
	{
		var width, height, left, top;
		width = 500;
		height = 500;
		left = (screen.width - width) / 2;
		top = (screen.height - height) / 2;
		window.open(img.src, "ImagePreview","HEIGHT="+height+",WIDTH="+width+",scrollbars=yes,resizable=yes,top="+top+",left="+left);
	}
function previewError(img)
{
	img.src = "http://www.nuria.co.kr/images/main/main_logo.gif";
}

function ChangeImg(oImg, width, height)
{
	oImg.src	= "/images/icon/ico_noimg.gif";		
	oImg.width	= width;
	oImg.height = height;
}	

function iframe_reset(){ 
        dataobj=document.all? document.all.page_content : document.getElementById("page_content") 
         
        dataobj.style.top=0 
        dataobj.style.left=0 

        pagelength=dataobj.offsetHeight 

        parent.document.all.cartoonViewer.height=pagelength+10 
   
} 

// °ø¹é Ã³¸® ÇÏ´Â ÇÔ¼ö
function CheckStr(strOriginal, strFind, strChange)
{
    var position, strOri_Length;
    position = strOriginal.indexOf(strFind); 

    while (position != -1){
      strOriginal = strOriginal.replace(strFind, strChange);
      position = strOriginal.indexOf(strFind);
    }

    strOri_Length = strOriginal.length;
    return strOri_Length;
}



// ¼ýÀÚÃ¼Å©ÇÏ´Â ÇÔ¼ö
function check_num(target) 
{ 

  var Checkword ='1234567890'; 
  var t= target; 
  for (i=0; i<t.length; i++) 
    { 
       if(Checkword.indexOf(t.substring(i,i+1))<0 ) 
				{ 
          
           target=1; 
           return false; 
         } 
    } 
    
    return true;

} 

// ¹®ÀÚÃ¼Å©ÇÏ´Â ÇÔ¼ö
function check_char(target) 
{ 
  
  var Checkword = 'abcdefghijklmnopqrstuvwxyz0123456789'; 
  var t= target; 
  for (i=0; i<t.length; i++) 
    { 
       if(Checkword.indexOf(t.substring(i,i+1))<0 ) 
				{ 
          
           target=1; 
           return false; 
         } 
    } 
    
    return true;
} 

// °ø¹éÃ¼Å©ÇÏ´Â ÇÔ¼ö
function check_blank(target) 
{ 
   for ( var i = 0 ; i < target.length ; i++ ) 
   { 
      if ( target.substring( i, i+1 ) == " " ) 
         return true; 
   } 
   return false; 
} 

// ÀÌ¹ÌÁö »çÀÌÁî À¯µ¿ÀûÀ¸·Î
function imgResize(picname,size){

setTimeout(";", 5000);

var picForm = picname;
var picSize = size
if(picForm.width>picSize){
var ratio;
ratio = picSize / picForm.width;
picForm.height = picForm.height * ratio;
picForm.width=picSize;

return picForm.height ;
}
}


// »õÃ¢ ¶ç¿ì±â
function OpenWindow(name, url, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  screen_width = screen.width
  screen_height = screen.height
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  isopen= window.open(url, name, 'left='+(screen_width-width)/2 +',top='+(screen_height-height)/3+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	if(isopen == null){
		if (confirm('À©µµ¿ìÁî XP ¼­ºñ½ºÆÑ ¼³Ä¡·Î ÀÎÇÏ¿© ÆË¾÷Ã¢ÀÌ ºñÈ°¼ºÈ­ µÇ¾ú½À´Ï´Ù.    \n\n¼­ºñ½ºÆÑ ¼³Ä¡ »ç¿ëÀÚ ¾È³»¸¦ º¸½Ã°Ú½À´Ï±î?') == true)
		{
			top.location.href = 'http://www.nuria.co.kr/blog/xbb.asp?blogid=iendev&action=view&b_idx=741';
		}
		else
			return;
	}

}

// ¿À´Ã ³¯Â¥±¸ÇÏ´Â ÇÔ¼ö
function go_today()
{
var gdCurDate = new Date();
var giYear = gdCurDate.getFullYear();
var giMonth = gdCurDate.getMonth()+1;
var giDay = gdCurDate.getDate();
return '&action=list&b_wdate=' + giYear + "-" + giMonth + "-" + giDay

}


// Inner HTML Ã³¸®
function into_contents(target,t_html)
{
if (t_html != "")
{
	if (target.innerHTML == "" )
	{
	target.innerHTML = t_html;
	}
	else
	{
	target.innerHTML = "";
	}
}
}


// ÆùÆ®Å©±â Ã³¸®
function fontPlus(target) 
{ 
	if (fontSize < 17)
		fontSize = fontSize + 1; 
			
	obj = document.getElementById(target);
	obj.style.fontSize = fontSize+"pt";
}

function fontMinus(target) 
{ 
	if (fontSize >= 9) 
		fontSize = fontSize - 1; 
		
	obj = document.getElementById(target);
	obj.style.fontSize = fontSize+"pt";
}

// ÀÌ°Ç ³ª ÆíÇÒ·Á±¸ .. ^^;
function openWin(contents,mwidth,mheight) 
{
        newWin = open("","displayComment","width="+mwidth+",height="+mheight+",status=no,toolbar=no,menubar=no");
        newWin.document.open();
	    newWin.document.write("<html>");
	    newWin.document.write("<body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>");
        newWin.document.write(contents);
	    newWin.document.write("</body>");
        newWin.document.write("</html>");
        newWin.document.close();
}



function test()
{
	alert('test');
}

function changeImage(img, src)
{
	img.src = src;
}
