<!--
 SiteUrl = '';
//Neocorea 2011.12.22 edit by park bo-su
url_list = new Array();
newwin_list = new Array();
window_list = new Array();
fullwin_list = new Array();
// flash link guide
// javascript:go_site(1);
url_list[100] = '#';                                                      //메인페이지
//################[대회안내]
url_list[111] = '#';                               //대회취지 
url_list[112] = '#';                               //대회요강
url_list[113] = '#';                               //대회일정 
url_list[114] = '#';                               //시상안내
url_list[115] = '#';                               //참가자유의사항
url_list[116] = '#';                               //교통 
url_list[117] = '#';                               //숙박 
//################[대회코스]
url_list[211] = '#';                               //코스맵 
url_list[212] = '#';                               //코스고저도
url_list[213] = '#';                               //코스통과시간표
url_list[214] = '#';                               //대회코스답사 및 전략
//################[참가신청]
url_list[311] = '#';                               //신청안내 
url_list[312] = '#';                               //참가신청
url_list[313] = '#';                               //신청조회 및 수정
url_list[314] = '#';                               //환불신청
url_list[315] = '#';                               //전자결제이용안내 
url_list[316] = '#';                               //기록증발급
//################[대회기록]
url_list[411] = '#';                               //2003년
url_list[412] = '#';                               //2004년
url_list[413] = '#';                               //2005년
url_list[414] = '#';                               //2006년
url_list[415] = '#';                               //2007년
url_list[416] = '#';                               //2008년
url_list[417] = '#';                               //2009년
url_list[418] = '#';                               //2010년
url_list[419] = '#';                               //2011년
//################[포토갤러리]
url_list[511] = '#';                               //2003년
url_list[512] = '#';                               //2004년
url_list[513] = '#';                               //2005년
url_list[514] = '#';                               //2006년
url_list[515] = '#';                               //2007년
url_list[516] = '#';                               //2008년
url_list[517] = '#';                               //2009년
url_list[518] = '#';                               //2010년
url_list[519] = '#';                               //2011년
url_list[531] = '#';                               //참가자마당
//################[마라톤광장]
url_list[611] = '#';                               //마라톤뉴스 
url_list[612] = '#';                               //마라톤역사 
url_list[613] = '#';                               //초보자교실 
url_list[614] = '#';                               //마라톤이야기 
url_list[615] = '#';                               //마라톤동호회 
url_list[616] = '#';                               //마라톤일정 
url_list[617] = '#';                               //대회소식지 
//################[커뮤니티]
url_list[711] = '#';                               //공지사항
url_list[712] = '#';                               //자주묻는질문
url_list[713] = '#';                               //묻고답하기
url_list[714] = '#';                               //자유게시판
//################[english introduce]
url_list[1111] = '#';                               //overview
url_list[1112] = '#';                               //schedule
url_list[1113] = '#';                               //course map
url_list[1114] = '#';                               //prize structure
//################[english application]
url_list[1211] = '#';                               //application guide
url_list[1212] = '#';                               //register
url_list[1213] = '#';                               //confirm/modify
url_list[1214] = '#';                               //payment
url_list[1215] = '#';                               //refund
//################[english gallery]
url_list[1311] = '#';                               //photo gallery
//##############################   page definition   ###############################
// new windows
//newwin_list[401] = 'true';
//newwin_list[91] = 'true';

// open windows
//window_list[115] = 'width=615 height=700 resizable=no scrollbars=yes';

