<!--
//ÀÎÅÍ³Ý A/Sµî·Ï½ÅÃ» »ó¼¼³»¿ª º¸±â
function winReg_View(REG) {	
	var win_RegView = null;
	//À©µµ¿ì°¡ ÀÌ¹Ì ¿­·Á ÀÖ´Â °æ¿ì¿£ ÀÌÀüÀÇ À©µµ¿ì¿¡ ´Ù½Ã ¿¬´Ù.
	if( self.win_RegView && !win_RegView.closed ) {
		win_RegView.location ="/intoras/C_intoras/A/AC/01/ACJ01CB.jsp?sREGNO="+REG;
		win_RegView.focus();
	}
	else 
	{
		Size = 610;
		Height = 425;
		winFeature = setCenter(Size, Height) + ",status=no,menubar=no,resizable=no,scrollbars=no";
		win_RegView = window.open("","win_RegView",winFeature);
		win_RegView.location ="/intoras/C_intoras/A/AC/01/ACJ01CB.jsp?sREGNO="+REG;
		win_RegView.focus();
	}
}
//ÀÛ¾÷È®ÀÎ¼­Ãâ·Â(Á¢¼ö¹øÈ£)
function winWork_Print(RCV) {	
	var prt_WorkWin = null;
	//À©µµ¿ì°¡ ÀÌ¹Ì ¿­·Á ÀÖ´Â °æ¿ì¿£ ÀÌÀüÀÇ À©µµ¿ì¿¡ ´Ù½Ã ¿¬´Ù.
	if( self.prt_WorkWin && !prt_WorkWin.closed ) {
		prt_WorkWin.location ="/intoras/C_intoras/A/AC/01/ACJ03CB.jsp?sRCVNO="+RCV;
		prt_WorkWin.focus();
	}
	else 
	{
		Size = 670;
		Height = 530;
		winFeature = setCenter(Size, Height) + ",status=no,menubar=no,resizable=no,scrollbars=yes";
		prt_WorkWin = window.open("","prt_WorkWin",winFeature);
		prt_WorkWin.location ="/intoras/C_intoras/A/AC/01/ACJ03CB.jsp?sRCVNO="+RCV;
		prt_WorkWin.focus();
	}
}

