﻿
function onSelfClose() {
    window.opener = self;
    window.close();
}

function onClose() {
    self.close();
}

//유효성체크 일반
function valRequire(obj, msg) {
    if (obj == null)
        return;

    if (obj.value == '') {
        if (msg != '')
            alert(msg);

        if (obj.type != 'hidden')
            obj.focus();

        return true;
    }
    return false;
}

//유효성체크 일반
function valRequireLen(obj, len, ck) {
    if (obj == null)
        return;

    if (ck == "+") {
        if (obj.value.length < len) {
            alert(len + "자 이상 입력하세요!");

            if (obj.type != 'hidden')
                obj.focus();

            return true;
        }
    }
    else {
        if (obj.value.length > len) {
            alert(len + "자 미만 입력하세요!");

            if (obj.type != 'hidden')
                obj.focus();

            return true;
        }
    }

    return false;
}

//유효성체크 - CkeckBox type
function valCheck(obj, boolValue, msg) {
    if (obj == null)
        return;

    if (obj.checked == boolValue) {
        if (msg != '')
            alert(msg);

        return true;
    }
    return false;
}

//유효성체크 - Radio type
function valRadio(obj, msg) {
    if (obj == null)
        return;

    var sVal = "";
    for (var i = 0; i < obj.length; i++) {
        if (obj[i].checked == true)
            sVal = obj[i].value;
    };

    if (sVal == "") {
        if (msg != '')
            alert(msg);

        return false;
    }

    return true;
}

function valCompare(obj, comValue, msg) {
    if (obj == null)
        return;

    if (obj.value == comValue) {
        if (msg != '')
            alert(msg);

        if (obj.type != 'hidden')
            obj.focus();

        return true;
    }

    return false;
}
//==================================================================================================================
//==================================================================================================================

//******************************************************************************************************************
// carlendar 관련

var pop_Calendar;
function onCalendar(gubun, year, month, day) {
    if (pop_Calendar != null && !pop_Calendar.closed)
        pop_Calendar.close();

    pop_Calendar = window.open('/script/calendar.aspx?gubun=' + gubun + '&year=' + year + '&month=' + month + '&day=' + day, '', 'width=180,height=180,toolbar=no,location=no,directories=no,status=no,member=no,scrollbars=0,resizable=1,left=600,top=400');
}

function onCellClick(year, month, day, fryear, frmonth, frday) {
    if (pop_Calendar != null && !pop_Calendar.closed)
        pop_Calendar.close();

    var form = document.all;
    if (form == null)
        return;
    if (year == null)
        year = '';
    if (month == null)
        month = '';
    if (day == null)
        day = '';

    var frmYear = eval("document.all." + fryear);
    var frmMonth = eval("document.all." + frmonth);
    var frmDay = eval("document.all." + frday);

    frmYear.value = year;
    frmMonth.value = month;
    frmDay.value = day;
}

function CkNum(id) {
    if (id.value != '' && id.value.match(/[0-9-]+/g) != id.value) {
        alert('숫자만 사용할 수 있습니다');
        id.value = ''
        id.focus()
        return;
    }
}

function ChFocus(len, inObj, nextObj) {
    if (inObj.value.length == len) {
        if (nextObj != null)
            nextObj.focus();
    }
}

function onCheckDate(obj) {
    var sDate = obj.value;
    if (sDate.length == 8)
        sDate = sDate.substr(0, 4) + '-' + sDate.substr(4, 2) + '-' + sDate.substr(6, 2);

    if (sDate.length == 10)
        obj.value = sDate;
    else
        alert("날짜 형식이 잘못 되었습니다.");
}

// 쿠키값 가져오기
function getCookie(key) {
    var cook = document.cookie + ";";
    var idx = cook.indexOf(key, 0);
    var val = "";

    if (idx != -1) {
        cook = cook.substring(idx, cook.length);
        begin = cook.indexOf("=", 0) + 1;
        end = cook.indexOf(";", begin);
        val = unescape(cook.substring(begin, end));
    }

    return val;
}

// 쿠키값 설정
function setCookie(name, value, expiredays) {
    var today = new Date();

    today.setDate(today.getDate() + expiredays);
    document.cookie = name + "=" + escape(value) + "; path=/; expires=" + today.toGMTString() + ";"
}
//==================================================================================================================
//==================================================================================================================

function checkNumber() {
    if (document.all) {
        var c = String.fromCharCode(event.keyCode);
        event.returnValue = (!((c >= "0" && c <= "9") || c == "." || c == "-" || c == "+")) ? false : true;
    }
}

/**
* String 변환
*/
function StringReplace(replace, search, sub) {
    var result = "";
    var i;

    do {
        i = replace.indexOf(search);

        if (i != -1) {
            result = replace.substring(0, i);
            result = result + sub;
            result = result + replace.substring(i + search.length);
            replace = result;
        }
    } while (i != -1);

    return replace;
}

/**
* 입력값이 특정 문자(chars)만으로 되어있는지 체크

* 특정 문자만 허용하려 할 때 사용
* ex) if (!containsCharsOnly(form.blood,"ABO")) {
*         alert("혈액형 필드에는 A,B,O 문자만 사용할 수 있습니다.");
*     }
*/
function containsCharsOnly(input, chars) {
    for (var inx = 0; inx < input.value.length; inx++) {
        if (chars.indexOf(input.value.charAt(inx)) == -1)
            return false;
    }
    return true;
}

/**
* 입력값이 알파벳 대문자인지 체크
*/
function isUpperCase(input) {
    var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    return containsCharsOnly(input, chars);
}

/**
* 입력값이 알파벳 소문자인지 체크
*/
function isLowerCase(input) {
    var chars = "abcdefghijklmnopqrstuvwxyz";
    return containsCharsOnly(input, chars);
}

/**
* 입력값에 숫자만 있는지 체크
*/
function isNumber(input) {
    var chars = "0123456789";
    return containsCharsOnly(input, chars);
}

/**
* 입력값이 알파벳,숫자로 되어있는지 체크
*/
function isAlphaNum(input) {
    var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
    return containsCharsOnly(input, chars);
}

/**
* 입력값이 숫자,대시(-)로 되어있는지 체크
*/
function isNumDash(input) {
    var chars = "-0123456789";
    return containsCharsOnly(input, chars);
}

/**
* 입력값이 숫자,콤마(,)로 되어있는지 체크
*/
function isNumComma(input) {
    var chars = ",0123456789";
    return containsCharsOnly(input, chars);
}

/**
* 입력값에서 콤마를 없앤다.
*/
function removeComma(input) {
    return input.value.replace(/,/gi, "");
}

/**
* 입력값이 사용자가 정의한 포맷 형식인지 체크
* 자세한 format 형식은 자바스크립트의 'regular expression'을 참조
*/
function isValidFormat(input, format) {
    if (input.value.search(format) != -1) {
        return true; //올바른 포맷 형식
    }
    return false;
}

/**
* 입력값이 이메일 형식인지 체크
*/
function isValidEmail(input) {
    //    var format = /^(\S+)@(\S+)\.([A-Za-z]+)$/;
    var format = /^((\w|[\-\.])+)@((\w|[\-\.])+)\.([A-Za-z]+)$/;
    return isValidFormat(input, format);
}

/**
* 입력값이 전화번호 형식(숫자-숫자-숫자)인지 체크
*/
function isValidPhone(input) {
    var format = /^(\d+)-(\d+)-(\d+)$/;
    return isValidFormat(input, format);
}

/**
* 선택된 라디오버튼이 있는지 체크
*/
function hasCheckedRadio(input) {
    if (input.length > 1) {
        for (var inx = 0; inx < input.length; inx++) {
            if (input[inx].checked) return true;
        }
    } else {
        if (input.checked) return true;
    }
    return false;
}

/**
* 선택된 체크박스가 있는지 체크
*/
function hasCheckedBox(input) {
    return hasCheckedRadio(input);
}

/**
* 입력값의 바이트 길이를 리턴
*/
function getByteLength(input) {
    var byteLength = 0;
    for (var inx = 0; inx < input.value.length; inx++) {
        var oneChar = escape(input.value.charAt(inx));
        if (oneChar.length == 1) {
            byteLength++;
        } else if (oneChar.indexOf("%u") != -1) {
            byteLength += 2;
        } else if (oneChar.indexOf("%") != -1) {
            byteLength += oneChar.length / 3;
        }
    }
    return byteLength;
}

/* 문자열의 왼쪽을 지정문자로 채운다 */
function lpad(newValue, len, ch) {
    var strlen = newValue.length;
    var ret = "";
    var alen = len - strlen;
    var astr = "";

    //부족한 숫자만큼  len 크기로 ch 문자로 채우기
    for (i = 0; i < alen; ++i) {
        astr = astr + ch;
    }

    ret = astr + newValue; //앞에서 채우기
    return ret;
}

/*-------------------화면확대 축소기능--------------------------------*/

document.onkeypress = getKey;

function getKey(keyStroke) {
    isNetscape = (document.layers);
    eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
    which = String.fromCharCode(eventChooser).toLowerCase();
    which2 = eventChooser;

    var el = event.srcElement;

    if ((el.tagName != "INPUT") && (el.tagName != "TEXTAREA"))		//input,textarea 안에서의 +.-값은 실행안되도록
    {
        if (which == "+")
            zoomInOut('in');
        else if (which == "-")
            zoomInOut('out');
    }
}


var zoomRate = 20; 		// 확대/축소시 증감률

var maxRate = 300; 		//최대확대률

var minRate = 100; 		//최소축소률

var curRate = 100;

if (getCookie("zoomVal") != "") {
    curRate = getCookie("zoomVal");
}

if (curRate != minRate) {
    zoomInOut("curr");
}

function zoomInOut(how) {
    if (how == "in") {
        curRate = (-(-(curRate))) + (-(-(zoomRate)));
        if (curRate >= maxRate)
            curRate = maxRate;
        /* 화면 확대 */
    }
    else if (how == "out") {
        curRate = (-(-(curRate))) - (-(-(zoomRate)));
        if (curRate <= minRate)
            curRate = minRate;
        /* 화면 축소 */
    } else {
        if (curRate >= maxRate)
            curRate = maxRate;
        if (curRate <= minRate)
            curRate = minRate;
        /* 이전값 복구 */
    }

    document.body.style.zoom = curRate + '%';

    for (var i = 0; i < document.getElementsByTagName("DIV").length; i++) {
        var obj = document.getElementsByTagName("DIV").item(i);

        if (obj.id == "divFlash" || obj.id == "divFlashMenu" || obj.id == "Layer2" || obj.id == "bodyBack")
            continue;

        if (obj.id == "top_ico") {
            if (curRate != 100)
                obj.style.display = "none";
            else
                obj.style.display = "";
        }

        obj.style.zoom = curRate + "%";
    }

    SetInstantCookie("zoomVal", curRate);
}

function SetInstantCookie(name, value) {
    document.cookie = name + "=" + escape(value) + "; path=/;";
}

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 fnStartPoint() {
    var x, y;
    if (self.innerHeight) { // IE 외 모든 브라우저 
        x = (screen.availWidth - 320) / 2;
        y = (screen.availHeight - 350) / 2;
    } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict 모드 
        x = (screen.availWidth - 320) / 2;
        y = (screen.availHeight - 350) / 2;
    } else if (document.body) { // 다른 IE 브라우저( IE < 6) 
        x = (screen.availWidth - 320) / 2;
        y = (screen.availHeight - 350) / 2;
    }

    return 'left=' + x + ', top=' + y;
}

function fnStartPointSize(width, height) {
    var x, y;
    if (self.innerHeight) { // IE 외 모든 브라우저 
        x = (screen.availWidth - width) / 2;
        y = (screen.availHeight - height) / 2;
    } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict 모드 
        x = (screen.availWidth - width) / 2;
        y = (screen.availHeight - height) / 2;
    } else if (document.body) { // 다른 IE 브라우저( IE < 6) 
        x = (screen.availWidth - width) / 2;
        y = (screen.availHeight - height) / 2;
    }

    return 'left=' + x + ', top=' + y;
}



