<!--

// onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://<%=ProjectResources.siteDomain%>');"
// onClick="window.external.AddFavorite('http://<%=ProjectResources.siteDomain%>','<%=ProjectResources.siteName%>');"

function sampleShowModal(href, winTitle, width, height, left, top, scrollbars) {
	var style = "dialogwidth:"+width+"px;dialogHeight:"+height+"px;scroll:0;help:0;status:0";
	
	window.showModalDialog(href,winTitle,style);
}

function sampleOpenWin(href, winTitle, width, height, left, top, scrollbars) {
	var style = "left="+left+",top="+top+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scrollbars+",resizable=no,width="+width+",height="+height+"";
	window.open(href,winTitle,style);
}

function sampleOpenWinCenter(href, winTitle, width, height, scrollbars) {
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;
	var style = "left="+left+",top="+top+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scrollbars+",resizable=no,width="+width+",height="+height+"";
	window.open(href,winTitle,style);
}

function onResizing(img, limit_width, limit_height) {
	if (img.width > limit_width || img.height > limit_height) 
	{
		if ((img.width/img.height) > (limit_width/limit_height)) 
		{
			img.width = limit_width;
		}
		else 
		{
			img.height = limit_height;
        }
    }
}

function topLink(pageURL) {
	top.location.href = pageURL;
}

//-->

<!-- ±â°üºÐ·ùº° °Ô½Ã±Û ¸ñ·Ï -->
function OrgCheck(url){
	var form = document.frm1;
	var org = document.frm1.org.value;
	var flag = document.frm1.flag.value;
	//alert("org==="+org);
	form.action = url;
	form.org_useq.value = org;
	form.flag.value = flag;
	form.submit();
}

function Ucheck(){
	alert("ºñ°ø°³±ÛÀº °ü¸®ÀÚ¿Í ±Û¾´ÀÌ¸¸ º¸½Ç¼ö ÀÖ½À´Ï´Ù.");
}


<!-- ÆË¾÷ -->
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

//¸ÞÀÎ Æ÷Åä°¶·¯¸®
var sRepeat=null;
var dir = 'up';

function doScrollerIE(str_dir, src, amount) {
	dir = str_dir;
	if (amount==null) amount=115;
	if (dir=='up')		document.all[src].scrollLeft-=amount;	
	else		document.all[src].scrollLeft+=amount;
	return false
}


function openSimpleWindow(url, name, width, height) {
    window.open(url, name, 'scrollbars=no, statusbar=no, status=no, width='+width+', height='+height);
}

function openSimpleScrolledWindow(url, name, width, height) {
    window.open(url, name, 'scrollbars=yes, statusbar=no, status=no, width='+width+', height='+height);		
}

function openWindow(url, name, width, height, top, left) {
    window.open(url, name, 'scrollbars=no, statusbar=no, status=no, width='+width+', height='+height+', top='+top+', left='+left);
}

function openWindow2(url, name, width, height, top, left) {
    window.open(url, name, 'scrollbars=yes, statusbar=yes, status=yes, width='+width+', height='+height+', top='+top+', left='+left);
}
function openSimpleWindow(url, name, width, height) {
    window.open(url, name, 'scrollbars=no, statusbar=no, status=no, width='+width+', height='+height);
}

function openSimpleScrolledWindow(url, name, width, height) {
    window.open(url, name, 'scrollbars=yes, statusbar=no, status=no, width='+width+', height='+height);		
}

function openWindow(url, name, width, height, top, left) {
    window.open(url, name, 'scrollbars=no, statusbar=no, status=no, width='+width+', height='+height+', top='+top+', left='+left);
}

function openWindowWithFullOption(url, name, width, height, top, left) {
    window.open(url, name, 'scrollbars=yes, statusbar=yes, status=yes, width='+width+', height='+height+', top='+top+', left='+left);
}
function openWindowWithFullOption2(url, name, width, height, top, left) {
    window.open(url, name, 'scrollbars=yes, statusbar=yes, status=yes, menubar=yes, width='+width+', height='+height+', top='+top+', left='+left);
}
function IsNumber(str){
	var regEx = new RegExp("^[0-9]+$", "i");

	if ( regEx.test(str) ){
		return true;
	}else{
		return false;
	}
}