//ÀÛ¾÷È®ÀÎ¼­Ãâ·Â È­¸é OPEN
function OpenIntorasPwdCheck()
{
	var pwdWin = null;
	//À©µµ¿ì°¡ ÀÌ¹Ì ¿­·Á ÀÖ´Â °æ¿ì¿£ ÀÌÀüÀÇ À©µµ¿ì¿¡ ´Ù½Ã ¿¬´Ù.
	if( self.pwdWin && !pwdWin.closed ) {
		prodWin.location ="/as/ASH00MC031.html";
		prodWin.focus();
	} else {
		Size = 350;
		Height = 150;
		winFeature = setCenter(Size, Height) + ",status=no,menubar=no,resizable=no,scrollbars=no";
		pwdWin = window.open("","pwdWin",winFeature);
		pwdWin.location ="/as/ASH00MC031.html";
		pwdWin.focus();
	}
}
//ÀÎÅä¶ó½º ¾ÏÈ£check È­¸é
function intoras_pwcheck(){
	var f=document.forms[0];
	if(f.intoras_id.value == "") {
		alert("»ç¹øÀ» ÀÔ·ÂÇÏ¼¼¿ä");
		f.intoras_id.focus();
		return false;
	}	
	if(f.intoras_pw.value == "") {
		alert("¾ÏÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		f.intoras_pw.focus();
		return false;
	} 
	return true;
}
function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function onlynumber()
{
	if ((event.keyCode<48)||(event.keyCode>57))
	event.returnValue=false;
}
function isNull(obj)
{
    if( obj.length == 0 )
     return true;
    else
     return false;
}
/** 
* ÀÔ·Â°ªÀÌ Æ¯Á¤ ¹®ÀÚ(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 isNumComma(input) { 
var chars = ",0123456789"; 
return containsCharsOnly(input,chars); 
}
///ÅÃ½ºÆ® ÇÊµå¿¡¼­ ¼ýÀÚ¿Í ,¸¸ »ç¿ë°¡´ÉÇÏ°Ô ÇÔ
function numOnly(obj,isCash) { 
//»ç¿ë¿¹ : <input type="text" name="text" onKeyUp="javascript:numOnly(this,true);"> 
//¼¼ÀÚ¸® ÄÞ¸¶ »ç¿ë½Ã true , ¼ýÀÚ¸¸ ÀÔ·Â ½Ã false 
if (event.keyCode == 9 || event.keyCode == 37 || event.keyCode == 39) return; 
var returnValue = ""; 
for (var i = 0; i < obj.value.length; i++){ 
if (obj.value.charAt(i) >= "0" && obj.value.charAt(i) <= "9") returnValue += obj.value.charAt(i); 
else returnValue += ""; 
} 

if (isCash){ 
obj.value = cashReturn(returnValue); 
return; 
} 

obj.focus(); 
obj.value = returnValue; 
} 

function cashReturn(numValue){ 
//numOnlyÇÔ¼ö¿¡ ¸¶Áö¸· ÆÄ¶ó¹ÌÅÍ¸¦ true·Î ÁÖ°í numOnly¸¦ ºÎ¸¥´Ù. 
var cashReturn = ""; 
for (var i = numValue.length-1; i >= 0; i--){ 
cashReturn = numValue.charAt(i) + cashReturn; 
if (i != 0 && i%3 == numValue.length%3) cashReturn = "," + cashReturn; 
} 
return cashReturn; 
}

function IsNumeric(str)
{
  	for(var i =0; i < str.length; i++) {
    	if(!('0' <= str.charAt(i) && str.charAt(i) <= '9'))
      	return false;
   	}
	return true;
}
function isDate( str )  //³¯ÀÚ check
{
	var yyyy = str.substring(0,4);
	var mm   = str.substring(4,6);
	var dd   = str.substring(6,8);

	if( !( yyyy > 1990 && yyyy < 3000 ) || !( mm>0 && mm<13 ) ) return false;
	switch( mm )
	{
		case "02":
			if( ((yyyy % 4 == 0) && ( yyyy % 100 != 0 )) || (yyyy % 400 == 0) )
			{
				if( !( dd>0 && dd<30 ) ) return false;
			}
			else
			{
				if( !( dd>0 && dd<29 ) ) return false;
			}
			break;
		case "04":
		case "06":
		case "09":
		case "11":
			if( !( dd>0 && dd<31 ) ) return false;
			break;
		default: // 1,3,5,7,8,10,12 ¿ù
			if( !( dd>0 && dd<32 ) ) return false;
	}
	return true;
}

function GetConLen(szVal) { //DB ÀÔ·Â/¼öÁ¤½Ã ÇÑ±Û ¿µ¹® ±æÀÌ check
	var i, iLen, iRealLen = 0, iHanChk ;
	var szChar = "" ;
	iLen = szVal.length ;
	if (iLen <= 0)
		return iLen ;
	for (i = 0; i < iLen; i++) {
		iHanChk = 0 ;
		if ((szChar = szVal.charAt (i)) >= unescape ("%A0"))
			iHanChk++ ;
		if (!(iHanChk % 2))
			iRealLen++ ;
		else                /* ÇÑ±ÛÀÌ¸é */
			iRealLen += 2 ;
	}
	return iRealLen ;
}
/* window open½Ã Áß¾Ó¿¡ À§Ä¡ */
function setCenter(winwidth, winheight) {

	winx = Math.ceil((screen.availWidth - winwidth) / 2);
	winy = Math.ceil((screen.availHeight - winheight) / 2);

	if (winwidth == screen.availWidth) winwidth = screen.availWidth - 10;
	if (winheight == screen.availHeight) winheight = screen.availHeight - 30;

	return "left=" + winx + ",top=" + winy + ",width=" + winwidth + ",height=" + winheight;
}
/* window open½Ã È­¸é¿¡º¸ÀÌÁö ¾Ê°Ô */
function setWinHide(winwidth, winheight) {
	return "left=10000,top=10000,width=" + winwidth + ",height=" + winheight;
}
/* ÇöÀç window ÀÎ¼â */
function printing()
{
	window.print();			
}
//ÇÁ·Î¼¼½º ÁøÇàÁß Àá½Ã ±â´Ù¸² ÀÌ¹ÌÁö
/*
»ç¿ë¹æ¹ý:<body OnLoad="processImages()">
<div id="process" style="position: absolute; left:200px; top:180px; background-color:  white; layer-background-color: white; height: 18; width: 250;"> 
	<table width="100%"><tr><td valign=middle align=middle><img src= "/intoras/img/common/process.gif"></td></tr></table>
</div>
*/
function processImages() { 
	if (document.getElementById) {
		document.getElementById ('process').style.visibility = 'hidden'; 
	} 
	else { 
		if (document.layers) {
			document.process.visibility = 'hidden'; 
		} 
		else {} 
	} 
}
//-->
