function ShowFlash(url, width, height){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
	document.write("<param name='allowScriptAccess' value='always' />"); 
	document.write('<param name="movie" value="' + url + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
	document.write('</object>');
}


function showEbook(value)
{
	window.open(value,"_blank","toolbar=0, status=0, scrollbars=no, location=0, menubar=0, width=1000, height=770");     
}

function move_popup(value)
{
	window.open(value,"_blank","toolbar=0, status=0, scrollbars=no, location=0, menubar=0, width=1000, height=770");     
}


function imageResize(doc,size)
{
	if(doc.width < size & doc.height < size)
		doc.width = size;
	else if(doc.width > size & doc.height > size & doc.width > doc.height )
		doc.width = size;
	else if(doc.width > size & doc.height > size & doc.width < doc.height )
		doc.height = size;
	else if(doc.width > size)
		doc.width = size;
	else if(doc.height > size)
		doc.height = size;			
		
	//alert(document.viewImage.height)
}

function showPicture(src) {
  var imgObj = new Image();
  imgObj.src = src;
  var wopt = "scrollbars=no,status=no,resizable=no";
  wopt += ",width=" + imgObj.width;
  wopt += ",height=" + imgObj.height;
  var wbody = "<head><title>»çÁø º¸±â</title>";
  wbody += "<script language='javascript'>";
  wbody += "function finalResize(){";
  wbody += "  var oBody=document.body;";
  wbody += "  var oImg=document.images[0];";
  wbody += "  var xdiff=oImg.width-oBody.clientWidth;";
  wbody += "  var ydiff=oImg.height-oBody.clientHeight;";
  wbody += "  window.resizeBy(xdiff,ydiff);";
  wbody += "}";
  wbody += "</"+"script>";
  wbody += "</head>";
  wbody += "<body onLoad='finalResize()' style='margin:0'>";
  wbody += "<a href='javascript:window.close()'><img src='" + src + "' border=0></a>";
  wbody += "</body>";
  winResult = window.open("about:blank","",wopt);
  winResult.document.open("text/html", "replace");
  winResult.document.write(wbody);
  winResult.document.close();
  return;
}


	function winclose1(image,width,height){
				if(image == "" ){
				alert("ÀÚ·á ÁØºñÁßÀÔ´Ï´Ù.");
				return false;
				}
				window.open('/nciapps/user2/edudata/image_edit.jsp?image='+image+'&img_width='+width+'&img_height='+height+'','_blank','width=1000 height=900 top=0 left=0 scrollbars=no'); 
			}