///////////////////////////////////////////////////////////////////////
// ¾ÆÀÌµð Áßº¹Ã¼Å© »õÃ¢

function chkID_newwin(wx,hy) {

	m_id = document.joinform.id.value;
	
	if (m_id == "") {
		alert("Please choose your ID.");
		joinform.id.focus();
		return false;
	}

	// ¾ÆÀÌµð - ÀÌ¸ÞÀÏ ÁÖ¼Ò Çü½Ä È®ÀÎ
	if (m_id != ""){
			
		if (m_id.indexOf(" ") != -1) {
			alert("A Blank must NOT be in a ID.");
			joinform.id.focus();
			return false;
		}
		
		if (m_id.indexOf("@") < 1) {
			alert("'@' is missing in a ID.");
			joinform.id.focus();
			return false;
		}
			
		if (m_id.indexOf(".") == -1) {
			alert("'.' is missing in a ID.");
			joinform.id.focus();
			return false;
		}
			
		if (m_id.indexOf(".") - m_id.indexOf("@") == 1) {
			alert("'.' must not be continuous with '@' in a ID.");
			joinform.id.focus();
			return false;
		}
			
		if (m_id.charAt(m_id.length-1) == '.') {
			alert("'.' must not be the end in a ID.");
			joinform.id.focus();
			return false;
		}
		
	}
	
  	// ¾ÆÀÌµðÃ¼Å© »õÃ¢ ¶ç¿ì±â 
    openWin=window.open('','chkIDwin','toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0');
	openWin.focus();
		
	if(document.all){ 
		openWin.moveTo(0,0); 
		openWin.resizeTo(wx,hy); 
	}
	openWin.location="idchk.asp?id="+m_id;
		
}

///////////////////////////////////////////////////////////////////////
// ÁÖ¹Îµî·Ï¹øÈ£ °ËÁõ

function Jumin_wrong(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;

} 

///////////////////////////////////////////////////////////////////////