﻿var EmbedStr = "";

/*******************************************************************************************/
/*   플래쉬 삽입
/*   함수명 : getFlash(string url, int x, int y)
/*            url : 플래쉬 파일명(경로 포함), x : 너비, y : 높이
/*   작성자 : 전중재
/*   작성일 : 2006-05-30
/*   수정일 :
/*******************************************************************************************/
function getFlash(url, x, y) { 
 EmbedStr = "<object id='flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + x + "' height='" + y + "'>";
 EmbedStr += "<param name='allowScriptAccess' value='sameDomain' />";
 EmbedStr += "<param name='movie' value='" + url + "' />";
 EmbedStr += "<param name='quality' value='high' />";
 EmbedStr += "<param name='bgcolor' value='#ffffff' />";
 EmbedStr += "<param name='wmode' value='transparent' />";
 EmbedStr += "<param name='menu' value='false' />";
 EmbedStr += "<embed src='" + url + "' quality='high' wmode='transparent' bgcolor='#ffffff' width='" + x + "' height='" + y + "' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
 EmbedStr += "</object>";
 
 document.write(EmbedStr);
 return;
} 


<!-- 
function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>Picture</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><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
}
//-->


//메뉴플래시 팝업 시작//
function popupWindow(url, w, h) {
        //var posX = (screen.width - w) / 2;
        //var posY = (screen.height - h) / 2;
		var posX = 0;
		var posY = 0;
        var option = ",resizable=no,scrollbars=yes,status=no";
        window.open(url, "new_win","width="+w+",height="+h+",left="+posX +",top="+posY+option);
}

//메뉴플래시 팝업 끝//

//윤리강령 시작//
function checkKey(frm) {
	if(event.keyCode == 13) return validateSearchForm(frm);
}

function validateSearchForm(frm) {
	if(frm.searchword.value.trim() == "") {
		alert("검색할 단어를 입력해 주십시오! ");
		frm.searchword.focus();
		return false;
	}
	return true;
}

function showContent(curIdx) {
	var obj = document.getElementById("faq_" + curIdx);
	obj.style.display = (obj.style.display == "block") ? "none" : "block";
}
//윤리강령 끝//

//인증서시작//
function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>Picture</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border='0' alt='Close'></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
} 
if(winHandle != null) winHandle.focus()
return winHandle
}
//인증서끝//