function resizeIframe(fr) {
    document.recalc(true);
}


function FindControl(tagName, CtrlName) {
    for (var i = 0; i < document.getElementsByTagName(tagName).length; i++) {
        var obj = document.getElementsByTagName(tagName).item(i);

        if (obj.id.indexOf(CtrlName) > 0) {
            return obj;
        }
    }

    return null;
}

function FindButtonClick(btnName) {

    var obj = FindControl("INPUT", btnName);

    if (obj == null)
        obj = FindControl("A", btnName);

    if (obj != null) {
        obj.click();
        return false;
    }
}

function SortSetting(sortColumn) {
    if (document.forms[0].sortDesc != null) {
        document.forms[0].sortDesc.value = document.forms[0].sortDesc.value == "desc" ? "asc" : "desc";
        document.forms[0].sortColumn.value = sortColumn;
    }

}

// 닷넷 라디오버튼 리스트 컨트롤 선택된값
function getRadioButtonValue(obj) {
    var rtnVal = "";
    var input = obj.getElementsByTagName("input");

    for (var i = 0; i < input.length; i++) {
        if (input.item(i).checked)
            rtnVal = input.item(i).value;
    }

    return rtnVal;
}

function OpenPopup(url, pName, width, height) {
    var pop = window.open(url, pName, 'width=' + width + ', height=' + height + ',left=0,top=0,toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrollbars=no, copyhistory=no, ' + fnStartPointSize(width, height));
    if (pop != null)
        pop.focus();
}

function OpenPopupEdu(subj, year, subjseq, isonoff) {

    var pop = window.open('http://gedu.intoin.or.kr/servlet/controller.apply.ApplyServlet?p_process=SeqPreviewPage&p_subj=' + subj + '&p_year=' + year + '&p_subjseq=' + subjseq + '&p_isonoff=' + isonoff, 'eduview', 'width=800, height=600,left=0,top=0,toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrollbars=yes, copyhistory=no, left=100, top=100');
    if (pop != null)
        pop.focus();
}

function OpenPopupMain(url, pName, width, height) {
    var pop = window.open(url, pName, 'width=' + width + ', height=' + height + ',left=0,top=0,toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrollbars=no, copyhistory=no, left=50, top=50');
    if (pop != null)
        pop.focus();
}

function fnLogin(homeURL) {
 
    var fmLogin = document.forms[0];

    if (valRequire(fmLogin.login_userid, "아이디를 입력하세요!"))
        return;

    if (valRequire(fmLogin.login_password, "암호를 입력하세요!"))
        return;

    fmLogin.method = "post";
    fmLogin.action = homeURL + "login/login.aspx?returnUrl="+escape(document.location.href);
    fmLogin.submit();

}

function newfnLogin(homeURL) {
 
    var fmLogin = document.forms[0];

    if (valRequire(fmLogin.login_userid, "아이디를 입력하세요!"))
        return false;

    if (valRequire(fmLogin.login_password, "암호를 입력하세요!"))
        return false;

    fmLogin.method = "post";
    fmLogin.action = homeURL + "login/login.aspx?returnUrl="+escape(document.location.href);
    fmLogin.submit();

}

//브라우져 체크
appname = navigator.appName;
useragent = navigator.userAgent;
if (appname == "Microsoft Internet Explorer") appname = "IE";
IE55 = (useragent.indexOf('MSIE 5.5') > 0);  //5.5 버전
IE6 = (useragent.indexOf('MSIE 6') > 0);     //6.0 버전
IE7 = (useragent.indexOf('MSIE 7') > 0);     //7.0 버전

function swfprint(objid, furl, fwidth, fheight, transoption, flashvars, pscale) {
    if (pscale == null) {
        pscale = "noscale";
    }
    if (typeof (scheme) == 'undefined' || scheme == null) {
        scheme = 'http';
    }
    var ieTxt = '<object id="' + objid + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="' + scheme + '"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="' + fwidth + '" height="' + fheight + '" align="middle">';
    ieTxt += '<param name="allowScriptAccess" value="always"/>';
    ieTxt += '<param name="movie" value="' + furl + '"/>';
    ieTxt += '<param name="quality" value="high"/>';
    ieTxt += '<param name="bgcolor" value="#ffffff"/> ';
    ieTxt += '<param name="salign" value="T"/> ';
    ieTxt += '<param name="menu" value="false"/> ';
    if (flashvars) ieTxt += '<param name="flashVars" value="' + flashvars + '">';
    if (transoption == "t") {
        ieTxt += '<param name="wmode" value="transparent"/>';
    } else if (transoption == "o") {
        ieTxt += '<param name="wmode" value="opaque"/>';
    }
    ieTxt += '</object>';

    var ffTxt = '<object id="' + objid + '" type="application/x-shockwave-flash" data="' + furl + '" width="' + fwidth + '" height="' + fheight + '"';
    if (flashvars) ffTxt += ' flashVars="' + flashvars + '" ';
    if (transoption == "t") {
        ffTxt += ' wmode="transparent"';
    } else if (transoption == "o") {
        ffTxt += ' wmode="opaque"';
    }
    ffTxt += 'allowScriptAccess="always"';
    ffTxt += '></object>';

    if (appname == "IE") document.write(ieTxt);
    else document.write(ffTxt);
}

//메인 사이트맵 토글
function layerToggle(layerID, imgID, onChangeStr, offChangeStr) {

    var element = document.getElementById(layerID);    
    if (eval(element)) {
        var imgElement = document.getElementById(imgID);

        if (imgElement == null)
            return false;

        imgElement.onclick = function() {

            if (element.style.display == "none" || element.style.display == "") {
                $(element).slideDown();
                this.src = imgElement.src.replace(onChangeStr, offChangeStr);
                return false;
            }
            if (element.style.display == "block") {
                $(element).hide();

                if (imgElement.src != null) {
                    this.src = imgElement.src.replace(offChangeStr, onChangeStr);
                    return false;
                }
            }
        };
    } else {
        return false;
    }
}

var TopMenuImageName = "";

//이미지 변경
function imgOn(obj) {    
    obj.src = obj.src.replace("_off.gif", ".gif");
}
function imgOff(obj) {
    obj.src = obj.src.replace(".gif", "_off.gif");
}
function imgFocus(nm) {
	var obj = document.getElementById(nm);
	obj.src = obj.src.replace("_off.gif", ".gif");
}
function imgOnblur(nm) {
	var obj = document.getElementById(nm);
	if(obj.src.indexOf("_off.gif") == -1){
		obj.src = obj.src.replace(".gif", "_off.gif");
	}	
}

//메뉴 액션
function initGnbAction(gnbID) {

    var element = document.getElementById(gnbID);
    
    if (eval(element)) {
        var imgElement = element.getElementsByTagName('img');
        for (var i = 0; i < imgElement.length; i++) {

            if (imgElement[i].src.indexOf(TopMenuImageName) == -1) {

                imgElement[i].onmouseover = function() {
                    imgOn(this);
                };
                imgElement[i].onmouseout = function() {
                    imgOff(this);
                };
            }
        }
    } else {
        return false;
    }
}

// selectBox 

function actSelect(divID, inputID){
    var element = document.getElementById(divID);
    var inputTag = document.getElementById(inputID);
    element.onmouseout = function() {
        element.style.display="none";
    }
    element.onmouseover = function() {
        element.style.display="block";
    }
    inputTag.onmouseout = function() {
        element.style.display="none";
    }
    var nodeTag = element.getElementsByTagName('li');
    for(var i=0;i < nodeTag.length;i++){
        nodeTag[i].setAttribute("value",i);
        nodeTag[i].onmouseover = function() {
            this.style.backgroundColor = "#f9f9f9";
        };
        nodeTag[i].onmouseout = function() {
            this.style.backgroundColor = "#ffffff";
        };
        nodeTag[i].onclick = function() {
            document.getElementById(inputID).value =  this.firstChild.nodeValue;
            document.getElementById(divID).style.display="none";
            document.getElementById(inputID).setAttribute("title",this.getAttribute('value'));
        };
    }
}

function actSelectSpan(divID, spanID) {
    var element = document.getElementById(divID);    
    var spanTag = document.getElementById(spanID);
    
    element.onmouseout = function() {
        element.style.display = "none";
    }
    element.onmouseover = function() {
        element.style.display = "block";
    }
    var nodeTag = element.getElementsByTagName('li');
    for (var i = 0; i < nodeTag.length; i++) {
        nodeTag[i].setAttribute("value", i);
        nodeTag[i].onmouseover = function() {
            this.style.backgroundColor = "#f9f9f9";
        };
        nodeTag[i].onmouseout = function() {
            this.style.backgroundColor = "#ffffff";
        };
        nodeTag[i].onclick = function() {            
            spanTag.innerHTML = this.firstChild.nodeValue;
            document.getElementById(divID).style.display = "none";            
        };
    }
}

function MouseUp(selectrow) {
    var trList = document.getElementsByName("trList");

    var i;

    if (trList.length == null) {
        trList.style.backgroundColor = "#e6e6fa";
    }
    else {
        for (i = 0; i < trList.length; i++) {
            if (selectrow == trList[i]) {
                selectrow.style.backgroundColor = "#f9f9f9";
            }
            else {
                trList[i].style.backgroundColor = "white";
            }
        }
    }
}
function MouseDown(selectrow) {
    var trList = document.getElementsByName("trList");
 
    if (trList.length == null) {
        trList.style.backgroundColor = "white";
    }
}

window.onload = function() {
  
};

$(document).ready(function() {
initGnbAction('siteMapImg');

layerToggle('bgMypage', 'mypageImage', '', ''); //마이페이지 레이어
layerToggle('bgMypage', 'mypage', '', ''); //마이페이지 레이어
layerToggle('bgSiteMap', 'siteMapImg', '', '');
layerToggle('bgSiteMap', 'siteClose', '', '');
layerToggle('totalNavi', 'siteMapImg', 'open', 'close');
layerToggle('totalNavi', 'totalNaviClose', '', 'close');
layerToggle('selectlist', 'selectKindIcon', 'open', 'close');

});

//png파일 투명하게
function setPng24(obj) { 
  obj.width=obj.height=1; 
  obj.className=obj.className.replace(/\bpng24\b/i,''); 
  obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
  obj.src='';  
  return ''; 
}

//즐겨찾기추가
function bookmark() {
    window.external.AddFavorite(location.href, '인투인 - 경기 인재 포털');
}

function fnLoginType(obj) {
    if (obj.name == "login_userid" && obj.value=="아이디") {
        obj.value = "";
    }

    if (obj.name == "login_password") {

        if (newID != null) {
            newID.focus();
            return false;
        }
        
        obj.value = "";
        replaceT(obj);
    }
}


function fnLoginTypeBlur(obj) {

}


function SetNext(obj, nextName, length)
{
    if(obj == null || obj.value == null)
        return;

    if(obj.value.length == length)
    {
        var nextObj = document.getElementById(nextName) == null ? document.getElementsByName(nextName)[0] : document.getElementById(nextName);
        
        if(nextObj != null)
            nextObj.focus();
        
    }
}


var newID = null;
function replaceT(obj) {
    if (newID == null) {
        newID = document.createElement('input');
        newID.setAttribute('type', 'password');
        newID.setAttribute('name', obj.getAttribute('name'));
        newID.className = obj.className;
        newID.setAttribute('id', obj.getAttribute('id'));
        newID.setAttribute('tabindex', obj.getAttribute('tabindex'));
        newID.setAttribute('onkeypress', obj.getAttribute('onkeypress'));
        obj.parentNode.replaceChild(newID, obj);
        setTimeout(temp, 1);
    }
}

function temp() {
    newID.focus();
}



