function mEmbed() {
	var emtype;
	var key = new Array();
	var value = new Array();

	for(i=0;i<mEmbed.arguments.length;i++) {
		data = mEmbed.arguments[i].split('=');
		key[i] = data[0].toLowerCase();
		value[i] = data[1].toLowerCase();
		// src 값 찾기...
		if (key[i] == 'src') {
			srcdata=value[i];
		}
	}

	// Start..
	contents = '';

	//classid, codebase, emtype
	if(/\.(swf)$/.test(srcdata)) { //flash
		classid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
		codebase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c-ab#version=6,0,29,0';
		emtype="flash";
	} else if(/\.(wmv|wma|asf|avi|wav|asx|mpeg|mp3|midi|aiff|au|wpl|wm|wmx|wmd|wmz)$/.test(srcdata)){ //media
		classid = 'CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95';
		codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';
		emtype="media";
	}

	if(classid && codebase && emtype) {
		contents += '<object ';
			contents += ' classid="' + classid + '"';
			contents += ' codebase="' + codebase + '"';

		// count 정의
		count = key.length;

		for(i=0;i<count;i++) {
			if(value[i]!='') {
				if(key[i]!='src') {
					contents += ' ' + key[i] + '="' + value[i] + '"';
				}
			}
		}
		contents += '>';

		// param 설정..
		for(i=0;i<count;i++) {
			if(value[i]!='') {
				if(emtype=='flash' && key[i]=='src') {
					contents += '<param name="movie" value="' + value[i] + '" />';
				} else  if(emtype=='media' && key[i]=='src') {
					contents += '<param name="filename" value="' + value[i] + '" />';
				} /*else  if(emtype=='title') {
					contents += '<param name="title" value="' + value[i] + '" />';
				} else*/ {
					contents += '<param name="' + key[i] + '" value="' + value[i] + '" />';
				}
			}
		}

	//embed 설정..
	contents += '<embed';
	for(i=0;i<count;i++) {
		if(value[i]!='') {
			contents += ' ' + key[i] + '="' + value[i] + '"';
		}
	}

	if(emtype=='flash') {
		contents +=' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"'
	}

	contents += '>';
	contents += '</embed>';

	// End...
	contents += '</object>';
	}

    document.write(contents);
//return contents;
}

 //플래시 ActiveX 오브젝트