//full screen menu
//fullwin_list[10] = 'true'
function go_site(num)
{
  if(url_list[num])
  {
// self windows
    if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
    {
    	location=url_list[num];
    }
// blank  windows
    if(window_list[num] != '' && window_list[num] != null)
    {
      window.open(url_list[num], 'new_win', window_list[num]);
    }
// fullscreen  windows
    if(fullwin_list[num] == 'true')
    {
      window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
    }
// new  windows
    if(newwin_list[num] == 'true')
    {
      window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
    }
  }
}
function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}
function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";
function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}
function getSty(id) {
	x = getRef(id);
	return (isNS4 ? getRef(id) : getRef(id).style);
}
//**************************************
//flash patch
//**************************************
var flash_width;
var flash_height;
function flash_print(flash_filename, flash_width, flash_height)
{
  if(flash_width != '') var width_str = 'width=' + flash_width;
  if(flash_height != '') var height_str = 'height=' + flash_height ;
	var sTag = ''
		+ '<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\' ' + width_str + ' ' + height_str + '>'
		+ '        <param name=\'movie\' value=\'' + flash_filename + '\'>'
		+ '        <param name=\'play\' value=\'true\'>'
		+ '        <param name=\'loop\' value=\'true\'>'
	  + '        <param name=\'wmode\' value=\'Transparent\'>'
		+ '        <param name=\'quality\' value=\'high\'>'
		+ '        <param name=\'allowScriptAccess\' value=\'always\' />'
		+ '        <embed src=\'' + flash_filename + '\' play=\'true\' loop=\'true\' wmode=\'Transparent\' allowScriptAccess=\'always\'  quality=\'high\' pluginspage=\'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\' ' + width_str + ' ' + height_str + ' ></embed></object>'
		+ '';
	document.write (sTag);
}

//vod
function winopen(file,nam,wid,hit,status,toolbar,resizable,scrollbars,fullscreen,menubar,top,left){
	var windo = eval('window.open("'+file+'","","status='+status+',toolbar='+toolbar+',resizable='+resizable+',scrollbars='+scrollbars+', fullscreen='+fullscreen+', menubar='+menubar+',width='+wid+',height='+hit+',top='+top+',left='+left+'")');
 }
 
function fncCancel(){
	if(confirm('진행 중인 작업을 취소하시고 이전 페이지로 돌아가시겠습니까?')){
		history.back();
		
	}
	return false;
}


/**
 * Parameter 값이 Number형인지 확인하여
 * 결과를 반환한다.
 * 
 * @param 확인 대상문자열
 * 사용방법 :  onkeydown="inputNumber(this, true); return numbersonly(event, false);" onblur="inputNumber(this, true)";"
 * @return Number형 여부(Boolean)
 */
function isNumeric(sValue) {
	var pattern = /^[0-9]+$/;
	return (pattern.test(sValue)) ? true : false;
}

/**
 * 대상 Element의 Value값이 Number인지 확인하고
 * 입력값의 삭제 여부에 따라 처리
 * 
 * @param 대상 Input Element
 * @param 입력값 삭제여부
 * 
 * @return void
 */
function inputNumber(oElem, bReset)
{
	var inputValue = oElem.value;
	if(!isNumeric(inputValue))
	{
		if(bReset)
		{
			oElem.value = "";
		}
		else
		{
			var charleng = inputValue.length;
			var resultValue = "";
			for(var i=0; i<charleng; i++)
			{
				var tmpChar = inputValue.charAt(i);
				if(isNumeric(tmpChar))
					resultValue += tmpChar;
			}

			oElem.value = resultValue;
		}
	}
}

function numbersonly(e, decimal) { 
    var key; 
    var keychar; 

    if (window.event) { 
       // IE에서 이벤트를 확인하기 위한 설정 
        key = window.event.keyCode; 
    } else if (e) { 
      // FireFox에서 이벤트를 확인하기 위한 설정 
        key = e.which; 
    } else { 
        return true; 
    } 

    keychar = String.fromCharCode(key); 
 		if((key==8||key==9||key==13||key==46||key==144||(key>=48&&key<=57)||(key>=96&&key<=105)||key==190)){
		
        return true; 
    } else if ((("0123456789").indexOf(keychar) > -1)) { 
        return true; 
    } else if (decimal && (keychar == ".")) { 
        return true; 
    } else 
        return false; 
}