function isNumber(input) {
    var chars = "0123456789";
    return containsCharsOnly(input,chars);
}
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;
}

//maxlength ¸¸Å­ ¿Å±â¸é ´ÙÀ½À¸·Î ÀÌµ¿ÇÏ±â....
function nextFocus(sFormName,sNow,sNext)	{
	var sForm = 'document.'+ sFormName +'.'
	var oNow = eval(sForm + sNow);

	if (typeof oNow == 'object') {
		if ( oNow.value.length == oNow.maxLength) {
			var oNext = eval(sForm + sNext);

			if ((typeof oNext) == 'object') {
				oNext.focus();
			}
		}
	}
}

function isFloat(obj) {
	var strNum = obj.value;
	if (strNum!="") {
		if (parseFloat(strNum)!=strNum){
			return false;
		} else {
			return true;
		}
	} else {
		return false;
	}
}

function floatCheck(obj, max) {
	var strNum = obj.value;
	if (strNum!="") {
		if (parseFloat(strNum)!=strNum){
			alert("¹®ÀÚÀÔ·ÂÀÌ³ª Æ¯¼ö¹®ÀÚ ÀÔ·ÂÀº ºÒ°¡ÀÔ´Ï´Ù\n\n¼ýÀÚ³ª ¼Ò¼öÁ¡À» È®ÀÎÇÏ¼¼¿ä");
			obj.value=0;
			obj.select();
		} else {
			if (parseFloat(strNum) > parseFloat(max)) {
				alert("¼ýÀÚ '"+parseFloat(max)+"' ÀÌ»ó ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
				obj.value=parseFloat(max);
				obj.select();
			}
		}
	} else {
		alert("ºó°ø¹éÀ» ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù.");
		obj.value=0;
		obj.focus();
	}
}
//¿øÇÏ´Â ¼Ò¼öÁ¡ÀÌÇÏ±îÁö Àß¶ó³»¾î ¸®ÅÏÇØÁÜ.
function exRound(val, pos) {
    var rtn;
    rtn = Math.round(val * Math.pow(10, Math.abs(pos)-1))
    rtn = rtn / Math.pow(10, Math.abs(pos)-1)
    
    return rtn;
}
function prepareMsg() {
	alert('ÁË¼ÛÇÕ´Ï´Ù. ÇØ´ç ¸Þ´º´Â ÁØºñÁß¿¡ ÀÖ½À´Ï´Ù.');
}


function swf(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="wmode" value="transparent">';
	html += '<param name="menu" value="false">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

function swf2(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="menu" value="false">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

	//MyPage Link
	function go_mypage(member_type, member_seq) {
		var url = "";
		if (member_seq==0) {
			if (member_type=="S") {
				url = "<%=LOGIN_PAGE_URL%>&returnUrl=<%=MPSD_PAGE_URL%>";
			} else if (member_type="T") {
				url = "<%=LOGIN_PAGE_URL%>&returnUrl=<%=MPPF_PAGE_URL%>";
			} else {
				url = "/";
			}
			if (confirm('·Î±×ÀÎÀÌ ÇÊ¿äÇÑ ÆäÀÌÁöÀÔ´Ï´Ù.\n\n·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î?')) {
				window.location=url;
			}
		} else {
			if (member_type=="S") {
				url = "<%=MPSD_PAGE_URL%>";
			} else if (member_type=="T") {
				url = "<%=MPPF_PAGE_URL%>";
			} else if (member_type=="A") {
				alert("°ü¸®ÀÚ´Â ¸¶ÀÌÆäÀÌÁö¿¡ Á¢±ÙÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
				return;
			} else {
				url = "/";
			}
			window.location=url;
		}
	}

-->