function  viewFlash(sURL, sName, sFeatures)
{

	var FLASHCAB = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";
	var FLASHCID = "CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000";
	var FLASHVER = "8,0,0,0";

	var sFeature;
	var sWidth  = "100%";
	var sHeight  = "100%";
	var pmBoolean = "false";
	var sTempArray;
	var sParamTag = "";

	sFeature = sFeatures.split(/\s*,\s*/);
	for (var i=0; i< sFeature.length ; i++)
	{
		sTempArray = sFeature[i].split(/\s*=\s*/);
		if (sTempArray[0].toLowerCase() == "width")
		{
			//넓이
			sWidth = sTempArray[1];
		}
		else if (sTempArray[0].toLowerCase() == "height")
		{
			//높이
			sHeight = sTempArray[1];
		}
		else
		{
			//기타 파라메터 처리
			if (sTempArray[1].toLowerCase() == "yes" || sTempArray[1] == "1" || sTempArray[1].toLowerCase() == "true"){
				pmBoolean = "true";
			}else if (sTempArray[1].toLowerCase() == "no" || sTempArray[1] == "0" || sTempArray[1].toLowerCase() == "false"){
				pmBoolean = "false";
			}else{
				pmBoolean = sTempArray[1];
			}
			sParamTag = "<PARAM NAME='"+sTempArray[0]+"'VALUE='" + pmBoolean + "'>\n"+sParamTag;
		}
	}

	document.write("<OBJECT ID='"+sName+"' NAME='"+sName+"' CLASSID='"+FLASHCID+"' CODEBASE='"+FLASHCAB+"#version="+FLASHVER+"' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"'>");
	document.write("<PARAM NAME='movie' VALUE='" + sURL + "'>");
	document.write(sParamTag);
	document.write("<EMBED SRC='"+sURL+"' MENU='false' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"' ID='"+sName+"' NAME='"+sName+"' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' />")
	document.write("</OBJECT>");
}


//미디어 플레이어 오브젝트를 뿌려줍니다.
//미디어 플레이어 버전은 7~10 버전에 호환되는 오브젝트ID를 사용합니다.
function  viewMediaPlayer(sURL, sName, sFeatures)
{
	var WMPCID = "CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6";

	var sFeature;
	var sWidth  = "100%";
	var sHeight  = "100%";
	var pmBoolean;
	var sTempArray;
	var sParamTag = "";

	 sFeature = sFeatures.split(/\s*,\s*/);
	 for (var i=0; i< sFeature.length ; i++)
	 {
		sTempArray = sFeature[i].split(/\s*=\s*/);
		if (sTempArray[0].toLowerCase() == "width")
		{
			//넓이
			sWidth = sTempArray[1];
		}
		else if (sTempArray[0].toLowerCase() == "height")
		{
			//높이
			sHeight = sTempArray[1];
		}
		else
		{
			//기타 파라메터 처리
			if (sTempArray[1].toLowerCase() == "yes" || sTempArray[1] == "1" || sTempArray[1].toLowerCase() == "true"){
				pmBoolean = "true";
			}else if (sTempArray[1].toLowerCase() == "no" || sTempArray[1] == "0" || sTempArray[1].toLowerCase() == "false"){
				pmBoolean = "false";
			}else{
				pmBoolean = sTempArray[1];
			}
			sParamTag = "<PARAM NAME='"+sTempArray[0]+"'VALUE='" + pmBoolean + "'>\n"+sParamTag;
		}
	 }

	document.write("<OBJECT ID='"+sName+"' NAME='"+sName+"' CLASSID='"+WMPCID+"' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"' >");
	document.write("<PARAM NAME='URL'VALUE='" + sURL + "'>");
	document.write(sParamTag);
	document.write("</OBJECT>");
}

//////////////////////  default

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


var old = "";
function viewMenu(e)
{
	if(old != e)
	{
		if(old != "")
		{
			old.style.display = "none";
		}
		e.style.display = "block";
		old = e;
	}
	else
	{
		e.style.display = "none";
		old = "";
	}
}

var old_menu = '';
function menuclick( submenu) {
	if( old_menu != submenu ) {
	if( old_menu !='' ) {
		old_menu.style.display = 'none';
	}
	submenu.style.display = 'block';
	old_menu = submenu;
	}else{
		submenu.style.display = 'none';
		old_menu = '';
	}
}


function fn_01(url,w,h,tb,st,di,mb,sb,re)
{
	var position ="width="+w+",height="+h+",left=" + ((screen.width-w)/2) + ",top=" + ((screen.height-h)/2) + ",toolbar="+tb+",directories="+di+",status="+st+",menubar="+mb+",scrollbars="+sb+",resizable="+re+"";
	window.open( url, '', position);
}

function getWindow(url,w,h)
{
	var position = "width="+w+",height="+h+",left=100,top=100,toolbar=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0";
	window.open( url, '', position);
}

function changeBoardList(frm,val)
{
	frm.msg_ca_no.value = val;
	frm.submit();
}

function checkSearch(frm)
{
	if ( frm.search_word.value.length < 2 )
	{
			alert('검색어는 2단어 이상 입력해주세요');
			frm.search_word.focus();
			return false;
	}
	document.charset='euc-kr';
	frm.QUERY.value = frm.search_word.value;
	var QUERY = frm.QUERY.value;
	window.open('http://search.nam.daegu.kr:8080/index.jsp?QUERY='+QUERY,'','');
	return false;
//	frm.submit();
}

function login_init() {
	  document.frmLogin.mem_id.focus();
}

// 로그인
function login()
{
	if(document.frmLogin.mem_id.value == "") {
		alert("[아이디]는  필수 입력 사항입니다.");
		document.frmLogin.mem_id.focus();
		return false;
	}

	if(document.frmLogin.mem_pass.value == "") {
		alert("[비밀번호]는 필수 입력 사항입니다");
		document.frmLogin.mem_pass.focus();
		return false;
	}
	return true;
}

// 문자열의 좌측 공백을 제거하는 함수
function LTrim( str )
{
	var i, result="", NonSpace=false;
	for ( i=0; i<str.length; i++ )
	{
		if ( str.charAt(i) != ' ' || NonSpace )
		{
			result = result + str.charAt(i);
			NonSpace = true;
		}
	}
	return result;
}

// 문자열의 우측 공백을 제거하는 함수
function RTrim( str ){
	var i, result="", NonSpace=false;
	for ( i=str.length-1; i>=0; i-- )
	{
		if ( str.charAt(i) != ' ' || NonSpace )
		{
			result = str.charAt(i) + result;
			NonSpace = true;
		}
	}
	return result;
}

// 문자열의 양쪽 공백을 제거하는 함수
function Trim( str ){
	var i, result;
	result = LTrim( str );
	result = RTrim( result );
	return result;
}

// 숫자관련 함수
function isNumber(fld){
	if (fld.value.length > 0){
		for (i = 0; i < fld.value.length; i++){
			var chr = fld.value.substr(i,1);
			if (chr < '0' || chr > '9')
				return false;
		}
		return true;
	}else{
		return false;
	}
}

function CopyClibboard(link)
{
	window.clipboardData.setData('Text', link);
	alert('RSS 주소가 복사되었습니다');
}

function findZipcodeOpen()
{
	MM_openBrWindow('/message/zip_search.asp?form=','','width=450,height=350,top=5,left=5')
}

function OWindowst2(url,w,h)
{
	window.open( url, "w_ssh", "toolbar=no,location=no,directories=no,status=no,menubar=no,width="+w+",height="+h+",resizable=no,scrollbars=no" );
}

function changeWzWindow(wz_seq)
{
	if (wz_seq!="" )
		location.href="/newsletter/newsletter_sub01.jsp?wz_seq="+wz_seq;
}

function  checkSearchDate(frmObj)
{
	if ( frmObj.dt_start.value=="" || frmObj.dt_end.value=="" ){
		alert("검색일자를 입력해주세요");
		return false;
	}
}

//실명인증 Open 창
function fnPopup(){
		//한국신용평가정보 안심 실명확인 팝업페이지를 띄웁니다.
	window.open('/message/message_realname_check_htm2.php', 'popup','width=410, height=590');
	//SLB_show('/message/message_realname_check_htm2.php','iframe', 410, 560, true, false);
	document.frmRealName.target = "popup";
	document.frmRealName.action = "https://cert.namecheck.co.kr/certnc_input.asp"
	document.frmRealName.submit();
}

// 페이지 이동
function Login()
{
	location.href='/login/login.asp';
}

function Join()
{
	location.href='/join/join.asp';
}

function Logout()
{
	location.href='/message/member_logout_action.asp';
}

function Mypage()
{
	location.href='/mypage/mbr_modi.asp';
}

function changeList(ca)
{
	document.chList.msg_ca_no.value=ca;
	document.chList.submit();
}
function fn_chYear()
{
	document.frmsearch.submit();
}

//사이트별팝업창 쿠키값 get 스크립트
function getCookie( name ){
	var nameOfCookie = name + "=";
	var x = 0;
	while ( x <= document.cookie.length )
	{
			var y = (x+nameOfCookie.length);
			if ( document.cookie.substring( x, y ) == nameOfCookie ) {
					if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
							endOfCookie = document.cookie.length;
					return unescape( document.cookie.substring( y, endOfCookie ) );
			}
			x = document.cookie.indexOf( " ", x ) + 1;
			if ( x == 0 )
					break;
	}
	return "";
}

function GetCookie( strName )
{
	var arrCookie = document.cookie.split(";");
	var arrCrumb;
	for (var i=0;i<arrCookie.length;i++)
	{
		arrCrumb = arrCookie[i].split("=");
		if (strName==arrCrumb[0].replace(/^\s+/, ""))
		return unescape(arrCrumb[1]);
	}
	return "";
}

function readCookie( strName )
{
	var arrCookie = document.cookie.split(";");
	var arrCrumb;
	for (var i=0;i<arrCookie.length;i++)
	{
		arrCrumb = arrCookie[i].split("=");
		if (strName==arrCrumb[0].replace(/^\s+/, ""))
		return unescape(arrCrumb[1]);
	}
	return "";
}

function setCookie( name, value, expiredays ){
	var today = new Date();
	today.setDate( today.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";";
}

function printPage()
{
	window.print();
}

function emailPage()
{
	window.open("/message/message_email_sender.php", '페이지메일','left=0,top=0,width=600,height=300,toolbar=no,menubar=no,status=yes,scrollbars=yes,resizable=yes');
	return;
}

function errPage()
{
	SLB_show('/message/menu_errpage_request.php','iframe', 600, 400, false, false);
	return;
}

function sendmail_master()
{
	SLB_show('/message/sendmail_master.htm','iframe', 600, 400, false, false);
	return;
}

function showEbookPage(mnu_uid,msg_no,file_no)
{
	var url = "/message/message_ebook_window.php?mnu_uid="+mnu_uid+"&msg_no="+msg_no+"&file_no="+file_no;
	window.open(url, '페이지메일','left=0,top=0,width=900,height=676,toolbar=no,menubar=no,status=yes,scrollbars=no,resizable=yes');
	return;
}

function fn_zipsearch(frmName,zip1,zip2,addr1,addr2)
{
	var i_url = "/message/member_zipcode_search.php?fm="+frmName+"&zip1="+zip1+"&zip2="+zip2+"&addr1="+addr1+"&addr2="+addr2;
	window.open(i_url,'openZipWindow','width=450,height=350,top=10,left=10,resizable=no,menubar=no,scrollbars=no');
	return;
}

function fn_zipsearch1(frmName,zip1)
{
	var i_url = "/message/member_zipcode_search1.php?fm="+frmName+"&zip1="+zip1;
	window.open(i_url,'openZipWindow','width=450,height=350,top=10,left=10,resizable=no,menubar=no,scrollbars=no');
	return;
}

function fn_zipsearchedu(frmName,zip1,zip2,addr1,addr2)
{
	if ( confirm("주소는 남구지역만 가능합니다.") )
	{
		var i_url = "/message/member_zipcode_search.php?dk=1&fm="+frmName+"&zip1="+zip1+"&zip2="+zip2+"&addr1="+addr1+"&addr2="+addr2;
		window.open(i_url,'openZipWindow','width=450,height=350,top=10,left=10,resizable=no,menubar=no,scrollbars=no');
		return;
	}
}


// 팝업창 순환관련
function img_act(no,s)
{
	if (document.images)
		document.images["pop_"+no].src = "/img/main/popup_no"+no+"_on.gif";
	else
		document.getElementById("pop_"+no).src= "/img/main/popup_no"+no+"_on.gif";

	for(i=1;i<=s;i++){
		if (no!=i)
		{
			if (document.images)
				document.images["pop_"+i].src = "/img/main/popup_no"+i+"_off.gif";
			else
				document.getElementById("pop_"+i).src = "/img/main/popup_no"+i+"_off.gif";
		}
	}
}


function showLayer(no,s)
{
	document.getElementById("event"+no).style.display= "block";
	for(i=1;i<=s;i++){
		if (no!=i) 	document.getElementById("event"+i).style.display = "none";
	}
}
function ShowPopupLayer(no,s)
{
	img_act(no,s);
	showLayer(no,s);
}

/////클릭하면 펼쳐지는 스크립트

function down(name){

if (name == 'down1'){
	if (down1.style.display == 'none'){
		down1.style.display='block';
	}else{
		down1.style.display='none';
	}
}
if (name == 'down2'){
	if (down2.style.display == 'none'){
		down2.style.display='block';
	}else{
		down2.style.display='none';
	}
}

if (name == 'down3'){
	if (down3.style.display == 'none'){
		down3.style.display='block';
	}else{
		down3.style.display='none';
	}
}

if (name == 'down4'){
    if (down4.style.display == 'none'){
        down4.style.display='block';
    }else{
        down4.style.display='none';
    }
}

if (name == 'down5'){
    if (down5.style.display == 'none'){
        down5.style.display='block';
    }else{
        down5.style.display='none';
    }
}

if (name == 'down6'){
    if (down6.style.display == 'none'){
        down6.style.display='block';
    }else{
        down6.style.display='none';
    }
}

if (name == 'down7'){
    if (down7.style.display == 'none'){
        down7.style.display='block';
    }else{
        down7.style.display='none';
    }
}

if (name == 'down8'){
    if (down8.style.display == 'none'){
        down8.style.display='block';
    }else{
        down8.style.display='none';
    }
}

if (name == 'down9'){
    if (down9.style.display == 'none'){
        down9.style.display='block';
    }else{
        down9.style.display='none';
    }
}

if (name == 'down10'){
    if (down10.style.display == 'none'){
        down10.style.display='block';
    }else{
        down10.style.display='none';
    }
}

if (name == 'down11'){
    if (down11.style.display == 'none'){
        down11.style.display='block';
    }else{
        down11.style.display='none';
    }
}

if (name == 'down12'){
    if (down12.style.display == 'none'){
        down12.style.display='block';
    }else{
        down12.style.display='none';
    }
}

if (name == 'down13'){
    if (down13.style.display == 'none'){
        down13.style.display='block';
    }else{
        down13.style.display='none';
    }
}
if (name == 'down14'){
    if (down14.style.display == 'none'){
        down14.style.display='block';
    }else{
        down14.style.display='none';
    }
}

if (name == 'down15'){
    if (down15.style.display == 'none'){
        down15.style.display='block';
    }else{
        down15.style.display='none';
    }
}


}

function setPosition(valueW, valueH)
{
	if(navigator.appVersion.indexOf("MSIE 7.0") > 0) {
		valueW = valueW;
		valueH = valueH + 22;
	} else {
		valueW = valueW;
		valueH = valueH;
	}

	var height	= screen.height;
	var width	= screen.width;
	var leftpos = width / 2 - valueW / 2;
	var toppos	= height / 2 - valueH / 2;

	self.resizeTo(valueW, valueH);
	self.moveTo(leftpos, toppos);
	self.resizeTo(valueW, valueH);		// 이유없다 resize잘안되어서 한번더 call
}

	function toggleMenu(currMenu) {
	if (document.all) {
	thisMenu = eval("document.all." + currMenu + ".style")
	if (thisMenu.display == "block") {
	thisMenu.display = "none"
	}
	else {
	thisMenu.display = "block"
	}
	return false
	}
	else {
	return true
	}
	}

function layerview(onoff){
	if(onoff==1){
		document.getElementById('qlink').style.visibility="visible";
	}else{
		document.getElementById('qlink').style.visibility="hidden";
	}
}

function layerOnOff(id,onoff){
	if(onoff==1){
		document.getElementById(id).style.visibility="visible";
	}else{
		document.getElementById(id).style.visibility="hidden";
	}
}

//글로벌 네비게이션(2Depth 메뉴그룹)에 대한 마우스 또는 키보드 반응(보임/숨김)설정
function menuD2block(id,id2,k) {
	for(num=1; num<=5; num++) {
		//alert(num);
		document.getElementById('D2MG'+num).style.display='none'; //D2MG1~D2MG4 까지 숨긴 다음
		var top1 = document.getElementById("D1M"+num+"_S");
		top1.src = "/images/main/m_0"+num+".gif";
	}
	var top1Menu = document.getElementById(id2);
	if (top1Menu){
		top1Menu.src = "/images/main/m_0"+k+"_ov.gif";
		document.getElementById(id).style.display='block'; //해당 ID만 보임
	}
}

function menuD2block_2() {
	for(num=1; num<=5; num++) {
		document.getElementById('D2MG'+num).style.display='none'; //D2MG1~D2MG4 까지 숨긴 다음
	}
}


//로컬 네비게이션(4Depth 메뉴그룹)에 대한 마우스 또는 키보드 반응(보임/숨김)설정
function menuD4MGblock(id) {
	for(num=1; num<=11; num++) {
		if(document.getElementById('D4MG'+num)){
			document.getElementById('D4MG'+num).style.display='none'; //D4MG1~D4MG11 까지 숨긴 다음
		}
	}
	document.getElementById(id).style.display='block'; //해당 ID만 보임
	var ldiv = document.getElementById("left");
}

function menuD4block2() {
	for(num=1; num<=11; num++) {
		if(document.getElementById('D4MG'+num)){
			document.getElementById('D4MG'+num).style.display='none'; //D4MG1~D4MG11 까지 숨김
		}
	}
}

// 현재 페이지의 메뉴 상태 표시(편의상 모두 언더라인으로 설정되어 있으며 body onLoad 시 실행됨)
function menuD1on(id) {
//	document.getElementById(id).style.textDecoration='underline';
}
function menuD2on(id) {
//	document.getElementById(id).style.textDecoration='underline';
}
function menuD3on(id) {
//	document.getElementById(id).style.textDecoration='underline';
}
function menuD4on(id) {
//	document.getElementById(id).style.textDecoration='underline';
}
function menuD5on(id) {
//	document.getElementById(id).style.textDecoration='underline';
}

var g_css = 0;

function zoomFont(nSize) {
	var strCssName = "/css/css";

	if(nSize == 0) {
		g_css = nSize;
	} else {
		g_css += nSize;

		if(g_css > 3) {
			g_css = 3;
		}

		if(g_css < -3) {
			g_css = -3;
		}
	}

	strCssName += g_css + ".css";

	var oStyle = document.getElementById("idStyle");
	oStyle.href = strCssName;
}

function goLinkUrl(Obj)
{
	var url = Obj.options[Obj.selectedIndex].value;
	if (url!="")
		window.open(url);
	else
		alert('사이트를 선택해주세요');
}

function win_full_pop(url,target){
	var xpos = screen.availWidth;
	var ypos = screen.availHeight;
	window.open(url,target,'left=0, top=0, width='+xpos+', height='+ypos+', toolbar=no, scrollbars=no, status=no, resizable=no' );
}

//정보화 교육 때문에 필요한 함수.....시작......
// subject 속성값을 얻어 return, 없으면 tag의 name을 넘김
function getItemname(fld)
{
	var itemname = fld.getAttribute("itemname");
	if (itemname != null && itemname != "")
		return itemname;
	else
		return fld.name;
}

// 필수 입력 검사
function ckRequired(fld)
{
	if (Trim(fld.value) == "") {
			Msg = getItemname(fld) + " 필수 입력 사항입니다.\n";
			alert(Msg);
			fld.focus();
			return false;
	}
	return true;
}

// 숫자인지 검사..
function ckNumeric(fld)
{
	if (fld.value.length > 0) {
		for (i = 0; i < fld.value.length; i++) {
			var chr = fld.value.substr(i,1);
			if (chr < '0' || chr > '9') {
				Msg = getItemname(fld) + " 숫자가 아닙니다.\n";
				alert(Msg);
				fld.focus();
				return false;
			}
		}
		return true;
	}
	else {
			Msg = getItemname(fld) + " 숫자가 아닙니다.\n";
			alert(Msg);
			fld.focus();
			return false;
	}
}


//정보화 교육 때문에 필요한 함수.....끝......

function profile1() {window.open("profile1.php","profile","width=520,height=330,scrollbars=no");}
function profile2() {window.open("profile2.php","profile","width=520,height=330,scrollbars=no");}
function profile3() {window.open("profile3.php","profile","width=520,height=330,scrollbars=no");}
function profile4() {window.open("profile4.php","profile","width=520,height=330,scrollbars=no");}
function profile5() {window.open("profile5.php","profile","width=520,height=330,scrollbars=no");}
function profile6() {window.open("profile6.php","profile","width=520,height=330,scrollbars=no");}
function profile7() {window.open("profile7.php","profile","width=520,height=330,scrollbars=no");}
function profile8() {window.open("profile8.php","profile","width=520,height=330,scrollbars=no");}
function profile9() {window.open("profile9.php","profile","width=520,height=330,scrollbars=no");}
function profile10() {window.open("profile10.php","profile","width=520,height=330,scrollbars=no");}
function profile11() {window.open("profile11.php","profile","width=520,height=330,scrollbars=no");}
function profile12() {window.open("profile12.php","profile","width=520,height=370,scrollbars=no");}
function profile13() {window.open("profile13.php","profile","width=520,height=330,scrollbars=no");}
function profile20() {window.open("profile20.php","profile","width=500,height=560,scrollbars=no");}
function profile21() {window.open("profile21.php","profile","width=500,height=560,scrollbars=no");}
function profile22() {window.open("profile22.php","profile","width=500,height=560,scrollbars=no");}
function profile23() {window.open("profile23.php","profile","width=500,height=560,scrollbars=no");}
function profile24() {window.open("profile24.php","profile","width=500,height=560,scrollbars=no");}
function profile25() {window.open("profile25.php","profile","width=500,height=560,scrollbars=no");}
function profile26() {window.open("profile26.php","profile","width=500,height=560,scrollbars=no");}
function profile27() {window.open("profile27.php","profile","width=500,height=660,scrollbars=no");}
function profile28() {window.open("profile28.php","profile","width=500,height=560,scrollbars=no");}
function profile29() {window.open("profile29.php","profile","width=500,height=560,scrollbars=no");}
function profile30() {window.open("profile30.php","profile","width=500,height=560,scrollbars=no");}
