<!-- HTML 문서 없이 새 창으로 그림 띄우기 //-->
var win1Open = null

function displayImage (picName, windowName, windowWidth, windowHeight) {
	return window.open(picName, windowName, "toolbar=no, scrollbars=no, resizable=no, status=no, width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15)) 
}

function winClose() {
	if(win1Open != null) win1Open.close() 
}

function doNothing() {}

function displayImage (picName, windowName, windowWidth, windowHeight, scroll) {
	var winHandle = window.open("" ,windowName, "toolbar=no, resizable=no, status=no, scrollbars=" + scroll + ", width=" + windowWidth + ", height=" + windowHeight)
	if (winHandle != null) {
	  var htmlString = "<html><head><title>그림</title><meta http-equiv='imagetoolbar' content='no'><script type='text/javascript' src='../nocopy.js'></script></head>" 
	  htmlString += "<body onload='disableDragAndRClick()' style='margin: 0; padding: 0;'>"
	  htmlString += "<a href='javascript:window.close()' title='닫기'><img src='" + picName + "' border='0' alt='그림' /></a>"
	  htmlString += "</body></html>"
	  winHandle.document.open()
	  winHandle.document.write(htmlString)
	  winHandle.document.close()
  } 
  if (winHandle != null) winHandle.focus()
	  return winHandle
}

