//==============================================================================
// »õÃ¢À¸·Î Submit
//==============================================================================
function onWinOpenSubmit(sURL,sTarget,nWidth,nHeight,nResize)
{
	var nLeft = (screen.availWidth - nWidth)/2;
	var nTop = (screen.availHeight - nHeight)/2;
	
	var option = "width=" + nWidth +",height="+ nHeight+",left="+nLeft+",top="+nTop+",resizable="+nResize;
	
	var eyewin = window.open("",sTarget,option);
	
	document.frmItem.action = sURL;
	document.frmItem.method = "post";
	document.frmItem.target = sTarget;
	document.frmItem.submit();
	
	eyewin.focus();
}
//==============================================================================
// À©µµ¿ì ¿ÀÇÂ.
//==============================================================================
	function onWinOpen(sURL,sTarget,nWidth,nHeight,nResize, nScroll)
	{
		var nLeft = (screen.availWidth - nWidth)/2;
		var nTop = (screen.availHeight - nHeight)/2;
		
		var option = "width=" + nWidth +",height="+ nHeight+",left="+nLeft+",top="+nTop+",resizable="+nResize + ",scrollbars="+nScroll+",statusbar=no";
		
		var homeWin = window.open(sURL,sTarget,option);
		
		homeWin.focus();
	}
//==============================================================================
// Ã¼Å©µÈ ¶óµð¿À ¹öÆ° °ª ÁÖ±â.
//==============================================================================
	function getCheckedRadioBoxValue(radioBox)
	{
	        var i=0;
	        for ( i=0; i<radioBox.length; i++ )
	        {
	                if ( radioBox[i].checked = true)
	                {
	                       return radioBox[i].value;
	                       break;
	                }
	        }
	}
//==============================================================================
// °ªÀ¸·Î Selected
//==============================================================================
	function setSelectBoxValue(oSelect, value)
	{
	        var selectedIndex = oSelect.options.selectedIndex;
			var length = oSelect.options.length;

	        for ( var i=0; i<length; i++ )
	        {
				if ( oSelect.options[i].value == value )
					oSelect.options.selectedIndex = i;
	        }
	}
//==============================================================================
// ID·Î object °¡Á®¿À±â
//==============================================================================
	function getObjectRef(name)
	{
		if(document.getElementById) return document.getElementById(name);
		else if(document.all) return document.all[name];
		else return null;
	}
//==============================================================================
	function isNullValue(pObj, pStr)
	{
		if (pObj.value.split(' ').join('')=='') {
			alert(pStr + '¸¦(À») ÀÔ·ÂÇØÁÖ¼¼¿ä.');
			pObj.focus();
			return true;
		}
		
		return false;
	}
	
	function isStrCheck(pObj, pStr)
	{
		var c;
		for(i=0;i<pObj.value.length;i++) {
			c = pObj.value.charAt(i);
			if((c < '0' || c > '9')&&(c < 'a' || c > 'z')){
				alert(pStr + "Àº ¿µ¾î ¼Ò¹®ÀÚ¿Í ¼ýÀÚ¸¸ °¡´É ÇÕ´Ï´Ù.");
				pObj.value="";
				pObj.focus();
				return false;
			}
		}
		
		return true;	}		function isStrCheck2(pObj, pStr)
	{
		var c;
		for(i=0;i<pObj.value.length;i++) {
			c = pObj.value.charAt(i);
			if((c < '0' || c > '9')&&(c < 'a' || c > 'z')&&(c < 'A' || c > 'Z')){
				alert(pStr + "Àº ¿µ¾î¿Í ¼ýÀÚ¸¸ °¡´É ÇÕ´Ï´Ù.");
				pObj.value="";
				pObj.focus();
				return false;
			}
		}
		
		return true;	}
		function isNumCheck(pObj, pStr)
	{
		var c;
		for(i=0;i<pObj.value.length;i++) {
			c = pObj.value.charAt(i);
			if((c < '0' || c > '9')){
				alert(pStr + "Àº ¼ýÀÚ¸¸ °¡´É ÇÕ´Ï´Ù.");
				pObj.value="";
				pObj.focus();
				return false;
			}
		}
		
		return true;	}
		function Jumin_chk(it)
	{
		IDtot = 0;
		IDAdd="234567892345";

		for(i=0;i<12;i++) {
			IDtot=IDtot+parseInt(it.substring(i,i+1))*parseInt(IDAdd.substring(i,i+1));
		}
		IDtot=11-(IDtot%11);
		
		if(IDtot==10) {
			IDtot=0;
		}
		else if(IDtot==11){
			IDtot=1;
		}
		
		if(parseInt(it.substring(12,13))!=IDtot) return true;
	} 