function chkFullTextValidate(c)
{
    if (c == null)
        return true;
    //vSearchStr.indexOf(' ')!=-1 ||    
	var vSearchStr = c.value ;
	if(	
		vSearchStr=='about' ||
		vSearchStr=='1' ||
		vSearchStr=='after' ||
		vSearchStr=='2' ||
		vSearchStr=='all' ||
		vSearchStr=='also' ||
		vSearchStr=='3' ||
		vSearchStr=='an' ||
		vSearchStr=='4' ||
		vSearchStr=='and' ||
		vSearchStr=='5' ||
		vSearchStr=='another' ||
		vSearchStr=='6' ||
		vSearchStr=='any' ||
		vSearchStr=='7' ||
		vSearchStr=='are' ||
		vSearchStr=='8' ||
		vSearchStr=='as' ||
		vSearchStr=='9' ||
		vSearchStr=='at' ||
		vSearchStr=='0' ||
		vSearchStr=='be' ||
		vSearchStr=='$' ||
		vSearchStr=='because' ||
		vSearchStr=='been' ||
		vSearchStr=='before' ||
		vSearchStr=='being' ||
		vSearchStr=='between' ||
		vSearchStr=='both' ||
		vSearchStr=='but' ||
		vSearchStr=='by'||
		vSearchStr=='came' ||
		vSearchStr=='can' ||
		vSearchStr=='come' ||
		vSearchStr=='could' ||
		vSearchStr=='did' ||
		vSearchStr=='do' ||
		vSearchStr=='each' ||
		vSearchStr=='for' ||
		vSearchStr=='from' ||
		vSearchStr=='get' ||
		vSearchStr=='got' ||
		vSearchStr=='has' ||
		vSearchStr=='had' ||
		vSearchStr=='he' ||
		vSearchStr=='have' ||
		vSearchStr=='her' ||
		vSearchStr=='here' ||
		vSearchStr=='him' ||
		vSearchStr=='himself' ||
		vSearchStr=='his' ||
		vSearchStr=='how' ||
		vSearchStr=='if' ||
		vSearchStr=='in' ||
		vSearchStr=='into' ||
		vSearchStr=='is' ||
		vSearchStr=='it' ||
		vSearchStr=='like' ||
		vSearchStr=='make' ||
		vSearchStr=='many' ||
		vSearchStr=='me' ||
		vSearchStr=='might' ||
		vSearchStr=='more' ||
		vSearchStr=='most' ||
		vSearchStr=='much' ||
		vSearchStr=='must' ||
		vSearchStr=='my' ||
		vSearchStr=='never' ||
		vSearchStr=='now' ||
		vSearchStr=='of' ||
		vSearchStr=='on' ||
		vSearchStr=='only' ||
		vSearchStr=='or' ||
		vSearchStr=='other' ||
		vSearchStr=='our' ||
		vSearchStr=='out' ||
		vSearchStr=='over' ||
		vSearchStr=='said' ||
		vSearchStr=='same' ||
		vSearchStr=='see' ||
		vSearchStr=='should' ||
		vSearchStr=='since' ||
		vSearchStr=='some' ||
		vSearchStr=='still' ||
		vSearchStr=='such' ||
		vSearchStr=='take' ||
		vSearchStr=='than' ||
		vSearchStr=='that' ||
		vSearchStr=='the' ||
		vSearchStr=='their' ||
		vSearchStr=='them' ||
		vSearchStr=='then' ||
		vSearchStr=='there' ||
		vSearchStr=='these' ||
		vSearchStr=='they' ||
		vSearchStr=='this' ||
		vSearchStr=='those' ||
		vSearchStr=='through' ||
		vSearchStr=='to' ||
		vSearchStr=='too' ||
		vSearchStr=='under' ||
		vSearchStr=='up' ||
		vSearchStr=='very' ||
		vSearchStr=='was' ||
		vSearchStr=='way' ||
		vSearchStr=='we' ||
		vSearchStr=='well' ||
		vSearchStr=='were' ||
		vSearchStr=='what' ||
		vSearchStr=='where' ||
		vSearchStr=='which' ||
		vSearchStr=='while' ||
		vSearchStr=='who' ||
		vSearchStr=='with' ||
		vSearchStr=='would' ||
		vSearchStr=='you' ||
		vSearchStr=='your' ||
		vSearchStr=='a' ||
		vSearchStr=='b' || 
		vSearchStr=='c' || 
		vSearchStr=='d' || 
		vSearchStr=='e' || 
		vSearchStr=='f' || 
		vSearchStr=='g' || 
		vSearchStr=='h' || 
		vSearchStr=='i' || 
		vSearchStr=='j' || 
		vSearchStr=='k' || 
		vSearchStr=='l' || 
		vSearchStr=='m' || 
		vSearchStr=='n' || 
		vSearchStr=='o' || 
		vSearchStr=='p' || 
		vSearchStr=='q' || 
		vSearchStr=='r' || 
		vSearchStr=='s' || 
		vSearchStr=='t' || 
		vSearchStr=='u' || 
		vSearchStr=='v' || 
		vSearchStr=='w' || 
		vSearchStr=='x' || 
		vSearchStr=='y' || 
		vSearchStr=='z'			
	)
	{
		alert('검색이 불가한 키워드 또는 Full-Text 검색이 불가한 Noise 키워드 입니다.\n\n다른 단어로 검색을 수행해 주시길 부탁 드립니다.');
		c.focus();
		return false;
    }
    return true;
}

// 통합검색
function SearchKeyword() {
    var txtKeyword = document.getElementById("txtMainSW");
    
    if (txtKeyword.value.trim() == "") {
        alert("검색어를 입력하세요.");
        txtKeyword.focus();
        return;
    }

    if (chkFullTextValidate(txtKeyword)) {
        var spSearchKind = document.getElementById("spSearchKind");

        var url = "";       
        switch (spSearchKind.innerHTML.trim()) {
            case "통합검색":
                url = "/customer/search_main.aspx?sw=";
                break;
            case "채용정보":
                url = "/customer/search_jobs.aspx?sw=";
                break;
            case "인재정보":
                url = "/customer/search_talent.aspx?sw=";
                break;
            case "지원사업":
                url = "/customer/search_support.aspx?sw=";
                break;
            case "취업뉴스":
                url = "/customer/search_perinfo.aspx?sw=";
                break;
            default:
                url = "/customer/search_main.aspx?sw=";
                break;
        }

        document.location.href = url + escape(txtKeyword.value);
    }
    else {
        txtKeyword.value = "";
        txtKeyword.focus();
    }
}

// 통합검색
function NewSearchKeyword() {
    var txtKeyword = document.getElementById("txtMainSW");
    
    if (txtKeyword.value.trim() == "") {
        alert("검색어를 입력하세요.");
        txtKeyword.focus();
        return;
    }


    var spSearchKind = document.getElementById("bw_combo");

    var url = "";       
    switch (spSearchKind.value) {
        case "1":
            url = "/customer/search_main.aspx?sw=";
            break;
        case "2":
            url = "/customer/search_jobs.aspx?sw=";
            break;
        case "3":
            url = "/customer/search_talent.aspx?sw=";
            break;
        case "4":
            url = "/customer/search_support.aspx?sw=";
            break;
        case "5":
            url = "/customer/search_perinfo.aspx?sw=";
            break;
        default:
            url = "/customer/search_main.aspx?sw=";
            break;
    }

    document.location.href = url + escape(txtKeyword.value);
}


// 통합검색네트워크 2009.11.25 원정일 template4용
/*
function SearchKeyword() {
    var txtKeyword = document.getElementById("GlobalSearch-Keyword");
    
    if (txtKeyword.value.trim() == "") {
        alert("검색어를 입력하세요.");
        txtKeyword.focus();
        return;
    }

    if (chkFullTextValidate(txtKeyword)) {
        var spSearchKind = document.getElementById("spSearchKind");

        var url = "";       
        switch (spSearchKind.innerHTML.trim()) {
            case "통합검색":
                url = "/customer/search_main.aspx?sw=";
                break;
            case "채용정보":
                url = "/customer/search_jobs.aspx?sw=";
                break;
            case "인재정보":
                url = "/customer/search_talent.aspx?sw=";
                break;
            case "지원사업":
                url = "/customer/search_support.aspx?sw=";
                break;
            case "취업뉴스":
                url = "/customer/search_perinfo.aspx?sw=";
                break;
            default:
                url = "/customer/search_main.aspx?sw=";
                break;
        }

        document.location.href = url + escape(txtKeyword.value);
    }
    else {
        txtKeyword.value = "";
        txtKeyword.focus();
    }
}
*/

// 통합검색네트워크 2009.11.23 원정일
function SearchKeywordNet() {
    var txtKeyword = document.getElementById("GlobalSearch-Keyword");
    
    if (txtKeyword.value.trim() == "") {
        alert("검색어를 입력하세요.");
        txtKeyword.focus();
        return;
    }

    if (chkFullTextValidate(txtKeyword)) {
        var spSearchKind = document.getElementById("search_where");

        var url = "";       
        switch (spSearchKind.value) {
            case "total":       //통합검색
                url = "/customer/search_main.aspx?sw=";
                break;
            case "jjob":        //채용정보
                url = "/customer/search_jobs.aspx?sw=";
                break;
            case "brain":       //인재정보
                url = "/customer/search_talent.aspx?sw=";
                break;
            case "support":     //지원사업
                url = "/customer/search_support.aspx?sw=";
                break;
            case "news":        //취업뉴스
                url = "/customer/search_perinfo.aspx?sw=";
                break;
            default:
                url = "/customer/search_main.aspx?sw=";
                break;
        }

        document.location.href = url + escape(txtKeyword.value);
    }
    else {
        txtKeyword.value = "";
        txtKeyword.focus();
    }
}

// 통합검색네트워크 2009.11.30 원정일
function SearchKeywordNet1() {
    var txtKeyword = document.getElementById("GlobalSearch-Keyword1");
    
    if (txtKeyword.value.trim() == "") {
        alert("검색어를 입력하세요.");
        txtKeyword.focus();
        return;
    }

    if (chkFullTextValidate(txtKeyword)) {
        var spSearchKind = document.getElementById("search_where1");

        var url = "";       
        switch (spSearchKind.value) {
            case "total":       //통합검색
                url = "/customer/search_main.aspx?sw=";
                break;
            case "jjob":        //채용정보
                url = "/customer/search_jobs.aspx?sw=";
                break;
            case "brain":       //인재정보
                url = "/customer/search_talent.aspx?sw=";
                break;
            case "support":     //지원사업
                url = "/customer/search_support.aspx?sw=";
                break;
            case "news":        //취업뉴스
                url = "/customer/search_perinfo.aspx?sw=";
                break;
            default:
                url = "/customer/search_main.aspx?sw=";
                break;
        }

        document.location.href = url + escape(txtKeyword.value);
    }
    else {
        txtKeyword.value = "";
        txtKeyword.focus();
    }
}

String.prototype.trim = function() {
    return this.replace(/^\s+|\s+$/g, "");
}

function WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit) {
    this.eventTarget = eventTarget;
    this.eventArgument = eventArgument;
    this.validation = validation;
    this.validationGroup = validationGroup;
    this.actionUrl = actionUrl;
    this.trackFocus = trackFocus;
    this.clientSubmit = clientSubmit;
}
function WebForm_DoPostBackWithOptions(options) {
    var validationResult = true;
    if (options.validation) {
        if (typeof(Page_ClientValidate) == 'function') {
            validationResult = Page_ClientValidate(options.validationGroup);
        }
    }
    if (validationResult) {
        if ((typeof(options.actionUrl) != "undefined") && (options.actionUrl != null) && (options.actionUrl.length > 0)) {
            theForm.action = options.actionUrl;
        }
        if (options.trackFocus) {
            var lastFocus = theForm.elements["__LASTFOCUS"];
            if ((typeof(lastFocus) != "undefined") && (lastFocus != null)) {
                if (typeof(document.activeElement) == "undefined") {
                    lastFocus.value = options.eventTarget;
                }
                else {
                    var active = document.activeElement;
                    if ((typeof(active) != "undefined") && (active != null)) {
                        if ((typeof(active.id) != "undefined") && (active.id != null) && (active.id.length > 0)) {
                            lastFocus.value = active.id;
                        }
                        else if (typeof(active.name) != "undefined") {
                            lastFocus.value = active.name;
                        }
                    }
                }
            }
        }
    }
    if (options.clientSubmit) {
        __doPostBack(options.eventTarget, options.eventArgument);
    }
}
var __pendingCallbacks = new Array();
var __synchronousCallBackIndex = -1;
function WebForm_DoCallback(eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync) {
    var postData = __theFormPostData +
                "__CALLBACKID=" + WebForm_EncodeCallback(eventTarget) +
                "&__CALLBACKPARAM=" + WebForm_EncodeCallback(eventArgument);
    if (theForm["__EVENTVALIDATION"]) {
        postData += "&__EVENTVALIDATION=" + WebForm_EncodeCallback(theForm["__EVENTVALIDATION"].value);
    }
    var xmlRequest,e;
    try {
        xmlRequest = new XMLHttpRequest();
    }
    catch(e) {
        try {
            xmlRequest = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(e) {
        }
    }
    var setRequestHeaderMethodExists = true;
    try {
        setRequestHeaderMethodExists = (xmlRequest && xmlRequest.setRequestHeader);
    }
    catch(e) {}
    var callback = new Object();
    callback.eventCallback = eventCallback;
    callback.context = context;
    callback.errorCallback = errorCallback;
    callback.async = useAsync;
    var callbackIndex = WebForm_FillFirstAvailableSlot(__pendingCallbacks, callback);
    if (!useAsync) {
        if (__synchronousCallBackIndex != -1) {
            __pendingCallbacks[__synchronousCallBackIndex] = null;
        }
        __synchronousCallBackIndex = callbackIndex;
    }
    if (setRequestHeaderMethodExists) {
        xmlRequest.onreadystatechange = WebForm_CallbackComplete;
        callback.xmlRequest = xmlRequest;
        xmlRequest.open("POST", theForm.action, true);
        xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
        xmlRequest.send(postData);
        return;
    }
    callback.xmlRequest = new Object();
    var callbackFrameID = "__CALLBACKFRAME" + callbackIndex;
    var xmlRequestFrame = document.frames[callbackFrameID];
    if (!xmlRequestFrame) {
        xmlRequestFrame = document.createElement("IFRAME");
        xmlRequestFrame.width = "1";
        xmlRequestFrame.height = "1";
        xmlRequestFrame.frameBorder = "0";
        xmlRequestFrame.id = callbackFrameID;
        xmlRequestFrame.name = callbackFrameID;
        xmlRequestFrame.style.position = "absolute";
        xmlRequestFrame.style.top = "-100px"
        xmlRequestFrame.style.left = "-100px";
        try {
            if (callBackFrameUrl) {
                xmlRequestFrame.src = callBackFrameUrl;
            }
        }
        catch(e) {}
        document.body.appendChild(xmlRequestFrame);
    }
    var interval = window.setInterval(function() {
        xmlRequestFrame = document.frames[callbackFrameID];
        if (xmlRequestFrame && xmlRequestFrame.document) {
            window.clearInterval(interval);
            xmlRequestFrame.document.write("");
            xmlRequestFrame.document.close();
            xmlRequestFrame.document.write('<html><body><form method="post"><input type="hidden" name="__CALLBACKLOADSCRIPT" value="t"></form></body></html>');
            xmlRequestFrame.document.close();
            xmlRequestFrame.document.forms[0].action = theForm.action;
            var count = __theFormPostCollection.length;
            var element;
            for (var i = 0; i < count; i++) {
                element = __theFormPostCollection[i];
                if (element) {
                    var fieldElement = xmlRequestFrame.document.createElement("INPUT");
                    fieldElement.type = "hidden";
                    fieldElement.name = element.name;
                    fieldElement.value = element.value;
                    xmlRequestFrame.document.forms[0].appendChild(fieldElement);
                }
            }
            var callbackIdFieldElement = xmlRequestFrame.document.createElement("INPUT");
            callbackIdFieldElement.type = "hidden";
            callbackIdFieldElement.name = "__CALLBACKID";
            callbackIdFieldElement.value = eventTarget;
            xmlRequestFrame.document.forms[0].appendChild(callbackIdFieldElement);
            var callbackParamFieldElement = xmlRequestFrame.document.createElement("INPUT");
            callbackParamFieldElement.type = "hidden";
            callbackParamFieldElement.name = "__CALLBACKPARAM";
            callbackParamFieldElement.value = eventArgument;
            xmlRequestFrame.document.forms[0].appendChild(callbackParamFieldElement);
            if (theForm["__EVENTVALIDATION"]) {
                var callbackValidationFieldElement = xmlRequestFrame.document.createElement("INPUT");
                callbackValidationFieldElement.type = "hidden";
                callbackValidationFieldElement.name = "__EVENTVALIDATION";
                callbackValidationFieldElement.value = theForm["__EVENTVALIDATION"].value;
                xmlRequestFrame.document.forms[0].appendChild(callbackValidationFieldElement);
            }
            var callbackIndexFieldElement = xmlRequestFrame.document.createElement("INPUT");
            callbackIndexFieldElement.type = "hidden";
            callbackIndexFieldElement.name = "__CALLBACKINDEX";
            callbackIndexFieldElement.value = callbackIndex;
            xmlRequestFrame.document.forms[0].appendChild(callbackIndexFieldElement);
            xmlRequestFrame.document.forms[0].submit();
        }
    }, 10);
}
function WebForm_CallbackComplete() {
    for (var i = 0; i < __pendingCallbacks.length; i++) {
        callbackObject = __pendingCallbacks[i];
        if (callbackObject && callbackObject.xmlRequest && (callbackObject.xmlRequest.readyState == 4)) {
            WebForm_ExecuteCallback(callbackObject);
            if (!__pendingCallbacks[i].async) {
                __synchronousCallBackIndex = -1;
            }
            __pendingCallbacks[i] = null;
            var callbackFrameID = "__CALLBACKFRAME" + i;
            var xmlRequestFrame = document.getElementById(callbackFrameID);
            if (xmlRequestFrame) {
                xmlRequestFrame.parentNode.removeChild(xmlRequestFrame);
            }
        }
    }
}
function WebForm_ExecuteCallback(callbackObject) {
    var response = callbackObject.xmlRequest.responseText;
    if (response.charAt(0) == "s") {
        if ((typeof(callbackObject.eventCallback) != "undefined") && (callbackObject.eventCallback != null)) {
            callbackObject.eventCallback(response.substring(1), callbackObject.context);
        }
    }
    else if (response.charAt(0) == "e") {
        if ((typeof(callbackObject.errorCallback) != "undefined") && (callbackObject.errorCallback != null)) {
            callbackObject.errorCallback(response.substring(1), callbackObject.context);
        }
    }
    else {
        var separatorIndex = response.indexOf("|");
        if (separatorIndex != -1) {
            var validationFieldLength = parseInt(response.substring(0, separatorIndex));
            if (!isNaN(validationFieldLength)) {
                var validationField = response.substring(separatorIndex + 1, separatorIndex + validationFieldLength + 1);
                if (validationField != "") {
                    var validationFieldElement = theForm["__EVENTVALIDATION"];
                    if (!validationFieldElement) {
                        validationFieldElement = document.createElement("INPUT");
                        validationFieldElement.type = "hidden";
                        validationFieldElement.name = "__EVENTVALIDATION";
                        theForm.appendChild(validationFieldElement);
                    }
                    validationFieldElement.value = validationField;
                }
                if ((typeof(callbackObject.eventCallback) != "undefined") && (callbackObject.eventCallback != null)) {
                    callbackObject.eventCallback(response.substring(separatorIndex + validationFieldLength + 1), callbackObject.context);
                }
            }
        }
    }
}
function WebForm_FillFirstAvailableSlot(array, element) {
    var i;
    for (i = 0; i < array.length; i++) {
        if (!array[i]) break;
    }
    array[i] = element;
    return i;
}
var __nonMSDOMBrowser = (window.navigator.appName.toLowerCase().indexOf('explorer') == -1);
var __theFormPostData = "";
var __theFormPostCollection = new Array();
function WebForm_InitCallback() {
    var count = theForm.elements.length;
    var element;
    for (var i = 0; i < count; i++) {
        element = theForm.elements[i];
        var tagName = element.tagName.toLowerCase();
        if (tagName == "input") {
            var type = element.type;
            if ((type == "text" || type == "hidden" || type == "password" ||
                ((type == "checkbox" || type == "radio") && element.checked)) &&
                (element.id != "__EVENTVALIDATION")) {
                WebForm_InitCallbackAddField(element.name, element.value);
            }
        }
        else if (tagName == "select") {
            var selectCount = element.options.length;
            for (var j = 0; j < selectCount; j++) {
                var selectChild = element.options[j];
                if (selectChild.selected == true) {
                    WebForm_InitCallbackAddField(element.name, element.value);
                }
            }
        }
        else if (tagName == "textarea") {
            WebForm_InitCallbackAddField(element.name, element.value);
        }
    }
}
function WebForm_InitCallbackAddField(name, value) {
    var nameValue = new Object();
    nameValue.name = name;
    nameValue.value = value;
    __theFormPostCollection[__theFormPostCollection.length] = nameValue;
    __theFormPostData += WebForm_EncodeCallback(name) + "=" + WebForm_EncodeCallback(value) + "&";
}
function WebForm_EncodeCallback(parameter) {
    if (encodeURIComponent) {
        return encodeURIComponent(parameter);
    }
    else {
        return escape(parameter);
    }
}
var __disabledControlArray = new Array();
function WebForm_ReEnableControls() {
    if (typeof(__enabledControlArray) == 'undefined') {
        return false;
    }
    var disabledIndex = 0;
    for (var i = 0; i < __enabledControlArray.length; i++) {
        var c;
        if (__nonMSDOMBrowser) {
            c = document.getElementById(__enabledControlArray[i]);
        }
        else {
            c = document.all[__enabledControlArray[i]];
        }
        if ((typeof(c) != "undefined") && (c != null) && (c.disabled == true)) {
            c.disabled = false;
            __disabledControlArray[disabledIndex++] = c;
        }
    }
    setTimeout("WebForm_ReDisableControls()", 0);
    return true;
}
function WebForm_ReDisableControls() {
    for (var i = 0; i < __disabledControlArray.length; i++) {
        __disabledControlArray[i].disabled = true;
    }
}
function WebForm_FireDefaultButton(event, target) {
    if (event.keyCode == 13) {
        var src = event.srcElement || event.target;
        if (!src || (src.tagName.toLowerCase() != "textarea")) {
            var defaultButton;
            if (__nonMSDOMBrowser) {
               defaultButton = document.getElementById(target);
            }
            else {
                defaultButton = document.all[target];
            }
            if (defaultButton && typeof(defaultButton.click) != "undefined") {
                defaultButton.click();
                event.cancelBubble = true;
                if (event.stopPropagation) event.stopPropagation();
                return false;
            }
        }
    }
    return true;
}
function WebForm_GetScrollX() {
    if (__nonMSDOMBrowser) {
        return window.pageXOffset;
    }
    else {
        if (document.documentElement && document.documentElement.scrollLeft) {
            return document.documentElement.scrollLeft;
        }
        else if (document.body) {
            return document.body.scrollLeft;
        }
    }
    return 0;
}
function WebForm_GetScrollY() {
    if (__nonMSDOMBrowser) {
        return window.pageYOffset;
    }
    else {
        if (document.documentElement && document.documentElement.scrollTop) {
            return document.documentElement.scrollTop;
        }
        else if (document.body) {
            return document.body.scrollTop;
        }
    }
    return 0;
}
function WebForm_SaveScrollPositionSubmit() {
    if (__nonMSDOMBrowser) {
        theForm.elements['__SCROLLPOSITIONY'].value = window.pageYOffset;
        theForm.elements['__SCROLLPOSITIONX'].value = window.pageXOffset;
    }
    else {
        theForm.__SCROLLPOSITIONX.value = WebForm_GetScrollX();
        theForm.__SCROLLPOSITIONY.value = WebForm_GetScrollY();
    }
    if ((typeof(this.oldSubmit) != "undefined") && (this.oldSubmit != null)) {
        return this.oldSubmit();
    }
    return true;
}
function WebForm_SaveScrollPositionOnSubmit() {
    theForm.__SCROLLPOSITIONX.value = WebForm_GetScrollX();
    theForm.__SCROLLPOSITIONY.value = WebForm_GetScrollY();
    if ((typeof(this.oldOnSubmit) != "undefined") && (this.oldOnSubmit != null)) {
        return this.oldOnSubmit();
    }
    return true;
}
function WebForm_RestoreScrollPosition() {
    if (__nonMSDOMBrowser) {
        window.scrollTo(theForm.elements['__SCROLLPOSITIONX'].value, theForm.elements['__SCROLLPOSITIONY'].value);
    }
    else {
        window.scrollTo(theForm.__SCROLLPOSITIONX.value, theForm.__SCROLLPOSITIONY.value);
    }
    if ((typeof(theForm.oldOnLoad) != "undefined") && (theForm.oldOnLoad != null)) {
        return theForm.oldOnLoad();
    }
    return true;
}
function WebForm_TextBoxKeyHandler(event) {
    if (event.keyCode == 13) {
        var target;
        if (__nonMSDOMBrowser) {
            target = event.target;
        }
        else {
            target = event.srcElement;
        }
        if ((typeof(target) != "undefined") && (target != null)) {
            if (typeof(target.onchange) != "undefined") {
                target.onchange();
                event.cancelBubble = true;
                if (event.stopPropagation) event.stopPropagation();
                return false;
            }
        }
    }
    return true;
}
function WebForm_TrimString(value) {
    return value.replace(/^\s+|\s+$/g, '')
}
function WebForm_AppendToClassName(element, className) {
    var currentClassName = ' ' + WebForm_TrimString(element.className) + ' ';
    className = WebForm_TrimString(className);
    var index = currentClassName.indexOf(' ' + className + ' ');
    if (index === -1) {
        element.className = (element.className === '') ? className : element.className + ' ' + className;
    }
}
function WebForm_RemoveClassName(element, className) {
    var currentClassName = ' ' + WebForm_TrimString(element.className) + ' ';
    className = WebForm_TrimString(className);
    var index = currentClassName.indexOf(' ' + className + ' ');
    if (index >= 0) {
        element.className = WebForm_TrimString(currentClassName.substring(0, index) + ' ' +
            currentClassName.substring(index + className.length + 1, currentClassName.length));
    }
}
function WebForm_GetElementById(elementId) {
    if (document.getElementById) {
        return document.getElementById(elementId);
    }
    else if (document.all) {
        return document.all[elementId];
    }
    else return null;
}
function WebForm_GetElementByTagName(element, tagName) {
    var elements = WebForm_GetElementsByTagName(element, tagName);
    if (elements && elements.length > 0) {
        return elements[0];
    }
    else return null;
}
function WebForm_GetElementsByTagName(element, tagName) {
    if (element && tagName) {
        if (element.getElementsByTagName) {
            return element.getElementsByTagName(tagName);
        }
        if (element.all && element.all.tags) {
            return element.all.tags(tagName);
        }
    }
    return null;
}
function WebForm_GetElementDir(element) {
    if (element) {
        if (element.dir) {
            return element.dir;
        }
        return WebForm_GetElementDir(element.parentNode);
    }
    return "ltr";
}
function WebForm_GetElementPosition(element) {
    var result = new Object();
    result.x = 0;
    result.y = 0;
    result.width = 0;
    result.height = 0;
    if (element.offsetParent) {
        result.x = element.offsetLeft;
        result.y = element.offsetTop;
        var parent = element.offsetParent;
        while (parent) {
            result.x += parent.offsetLeft;
            result.y += parent.offsetTop;
            var parentTagName = parent.tagName.toLowerCase();
            if (parentTagName != "table" &&
                parentTagName != "body" && 
                parentTagName != "html" && 
                parentTagName != "div" && 
                parent.clientTop && 
                parent.clientLeft) {
                result.x += parent.clientLeft;
                result.y += parent.clientTop;
            }
            parent = parent.offsetParent;
        }
    }
    else if (element.left && element.top) {
        result.x = element.left;
        result.y = element.top;
    }
    else {
        if (element.x) {
            result.x = element.x;
        }
        if (element.y) {
            result.y = element.y;
        }
    }
    if (element.offsetWidth && element.offsetHeight) {
        result.width = element.offsetWidth;
        result.height = element.offsetHeight;
    }
    else if (element.style && element.style.pixelWidth && element.style.pixelHeight) {
        result.width = element.style.pixelWidth;
        result.height = element.style.pixelHeight;
    }
    return result;
}
function WebForm_GetParentByTagName(element, tagName) {
    var parent = element.parentNode;
    var upperTagName = tagName.toUpperCase();
    while (parent && (parent.tagName.toUpperCase() != upperTagName)) {
        parent = parent.parentNode ? parent.parentNode : parent.parentElement;
    }
    return parent;
}
function WebForm_SetElementHeight(element, height) {
    if (element && element.style) {
        element.style.height = height + "px";
    }
}
function WebForm_SetElementWidth(element, width) {
    if (element && element.style) {
        element.style.width = width + "px";
    }
}
function WebForm_SetElementX(element, x) {
    if (element && element.style) {
        element.style.left = x + "px";
    }
}
function WebForm_SetElementY(element, y) {
    if (element && element.style) {
        element.style.top = y + "px";
    }
}

// Main textRoll

function scrolling(objId,sec1,sec2,speed,height){
      this.objId=objId;
      this.sec1=sec1;
      this.sec2=sec2;
      this.speed=speed;
      this.height=height;
      this.h=0;
      this.div=document.getElementById(this.objId);
      this.htmltxt=this.div.innerHTML;
      this.div.innerHTML=this.htmltxt+this.htmltxt;
      this.div.isover=false;
      this.div.onmouseover=function(){this.isover=true;}
      this.div.onmouseout=function(){this.isover=false;}
      var self=this;
      this.div.scrollTop=0;
      window.setTimeout(function(){self.play()},this.sec1);
    }
    scrolling.prototype={
      play:function(){
        var self=this;
        if(!this.div.isover){
          this.div.scrollTop+=this.speed;
          if(this.div.scrollTop>this.div.scrollHeight/2){
            this.div.scrollTop=0;
          }else{
            this.h+=this.speed;
            if(this.h>=this.height){
              if(this.h>this.height|| this.div.scrollTop%this.height !=0){
                this.div.scrollTop-=this.h%this.height;
              }
              this.h=0;
              window.setTimeout(function(){self.play()},this.sec1);
              return;
            }
          }
        }
        window.setTimeout(function(){self.play()},this.sec2);
      },
      prev:function(){
        if(this.div.scrollTop == 0)
        this.div.scrollTop = this.div.scrollHeight/2;
        this.div.scrollTop -= this.height;
      },
      next:function(){
        if(this.div.scrollTop ==  this.div.scrollHeight/2)
        this.div.scrollTop =0;
        this.div.scrollTop += this.height;
      }
    };
                      

<!-- AceCounter Log Gathering Script V.70.2008090201 -->

if(typeof _GUL == 'undefined'){
var _JV="AMZ2008120803";//script Version
var _GUL = 'gtt14.acecounter.com';var _GPT='8080'; var _AIMG = new Image(); var _bn=navigator.appName; var _PR = location.protocol=="https:"?"https://"+_GUL:"http://"+_GUL+":"+_GPT;if( _bn.indexOf("Netscape") > -1 || _bn=="Mozilla"){ setTimeout("_AIMG.src = _PR+'/?cookie';",1); } else{ _AIMG.src = _PR+'/?cookie'; };	
var _GCD = 'AH3A34368636133'; // gcode
var _UD='undefined';var _UN='unknown';var _mset=0;
function _IX(s,t){return s.indexOf(t)}
function _GV(b,a,c,d){ var f = b.split(c);for(var i=0;i<f.length; i++){ if( _IX(f[i],(a+d))==0) return f[i].substring(_IX(f[i],(a+d))+(a.length+d.length),f[i].length); }	return ''; }
function _XV(b,a,c,d,e){ var f = b.split(c);var g='';for(var i=0;i<f.length; i++){ if( _IX(f[i],(a+d))==0){ try{eval(e+"=f[i].substring(_IX(f[i],(a+d))+(a.length+d.length),f[i].length);");}catch(_e){}; continue;}else{ if(g) g+= '&'; g+= f[i];}; } return g;};
function _NOB(a){return (a!=_UD&&a>0)?new Object(a):new Object()}
function _NIM(){return new Image()}
function _IL(a){return a!=_UD?a.length:0}
function _VF(a,b){return a!=_UD&&(typeof a==b)?1:0}
function _LST(a,b){if(_IX(a,b)) a=a.substring(0,_IL(a));return a}
function _CST(a,b){if(_IX(a,b)>0) a=a.substring(_IX(a,b)+_IL(b),_IL(a));return a}
function _UL(a){a=_LST(a,'#');a=_CST(a,'://');return a}
function _AA(a){return new Array(a?a:0)}
_DC = document.cookie ;
function _AGC(nm) { var cn = nm + "="; var nl = cn.length; var cl = _DC.length; var i = 0; while ( i < cl ) { var j = i + nl; if ( _DC.substring( i, j ) == cn ){ var val = _DC.indexOf(";", j ); if ( val == -1 ) val = _DC.length; return unescape(_DC.substring(j, val)); }; i = _DC.indexOf(" ", i ) + 1; if ( i == 0 ) break; } return ''; }
function _ASC( nm, val, exp ){var expd = new Date(); if ( exp ){ expd.setTime( expd.getTime() + ( exp * 1000 )); document.cookie = nm+"="+ escape(val) + "; expires="+ expd.toGMTString() +"; path="; }else{ document.cookie = nm + "=" + escape(val);};}
function SetUID() {     var newid = ''; var d = new Date(); var t = Math.floor(d.getTime()/1000); newid = 'UID-' + t.toString(16).toUpperCase(); for ( var i = 0; i < 16; i++ ){ var n = Math.floor(Math.random() * 16).toString(16).toUpperCase(); newid += n; }       return newid; }
var _FCV = _AGC("ACEFCID"); if ( !_FCV ) { _FCV = SetUID(); _ASC( "ACEFCID", _FCV , 86400 * 30 * 12 ); _FCV=_AGC("ACEFCID");}
var _AIO = _NIM(); var _AIU = _NIM();  var _AIW = _NIM();  var _AIX = _NIM();  var _AIB = _NIM();  var __hdki_xit = _NIM();
var _gX='/?xuid='+_GCD+'&sv='+_JV,_gF='/?fuid='+_GCD+'&sv='+_JV,_gU='/?uid='+_GCD+'&sv='+_JV+"&FCV="+_FCV,_gE='/?euid='+_GCD+'&sv='+_JV,_gW='/?wuid='+_GCD+'&sv='+_JV,_gO='/?ouid='+_GCD+'&sv='+_JV,_gB='/?buid='+_GCD+'&sv='+_JV;
function _IDV(a){return (typeof a!=_UD)?1:0}

var _d=_rf=_fwd=_arg=_xrg=_av=_bv=_rl=_ak=_xrl=_cd=_cu=_bz='',_sv=11,_tz=20,_ja=_sc=_ul=_ua=_UA=_os=_vs=_UN,_je='n',_bR='blockedReferrer';
if(!_IDV(_CODE)) var _CODE = '' ;
_tz = Math.floor((new Date()).getTimezoneOffset()/60) + 29 ;if( _tz > 24 ) _tz = _tz - 24 ;
// Javascript Variables
if(!_IDV(_amt)) var _amt=0 ;if(!_IDV(_pk)) var _pk='' ;if(!_IDV(_pd)) var _pd='';if(!_IDV(_ct)) var _ct='';
if(!_IDV(_ll)) var _ll='';if(!_IDV(_ag)) var _ag=0;	if(!_IDV(_id)) var _id='' ;if(!_IDV(_mr)) var _mr = _UN;
if(!_IDV(_gd)) var _gd=_UN;if(!_IDV(_jn)) var _jn='';if(!_IDV(_jid)) var _jid='';if(!_IDV(_skey)) var _skey='';
if(!_IDV(_ud1)) var _ud1='';if(!_IDV(_ud2)) var _ud2='';if(!_IDV(_ud3)) var _ud3='';
if( !_ag ){ _ag = 0 ; }else{ _ag = parseInt(_ag); }
if( _ag < 0 || _ag > 150 ){ _ag = 0; }
if( _gd != 'man' && _gd != 'woman' ){ _gd =_UN;};if( _mr != 'married' && _mr != 'single' ){ _mr =_UN;};if( _jn != 'join' && _jn != 'withdraw' ){ _jn ='';};
if( _id != '' ){ _mset|=1 };
if( _jid != '' ){ _mset|=2 };
_je = (navigator.javaEnabled()==true)?'1':'0';_bn=navigator.appName;
if(_bn.substring(0,9)=="Microsoft") _bn="MSIE";
_bN=(_bn=="Netscape"),_bI=(_bn=="MSIE"),_bO=(_IX(navigator.userAgent,"Opera")>-1);if(_bO)_bI='';
_bz=navigator.appName; _pf=navigator.platform; _av=navigator.appVersion; _bv=parseFloat(_av) ;
if(_bI){_cu=navigator.cpuClass;}else{_cu=navigator.oscpu;};
if((_bn=="MSIE")&&(parseInt(_bv)==2)) _bv=3.01;_rf=document.referrer;var _prl='';var _frm=false;
function _WO(a,b,c){window.open(a,b,c)}
function ACEF_Tracking(a,b,c,d,e,f){ if(!_IDV(b)){var b = 'FLASH';}; if(!_IDV(e)){ var e = '0';};if(!_IDV(c)){ var c = '';};if(!_IDV(d)){ var d = '';}; var a_org=a; b = b.toUpperCase(); var b_org=b;	if(b_org=='FLASH_S'){ b='FLASH'; }; if( typeof CU_rl == 'undefined' ) var CU_rl = 'http://gtt14.acecounter.com:8080'; if(_IDV(_GCD)){ var _AF_rl = document.URL; if(a.indexOf('://') < 0  && b_org != 'FLASH_S' ){ var _AT_rl  = ''; if( _AF_rl.indexOf('?') > 0 ){ _AF_rl = _AF_rl.substring(0,_AF_rl.indexOf('?'));}; var spurl = _AF_rl.split('/') ;	for(var ti=0;ti < spurl.length ; ti ++ ){ if( ti == spurl.length-1 ){ break ;}; if( _AT_rl  == '' ){ _AT_rl  = spurl[ti]; }else{ _AT_rl  += '/'+spurl[ti];}; }; var _AU_arg = ''; if( a.indexOf('?') > 0 ){ _AU_arg = a.substring(a.indexOf('?'),a.length); a = a.substring(0,a.indexOf('?')); }; var spurlt = a.split('/') ; if( spurlt.length > 0 ){ a = spurlt[spurlt.length-1];}; a = _AT_rl +'/'+a+_AU_arg;	_AF_rl=document.URL;}; _AF_rl = _AF_rl.substring(_AF_rl.indexOf('//')+2,_AF_rl.length); if( typeof f == 'undefined' ){ var f = a }else{f='http://'+_AF_rl.substring(0,_AF_rl.indexOf('/')+1)+f}; var _AS_rl = CU_rl+'/?xuid='+_GCD+'&url='+escape(_AF_rl)+'&xlnk='+escape(f)+'&fdv='+b+'&idx='+e+'&'; var _AF_img = new Image(); _AF_img.src = _AS_rl; if( b_org == 'FLASH' && a_org != '' ){ if(c==''){ window.location.href = a_org; }else{ if(d==''){ window.open(a_org,c);}else{ window.open(a_org,c,d); };};	};} ; }
function _PT(){return location.protocol=="https:"?"https://"+_GUL:"http://"+_GUL+":"+_GPT}
function _EL(a,b,c){if(a.addEventListener){a.addEventListener(b,c,false)}else if(a.attachEvent){a.attachEvent("on"+b,c)} }
function _NA(a){return new Array(a?a:0)}
function _ER(a,b,c,d){_xrg=_PT()+_gW+"&url="+escape(_UL(document.URL))+"&err="+((typeof a=="string")?a:"Unknown")+"&ern="+c+"&bz="+_bz+"&bv="+_vs+"&RID="+Math.random()+"&";
if(_IX(_bn,"Netscape") > -1 || _bn == "Mozilla"){ setTimeout("_AIW.src=_xrg;",1); } else{ _AIW.src=_xrg; } }
function _BO(a,b,c){_xrg=_PT()+_gB+"&url="+escape(_UL(document.URL))+"&ref="+escape(_UL(document.referrer))+"&RID="+Math.random()+"&";_AIB.src=_xrg;}
function _OL(a,b,c){_xrg=_PT()+_gO+"&url="+escape(_UL(document.URL))+"&ref="+escape(_UL(document.referrer))+"&RID="+Math.random()+"&";
_AIO.src=_xrg;}
function _PL(a){if(!_IL(a))a=_UL(document.URL);
_arg = _PT()+_gU;
if( typeof _ERR !=_UD && _ERR == 'err'){ _arg = _PT()+_gE;};
_AIU.src = _arg+"&url="+escape(a)+"&ref="+escape(_rf)+"&cpu="+_cu+"&bz="+_bz+"&bv="+_vs+"&os="+_os+"&dim="+_d+"&cd="+_cd+"&je="+_je+"&jv="+_sv+"&tz="+_tz+"&ul="+_ul+"&ad_key="+escape(_ak)+"&skey="+escape(_skey)+"&age="+_ag+"&gender="+_gd+"&marry="+_mr+"&join="+_jn+"&mset="+_mset+"&udf1="+_ud1+"&udf2="+_ud2+"&udf3="+_ud3+"&amt="+_amt+"&frwd="+_fwd+"&pd="+escape(_pd)+"&ct="+escape(_ct)+"&ll="+escape(_ll)+"&RID="+Math.random()+"&";
setTimeout("",300);
}
_EL(window,"error",_ER); //window Error
if( typeof window.screen == 'object'){_sv=12;_d=screen.width+'*'+screen.height;_sc=_bI?screen.colorDepth:screen.pixelDepth;if(_sc==_UD)_sc=_UN;}
_ro=_NA();if(_ro.toSource||(_bI&&_ro.shift))_sv=13;
if( top && typeof top == 'object' &&_IL(top.frames)){eval("try{_rl=top.document.URL;}catch(_e){_rl='';};"); if( _rl != document.URL ) _frm = true;};
if(_frm){ eval("try{_prl = top.document.URL;}catch(_e){_prl=_bR;};"); if(_prl == '') eval("try{_prl=parent.document.URL;}catch(_e){_prl='';};"); 
if( _IX(_prl,'#') > 0 ) _prl=_prl.substring(0,_IX(_prl,'#')); 
_prl=_LST(_prl,'#');
if( _IX(_rf,'#') > 0 ) _rf=_rf.substring(0,_IX(_rf,'#')); 
_prl=_LST(_prl,'/');_rf=_LST(_rf,'/');
if( _rf == '' ) eval("try{_rf=parent.document.URL;}catch(_e){_rf=_bR;}"); 
if(_rf==_bR||_prl==_bR){ _rf='',_prl='';}; if( _rf == _prl ){ eval("try{_rf=top.document.referrer;}catch(_e){_rf='';}"); 
if( _rf == ''){ _rf = 'bookmark';};if( _IX(document.cookie,'ACEN_CK='+escape(_rf)) > -1 ){ _rf = _prl;} 
else{ 
if(_IX(_prl,'?') > 0) _ak = _prl.substring(_IX(_prl,'?')+1,_prl.length); 
if( _IX(_prl,'OVRAW=') > 0 ){ _ak = 'src=overture&kw='+_prl.substring(_prl.indexOf('OVRAW=')+6,_prl.indexOf('&',_prl.indexOf('OVRAW=')+6)); }; 
if( _IX(_prl.toLowerCase(),'OVRAW=') > 0 ){ _ak = 'src=overture&kw='+_prl.substring(_prl.indexOf('OVRAW=')+6,_prl.indexOf('&',_prl.indexOf('OVRAW=')+6)); }; 
if(_IX(_prl,'gclid=') > 0 ){ _ak='src=adwords'; }; if(_IX(_prl,'DWIT=') > 0 ){_ak='src=dnet_cb';}; 
if( _IX(_prl,"rcsite=") > 0 &&  _IX(_prl,"rctype=") > 0){ _prl += '&'; _ak = _prl.substring(_IX(_prl,'rcsite='),_prl.indexOf('&',_IX(_prl,'rcsite=')+7))+'-'+_prl.substring(_IX(_prl,'rctype=')+7,_prl.indexOf('&',_IX(_prl,'rctype=')+7))+'&'; };
if( _GV(_prl,'src','&','=') ) _ak += '&src='+_GV(_prl,'src','&','='); if( _GV(_prl,'kw','&','=') ) _ak += '&kw='+_GV(_prl,'kw','&','='); var _trl = _prl.split('?'); if(_trl.length>1){ _trl[1] = _XV(_trl[1],'FWDRL','&','=','_rf'); _rf = unescape(_rf); _ak = _XV(_ak,'FWDRL','&','=','_prl'); }; if( typeof FD_ref=='string' && FD_ref != '' ) _rf = FD_ref;
_fwd = _GV(_prl,'FWDIDX','&','=');
document.cookie='ACEN_CK='+escape(_rf)+';path=/;'; 
}; 
if(document.URL.indexOf('?')>0 && ( _IX(_ak,'rcsite=') < 0 && _IX(_ak,'src=') < 0 && _IX(_ak,'source=') < 0 ) ) _ak =document.URL.substring(document.URL.indexOf('?')+1,document.URL.length); }; 
}
else{ 
_rf=_LST(_rf,'#');_ak=_CST(document.URL,'?');
if( _IX(_ak,"rcsite=") > 0 &&  _IX(_ak,"rctype=") > 0){
    _ak += '&';
    _ak = _ak.substring(_IX(_ak,'rcsite='),_ak.indexOf('&',_IX(_ak,'rcsite=')+7))+'-'+_ak.substring(_IX(_ak,'rctype=')+7,_ak.indexOf('&',_IX(_ak,'rctype=')+7))+'&';
}
}
_rl=document.URL;
var _trl = _rl.split('?'); if(_trl.length>1){ _trl[1] = _XV(_trl[1],'FWDRL','&','=','_rf'); _rf = unescape(_rf); _fwd = _GV(_trl[1],'FWDIDX','&','='); _rl=_trl.join('?'); 
_ak = _XV(_ak,'FWDRL','&','=','_prl');
}; if( typeof FD_ref=='string' && FD_ref != '' ) _rf = FD_ref;
if( _rf.indexOf('googlesyndication.com') > 0 ){ 
var _rf_idx = _rf.indexOf('&url=');  if( _rf_idx > 0 ){ var _rf_t = unescape(_rf.substring(_rf_idx+5,_rf.indexOf('&',_rf_idx+5)));  if( _rf_t.length > 0 ){ _rf = _rf_t ;};  };  };
_rl = _UL(_rl); _rf = _UL(_rf);

if( typeof _rf_t != 'undefined' && _rf_t != '' ) _rf = _rf_t ;
if( typeof _ak_t != 'undefined' && _ak_t != '' ) _ak = _ak_t ;

if( typeof _rf==_UD||( _rf == '' )) _rf = 'bookmark' ;_cd=(_bI)?screen.colorDepth:screen.pixelDepth;
_UA = navigator.userAgent;_ua = navigator.userAgent.toLowerCase();
if (navigator.language){  _ul = navigator.language.toLowerCase();}else if(navigator.userLanguage){  _ul = navigator.userLanguage.toLowerCase();};

_st = _IX(_UA,'(') + 1;_end = _IX(_UA,')');_str = _UA.substring(_st, _end);_if = _str.split('; ');_cmp = _UN ;

if(_bI){ _cmp = navigator.appName; _str = _if[1].substring(5, _if[1].length); _vs = (parseFloat(_str)).toString();} 
else if ( (_st = _IX(_ua,"opera")) > 0){ _cmp = "Opera" ;_vs = _ua.substring(_st+6, _ua.indexOf('.',_st+6)); } 
else if ((_st = _IX(_ua,"firefox")) > 0){_cmp = "Firefox"; _vs = _ua.substring(_st+8, _ua.indexOf('.',_st+8)); } 
else if ((_st = _IX(_ua,"netscape6")) > 0){ _cmp = "Netscape"; _vs = _ua.substring(_st+10, _ua.length);  
if ((_st = _IX(_vs,"b")) > 0 ) { _str = _vs.substring(0,_IX(_vs,"b")); _vs = _str ;  };}
else if ((_st = _IX(_ua,"netscape/7")) > 0){  _cmp = "Netscape";  _vs = _ua.substring(_st+9, _ua.length);  if ((_st = _IX(_vs,"b")) > 0 ){ _str = _vs.substring(0,_IX(_vs,"b")); _vs = _str;};
}
else{
if (_IX(_ua,"gecko") > 0){ if(_IX(_ua,"safari")>0){ _cmp = "Safari";_ut = _ua.split('/');for( var ii=0;ii<_ut.length;ii++) if(_IX(_ut[ii],'safari')>0){ _vst = _ut[ii].split(' '); _vs = _vst[0];} }else{ _cmp = navigator.vendor;  } } else if (_IX(_ua,"nav") > 0){ _cmp = "Netscape Navigator";}else{ _cmp = navigator.appName;}; _av = _UA ; 
}
if (_IX(_vs,'.')<0){  _vs = _vs + '.0'}
_bz = _cmp; 

var _lxit=_NOB();
var _lwd=window.document;
_lxit.lnk=new Array(_lwd.links.length);

function _LX(k,w,i){
_xrg= _PT()+_gX+'&url='+escape(_rl)+'&xlnk='+escape(k)+'&xidx='+i+'&';
if(_IX(_bn,"Netscape") > -1 || _bn == "Mozilla"){
setTimeout("__hdki_xit.src=_xrg;",1);
}else{
__hdki_xit.src=_xrg;
};
return (w.lnk[i]&&w.lnk[i].ocmx)?w.lnk[i].ocmx():1;};
function _EX(){_lxit.lnk=new Array(_lwd.links.length);for(var i=0;i<_lwd.links.length;i++){if(_lwd.links[i].onmousedown){_lxit.lnk[i]=document.links[i];_lxit.lnk[i].ocmx=document.links[i].onmousedown;};eval("document.links[i].onmousedown=function(){return _LX(this,_lxit,"+i+");}");};};

_EL(window,"load",_EX); // ExitLink

if( _IX(_pf,_UD) >= 0 || _pf ==  '' ){ _os = _UN ;}else{ _os = _pf ; };
if( _IX(_os,'Win32') >= 0 ){if( _IX(_av,'98')>=0){ _os = 'Windows 98';}else if( _IX(_av,'95')>=0 ){ _os = 'Windows 95';}else if( _IX(_av,'Me')>=0 ){ _os = 'Windows Me';}else if( _IX(_av,'NT')>=0 ){ _os = 'Windows NT';}else{ _os = 'Windows';};if( _IX(_av,'NT 5.0')>=0){ _os = 'Windows 2000';};if( _IX(_av,'NT 5.1')>=0){_os = 'Windows XP';if( _IX(_av,'SV1') > 0 ){_os = 'Windows XP SP2';};};if( _IX(_av,'NT 5.2')>=0){_os ='Windows Server 2003';};if( _IX(_av,'NT 6.0')>=0){_os ='Windows Vista';};};
_pf_s = _pf.substring(0,4);if( _pf_s == 'Wind'){if( _pf_s == 'Win1'){_os = 'Windows 3.1';}else if( _pf_s == 'Mac6' ){ _os = 'Mac';}else if( _pf_s == 'MacO' ){ _os ='Mac';}else if( _pf_s == 'MacP' ){_os='Mac';}else if(_pf_s == 'Linu'){_os='Linux';}else if( _pf_s == 'WebT' ){ _os='WebTV';}else if(  _pf_s =='OSF1' ){ _os ='Compaq Open VMS';}else if(_pf_s == 'HP-U' ){ _os='HP Unix';}else if(  _pf_s == 'OS/2' ){ _os = 'OS/2' ;}else if( _pf_s == 'AIX4' ){ _os = 'AIX';}else if( _pf_s == 'Free' ){ _os = 'FreeBSD';}else if( _pf_s == 'SunO' ){ _os = 'SunO';}else if( _pf_s == 'Drea' ){ _os = 'Drea'; }else if( _pf_s == 'Plan' ){ _os = 'Plan'; }else{ _os = _UN; };};
if( _cu == 'x86' ){ _cu = 'Intel x86';}else if( _cu == 'PPC' ){ _cu = 'Power PC';}else if( _cu == '68k' ){ _cu = 'Motorola 680x';}else if( _cu == 'Alpha' ){ _cu = 'Compaq Alpa';}else if( _cu == 'Arm' ){ _cu = 'ARM';}else{ _cu = _UN;};if( _d == '' || typeof _d==_UD ){ _d = '0*0';}
_PL(_rl); // Site Logging
}

<!-- AceCounter Log Gathering Script End -->

/**
 *  Nethru Script Module
 *  Copyright 2008 nethru, All Rights Reserved.
 **/

var _n_sid = "07010100000";		/* custid */
var _n_ls = "http://file.intoin.or.kr:8020/wlo/Logging";		/* logging server */
var _n_uls = "http://file.intoin.or.kr:8020/wlo/UserLogging";	/* user logging server */
var _n_uid = "";			/* uid */
var _n_uid_sub = "";		/* uid-subcookie */
var _n_first_pcid = false;

/* https logging */
if ( document.location.protocol == "https:" ) {
	_n_ls = "https://file.intoin.or.kr:8020/wlo/Logging";
	_n_uls = "https://file.intoin.or.kr:8020/wlo/UserLogging";
}

var _n_logging_image = new Image();
var _n_user_image = new Image();
var _n_click_image = new Image();

/* Browser Information */
function n_getBI()
{
	var str = "";
	var dt = document;

	var strScreenSize = "";

	var ws = window.screen;
	if ( ws != null && ws != "undefined" ) {
		strScreenSize = screen.width+"x"+screen.height;
	}
	str +="n_ss=" + strScreenSize + "; ";

	var cs = "-";
	var nv = navigator;

	if ( nv.language ) {  
		cs = nv.language.toLowerCase();
	} 
	else if ( nv.userLanguage ) {
		cs = nv.userLanguage.toLowerCase();
	}
	/*
	if ( dt.characterSet ) {
		cs = dt.characterSet;
	}
	else if ( dt.charset ) {
		cs = dt.charset;
	}
	*/
	str +="n_cs=" + cs + "; ";

	return str;
}

function n_getCV(cv,offset,escapeFlag,delim)
{
	var endstr = cv.indexOf (delim, offset);
	
	if (endstr == -1) endstr = cv.length;

	if ( escapeFlag )
		return unescape(cv.substring(offset, endstr));
	else
		return cv.substring(offset, endstr);
}

function n_GetCookie(name,escapeFlag)
{
	var dc = document.cookie;
	var arg = name + "=";
	var alen = arg.length;
	var clen = dc.length;
	var i = 0;

	while (i < clen) 
	{
		var j = i + alen;
		
		if (dc.substring(i, j) == arg) {
			return n_getCV (dc,j,escapeFlag,";");
		}

		i = dc.indexOf(" ", i) + 1;
		
		if (i == 0)
			break;
	}

	return null;
}

function n_GetSubCookie(name, cv)
{
	var arg = name + "=";
	var alen = arg.length;
	var clen = cv.length;
	var i = 0;

	while (i < clen) 
	{
		var j = i + alen;
		
		if (cv.substring(i, j) == arg) {
			return n_getCV (cv,j,false,"&");
		}

		i = cv.indexOf("&", i) + 1;
		
		if (i == 0)
			break;
	}

	return null;
}

function n_SetCookie(name, value)
{
	var argv = n_SetCookie.arguments;
	var argc = n_SetCookie.arguments.length;
	var expires = (2 < argc) ? argv[2] : null;
	var path = (3 < argc) ? argv[3] : null;
	var domain = (4 < argc) ? argv[4] : null;
	var secure = (5 < argc) ? argv[5] : false;

	document.cookie = 
		name + "=" + escape (value)
		+ ((expires == null) ? "" : ("; expires="+expires.toGMTString()))
		+ ((path == null) ? "" : ("; path=" + path))
		+ ((domain == null) ? "" : ("; domain=" + domain))
		+ ((secure == true) ? "; secure" : "");
}

function n_GuessPersistentCookie()
{
	if ( document.cookie == null || document.cookie == "" )
		return true;
	
	return false;
}

function n_makePersistentCookie(name,length,path,domain)
{
	var today = new Date();
	var expiredDate = new Date(2020,1,1);
	var cookie;
	var value;

/*
	if ( n_GuessPersistentCookie() )
		return 1;
*/

	cookie = n_GetCookie(name,true);
	
	if ( cookie ) {
		_n_first_pcid = false;
		return cookie;
	}
	_n_first_pcid = true;

	var values = new Array();

	for ( i=0; i < length ; i++ ) {
		values[i] = "" + Math.random();
	}

	value = today.getTime();

	for ( i=0; i < length ; i++ ) {
		value += values[i].charAt(2);
	}

	n_SetCookie(name,value,expiredDate,path,domain);

	return value;
}

function n_encodeStr(s)
{
	if (typeof(encodeURI) == 'function') {
		s=encodeURI(s);
		s=s.split("#").join("%23");
		return s;
	}
	else
		return escape(s);
}

function n_paramEncodeStr(s)
{
	s=s.split("&").join("|");
	s=s.split("?").join(" ");
	s=s.split("/").join("|");

	return n_encodeStr(s);
}

function n_getDomain()
{
	var _host   = document.domain;
	var so = _host.split('.');
	var dm  = so[so.length-2] + '.' + so[so.length-1];

	return (so[so.length-1].length == 2) ? so[so.length-3] + '.' + dm : dm;
}

function n_getReferrer()
{
	var my_ref = self.document.referrer;

	var parent_href = "";
	var parent_ref = "";

	try {
		parent_href = top.document.location.href;
		parent_ref = top.document.referrer;
	}
	catch(e) {
		return my_ref;
	}

	if ( my_ref == parent_href )
		return parent_ref;

	return my_ref;
}

function n_getCookieStr() 
{
	var pcid = "";
	var binfo = n_getBI();
	var domain = "";

	if ( (typeof _n_domain)!="undefined" && _n_domain != "" ) {
		domain = _n_domain;
	}
	else {
		domain = n_getDomain();
	}

	pcid = n_makePersistentCookie("PCID",10,"/",domain);

	if ( pcid != null && pcid != "" ) {
		var cookies = "";

		if ( _n_first_pcid == false )
			cookies += "PCID" + "=" + pcid + "; ";

		if ( (typeof _n_uid_cookie)!="undefined" && _n_uid_cookie != "" ) {
			_n_uid = n_GetCookie(_n_uid_cookie,true);	
			if ( _n_uid != null && _n_uid != "" ) {
				if ( (typeof _n_uid_subcookie) != "undefined" && _n_uid_subcookie != "" ) {
					_n_uid_sub = n_GetSubCookie(_n_uid_subcookie,_n_uid);	
					if ( _n_uid_sub != null && _n_uid_sub != "" ) {
						cookies += _n_uid_subcookie + "=" + _n_uid_sub + "; ";
					}
				} else
					cookies += _n_uid_cookie + "=" + _n_uid + "; ";
			}
		}

		return cookies + binfo;
	}
	else {
		return document.cookie + binfo;
	}
}

function n_userattr_logging()
{
	var uid_attr1 = "";
	var uid_attr2 = "";
	var uid_attr3 = "";
	var uid_attr4 = "";
	var uid_attr5 = "";
	var uid_attr6 = "";
	var uid_attr7 = "";
	var	uid_url = "";

	if ( _n_uid == null || _n_uid == "" )
		return;

	if ( (typeof _n_uid_attr1)!="undefined" && _n_uid_attr1 != "" ) uid_attr1 = _n_uid_attr1;
	if ( (typeof _n_uid_attr2)!="undefined" && _n_uid_attr2 != "" ) uid_attr2 = _n_uid_attr2;
	if ( (typeof _n_uid_attr3)!="undefined" && _n_uid_attr3 != "" ) uid_attr3 = _n_uid_attr3;
	if ( (typeof _n_uid_attr4)!="undefined" && _n_uid_attr4 != "" ) uid_attr4 = _n_uid_attr4;
	if ( (typeof _n_uid_attr5)!="undefined" && _n_uid_attr5 != "" ) uid_attr5 = _n_uid_attr5;
	if ( (typeof _n_uid_attr6)!="undefined" && _n_uid_attr6 != "" ) uid_attr6 = _n_uid_attr6;
	if ( (typeof _n_uid_attr7)!="undefined" && _n_uid_attr7 != "" ) uid_attr7 = _n_uid_attr7;
	if ( uid_attr1!="" || uid_attr2!="" || uid_attr3!="" || uid_attr4!="" || uid_attr5!="" || uid_attr6!="" || uid_attr7!="" ) {
		uid_url = _n_uls +
					"?" +
					"dv=" + Math.random() +
					"|ver=1.0.0" +
					"|sid=" + n_encodeStr(_n_sid) +
					"|u=" + n_encodeStr(_n_uid) +
					"|a1=" + n_encodeStr(uid_attr1) +
					"|a2=" + n_encodeStr(uid_attr2) +
					"|a3=" + n_encodeStr(uid_attr3) +
					"|a4=" + n_encodeStr(uid_attr4) +
					"|a5=" + n_encodeStr(uid_attr5) +
					"|a6=" + n_encodeStr(uid_attr6) +
					"|a7=" + n_encodeStr(uid_attr7);

		_n_user_image.src = uid_url;
	}
}

function n_Logging_M() {

	if ( (typeof _n_m1)!="undefined" && _n_m1 ) return true;
	if ( (typeof _n_m2)!="undefined" && _n_m2 ) return true;
	if ( (typeof _n_m3)!="undefined" && _n_m3 ) return true;
	if ( (typeof _n_m4)!="undefined" && _n_m4 ) return true;
	if ( (typeof _n_m5)!="undefined" && _n_m5 ) return true;
	if ( (typeof _n_m6)!="undefined" && _n_m6 ) return true;
	if ( (typeof _n_m7)!="undefined" && _n_m7 ) return true;

	return false;
}

function n_Logging_P() {

	if ( (typeof _n_p1)!="undefined" && _n_p1 ) return true;
	if ( (typeof _n_p2)!="undefined" && _n_p2 ) return true;
	if ( (typeof _n_p3)!="undefined" && _n_p3 ) return true;
	if ( (typeof _n_p4)!="undefined" && _n_p4 ) return true;
	if ( (typeof _n_p5)!="undefined" && _n_p5 ) return true;
	if ( (typeof _n_p6)!="undefined" && _n_p6 ) return true;
	if ( (typeof _n_p7)!="undefined" && _n_p7 ) return true;

	return false;
}

function n_click_logging(url)
{
	if ( _n_sid == "07010100000" )
		return;

	var argc = n_click_logging.arguments.length;
	var argv = n_click_logging.arguments;
	
	var _n_request = url;

	var _nr = n_getReferrer();
	var _n_referrer = (1 < argc) ? argv[1] : _nr;
	var c1 = (2 < argc) ? argv[2] : null;
	var _n_cookie = n_getCookieStr();
	var _n_agent = navigator.userAgent;
	
	var _n_target_url = _n_ls +
						"?" +
						"dv=" + Math.random() +
						"|ver=1.0.0" +
						"|sid=" + n_encodeStr(_n_sid) +
						"|r=" + n_encodeStr(_n_request) +
						"|rf=" + n_encodeStr(_n_referrer) +
						"|c=" + n_encodeStr(_n_cookie) +
						"|a=" + n_encodeStr(_n_agent);

	if ( c1 != null ) {
		_n_target_url += "|_n_p1=" + c1;
	}

	_n_click_image.src = _n_target_url;
}

function n_common_logging(_req, _ref, _title) {

	var _n_request = _req;
	var _n_referrer = _ref;
	var _n_cookie = n_getCookieStr();
	var _n_agent = navigator.userAgent;
	var _n_title = _title;
	
	var _n_target_url = _n_ls +
						"?" +
						"dv=" + Math.round(Math.random()*1999083012) +
						"|ver=1.0.0" +
						"|sid=" + n_encodeStr(_n_sid) +
						"|r=" + n_encodeStr(_n_request) +
						"|rf=" + n_encodeStr(_n_referrer) +
						"|c=" + n_encodeStr(_n_cookie) +
						"|a=" + n_encodeStr(_n_agent);

	if ( (typeof _n_show_title)!="undefined" && _n_show_title )
		_n_target_url += "|t=" + n_paramEncodeStr(_n_title);

	if ( n_Logging_M() ) {
		var nm1 = ""; var nm2 = ""; var nm3 = ""; var nm4 = ""; var nm5 = ""; var nm6 = ""; var nm7 = "";

		if ( (typeof _n_m1)!="undefined" && _n_m1 ) nm1 = n_paramEncodeStr(_n_m1);
		if ( (typeof _n_m2)!="undefined" && _n_m2 ) nm2 = n_paramEncodeStr(_n_m2);
		if ( (typeof _n_m3)!="undefined" && _n_m3 ) nm3 = n_paramEncodeStr(_n_m3);
		if ( (typeof _n_m4)!="undefined" && _n_m4 ) nm4 = n_paramEncodeStr(_n_m4);
		if ( (typeof _n_m5)!="undefined" && _n_m5 ) nm5 = n_paramEncodeStr(_n_m5);
		if ( (typeof _n_m6)!="undefined" && _n_m6 ) nm6 = n_paramEncodeStr(_n_m6);
		if ( (typeof _n_m7)!="undefined" && _n_m7 ) nm7 = n_paramEncodeStr(_n_m7);

		_n_target_url += "|_n_m1=" + nm1;
		_n_target_url += "|_n_m2=" + nm2;
		_n_target_url += "|_n_m3=" + nm3;
		_n_target_url += "|_n_m4=" + nm4;
		_n_target_url += "|_n_m5=" + nm5;
		_n_target_url += "|_n_m6=" + nm6;
		_n_target_url += "|_n_m7=" + nm7;
	}

	if ( n_Logging_P() ) {
		var np1 = ""; var np2 = ""; var np3 = ""; var np4 = ""; var np5 = ""; var np6 = ""; var np7 = ""; 

		if ( (typeof _n_p1)!="undefined" && _n_p1 ) np1 = n_paramEncodeStr(_n_p1);
		if ( (typeof _n_p2)!="undefined" && _n_p2 ) np2 = n_paramEncodeStr(_n_p2);
		if ( (typeof _n_p3)!="undefined" && _n_p3 ) np3 = n_paramEncodeStr(_n_p3);
		if ( (typeof _n_p4)!="undefined" && _n_p4 ) np4 = n_paramEncodeStr(_n_p4);
		if ( (typeof _n_p5)!="undefined" && _n_p5 ) np5 = n_paramEncodeStr(_n_p5);
		if ( (typeof _n_p6)!="undefined" && _n_p6 ) np6 = n_paramEncodeStr(_n_p6);
		if ( (typeof _n_p7)!="undefined" && _n_p7 ) np7 = n_paramEncodeStr(_n_p7);

		 _n_target_url += "|_n_p1=" + np1;
		 _n_target_url += "|_n_p2=" + np2;
		 _n_target_url += "|_n_p3=" + np3;
		 _n_target_url += "|_n_p4=" + np4;
		 _n_target_url += "|_n_p5=" + np5;
		 _n_target_url += "|_n_p6=" + np6;
		 _n_target_url += "|_n_p7=" + np7;
	}

	var info_cookie = "";
	if ( (typeof _n_info1_cookie)!="undefined" && _n_info1_cookie != "" ) {
		info_cookie = n_GetCookie(_n_info1_cookie,false);	
		if ( info_cookie != null && info_cookie != "" ) {
			_n_target_url += "|" + _n_info1_cookie + "=" + n_encodeStr(info_cookie);
		}
	}
	if ( (typeof _n_info2_cookie)!="undefined" && _n_info2_cookie != "" ) {
		info_cookie = n_GetCookie(_n_info2_cookie,false);	
		if ( info_cookie != null && info_cookie != "" ) {
			_n_target_url += "|" + _n_info2_cookie + "=" + n_encodeStr(info_cookie);
		}
	}
	if ( (typeof _n_info3_cookie)!="undefined" && _n_info3_cookie != "" ) {
		info_cookie = n_GetCookie(_n_info3_cookie,false);	
		if ( info_cookie != null && info_cookie != "" ) {
			_n_target_url += "|" + _n_info3_cookie + "=" + n_encodeStr(info_cookie);
		}
	}
	if ( (typeof _n_info4_cookie)!="undefined" && _n_info4_cookie != "" ) {
		info_cookie = n_GetCookie(_n_info4_cookie,false);	
		if ( info_cookie != null && info_cookie != "" ) {
			_n_target_url += "|" + _n_info4_cookie + "=" + n_encodeStr(info_cookie);
		}
	}
	if ( (typeof _n_info5_cookie)!="undefined" && _n_info5_cookie != "" ) {
		info_cookie = n_GetCookie(_n_info5_cookie,false);	
		if ( info_cookie != null && info_cookie != "" ) {
			_n_target_url += "|" + _n_info5_cookie + "=" + n_encodeStr(info_cookie);
		}
	}
	if ( (typeof _n_info6_cookie)!="undefined" && _n_info6_cookie != "" ) {
		info_cookie = n_GetCookie(_n_info6_cookie,false);	
		if ( info_cookie != null && info_cookie != "" ) {
			_n_target_url += "|" + _n_info6_cookie + "=" + n_encodeStr(info_cookie);
		}
	}
	if ( (typeof _n_info7_cookie)!="undefined" && _n_info7_cookie != "" ) {
		info_cookie = n_GetCookie(_n_info7_cookie,false);	
		if ( info_cookie != null && info_cookie != "" ) {
			_n_target_url += "|" + _n_info7_cookie + "=" + n_encodeStr(info_cookie);
		}
	}

	_n_logging_image.src = _n_target_url;

	n_userattr_logging();
}

function n_logging() {

	if ( _n_sid == "07010100000" )
		return;
	
	n_common_logging( document.location.href, n_getReferrer(), document.title.toString() );
}

function n_parent_logging() {

	if ( _n_sid == "07010100000" )
		return;
	
	var parent_href = "";
	var parent_ref = "";
	var parent_title = "";

	try {
		parent_href = top.document.location.href;
		parent_ref = top.document.referrer;
		parent_title = top.document.title.toString();
		n_common_logging(parent_href, parent_ref, parent_title);
	}
	catch(e) {
		/* Nothing */
	}
}

_n_sid = "09091600111";
_n_uid_cookie = "Login";
_n_uid_subcookie = "USERID";
n_logging();

 


