
function popup(url,w,h){

  strop = "width="+w+" height="+h+",scrollbars=no,toolbar=0,resizable=0";
  window.open(url, "Searchid", strop); 
}


function memo(url){
  strop = "width=" + 444 + ",height=" + 409 + ",scrollbars=no,toolbar=0,resizable=0";
  w=open('popup_memo.jsp', "NewWindow", strop);
  w.focus();
}


/** ÇÑ´«º¸±â **/
function oneBar(v){
	var obj = document.getElementById("onBar");	
		
	if(v=="ON"){
		obj.style.visibility="visible";
		obj.style.top="0";
		obj.style.left="40";
		obj.style.width="943";
		obj.style.height="350";
		obj.innerHTML = i_flash("/media/swf/menu_direct.swf","943","350");
		
	}else if(v=="OFF"){
		obj.style.visibility="hidden";
	}
}
function i_flash(s,w,h){
        return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\""+w+"\" height=\""+h+"\" id=\"main\" align=\"middle\"param name=\"allowScriptAccess\" value=\"always\" /><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"movie\" value=\""+s+"\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /><embed src=\""+s+"\" quality=\"high\" bgcolor=\"#000000\" width=\""+w+"\" height=\""+h+"\" name=\"main\" align=\"middle\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>";
}




/*swfÆÄÀÏ*/
function swf(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="best">';
	html += '<param name="wmode" value="transparent">';
	html += '<embed src="'+src+'" quality=best width="'+w+'" height="'+h+'" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

/*ÆÐ¹Ð¸®»çÀÌÆ® ÀÌµ¿*/
function goFimilySite(url){
	window.open(url,"FimilySite","");		
}

//quick
var stmnLEFT = 890; // ½ºÅ©·Ñ¸Þ´ºÀÇ ÁÂÃø À§Ä¡
var stmnGAP1 = 280; // ÆäÀÌÁö À§ÂÊ ¿©¹é
var stmnGAP2 = 10; // ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ
var stmnBASE = 400;   // ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ stmnGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½)
var stmnActivateSpeed = 50; // ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²)
var stmnScrollSpeed =1; // ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ)

var stmnTimer;


function ReadCookie(name) {
var label = name + "=";
var labelLen = label.length;
var cLen = document.cookie.length;
var i = 0;

while (i < cLen) {
var j = i + labelLen;

if (document.cookie.substring(i, j) == label) {
var cEnd = document.cookie.indexOf(";", j);
if (cEnd == -1) cEnd = document.cookie.length;
return unescape(document.cookie.substring(j, cEnd));
}
i++;
}
return "";
}

function SaveCookie(name, value, expire) {
var eDate = new Date();
eDate.setDate(eDate.getDate() + expire);
document.cookie = name + "=" + value + "; expires=" + eDate.toGMTString()+ "; path=/";
}

function RefreshStaticMenu() {
var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

stmnStartPoint = parseInt(STATICMENU.style.top, 10);	
stmnEndPoint = document.documentElement.scrollTop + stmnGAP2;
if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

stmnRefreshTimer = stmnActivateSpeed;

if ( stmnStartPoint != stmnEndPoint ) {
stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
stmnRefreshTimer = stmnScrollSpeed;
}
stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}

function ToggleAnimate() {
if (!ANIMATE.checked) {
RefreshStaticMenu();
SaveCookie("ANIMATE", "true", 300);
} else {
clearTimeout(stmnTimer);
STATICMENU.style.top = stmnGAP1;
SaveCookie("ANIMATE", "false", 300);
}
}

function InitializeStaticMenu() {
//STATICMENU.style.left = stmnLEFT;
if (ReadCookie("ANIMATE") == "false") {
ANIMATE.checked = true;
STATICMENU.style.top = document.documentElement.scrollTop + stmnGAP1;
} else {
//ANIMATE.checked = false;
STATICMENU.style.top = document.documentElement.scrollTop + stmnBASE;
RefreshStaticMenu();
}
}




 


//¸µÅ©Á¡¼± ¾ø¾Ö±â
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 

document.body.focus(); 
} 
document.onfocusin=bluring; 

//Å¬¸¯½Ãº¸ÀÌ±â
function showT(id, total){
	for(i=1;i<=total;i++){
		if(i!=id){
			obj1 = eval("showTD" + i);
			obj1.style.display = "none";
		}
	}


	obj1 = eval("showTD" + id);

	if(obj1.style.display == "none"){
		obj1.style.display = "block";
	}
	else{
		obj1.style.display = "none";
	}
}



//ÆûÀÔ·Â½Ã ºñ¿öÀÖ´ÂÁö ¿©ºÎ Ã¼Å© - joomin@2006-12-07
//if(ChkEmpty(form1.memo, "ÀÚ¼¼ÇÑ ³»¿ëÀ» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä !") == false) return false; 
function ChkEmpty(checkText, alertStr){
	if (checkText.value == "")
	{
		alert(alertStr);
		checkText.focus();
		return (false);
	}
}
//if(fieldCheck(form1.bunya1)<=0){alert("ÀÀ¸ðºÐ¾ß¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä!");form1.bunya1[0].focus();return false;};
function fieldCheck(field, msg, cnt){
	var chk		= 0;
	for(var i=0;i<field.length;i++) {
		if(field[i].checked) {
			chk++;
		}
	}

	return chk;
}




