<!--
	var isDOM = ( document.getElementById ? true : false );
    var isIE4 = ( (document.all && !isDOM) ? true : false );

    function moveRightEdge() {

        var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

        yMenuFrom = parseInt(quickmenu.style.top, 10);
        yMenuTo   = document.body.scrollTop + 110;     // À§ÂÊ À§Ä¡

        timeoutNextCheck = 500;

        if( yMenuFrom != yMenuTo ) {

            yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);

            if( yMenuTo < yMenuFrom ) {
                yOffset = -yOffset;
            }

            quickmenu.style.top = parseInt(quickmenu.style.top, 10) + yOffset;

            timeoutNextCheck = 10;
        }

        setTimeout("moveRightEdge()", timeoutNextCheck);
    }

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function f_val(obj, str, tog)
{
	if (tog == 'clr')
	{
		if (obj.value == str)
			obj.value = "";
	}
	else if (tog == 'rst')
	{
		if (obj.value == "")
			obj.value = str;
	}
	return;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(mypage,myname, w, h) { //v2.0
	 
		var winl = (screen.availWidth - w) / 2;
		var wint = (screen.availHeight - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable=0,status=0,scrollbars=0,toolbar=0,location=0,menubar=0'
		popWin = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { popWin.window.focus(); }
	 
}
function MM_openBrWindow1(mypage,myname, w, h) { //v2.0
	 
		var winl = (screen.availWidth - w) / 2;
		var wint = (screen.availHeight - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable=0,status=0,scrollbars=1,toolbar=0,location=0,menubar=0'
		popWin = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { popWin.window.focus(); }
	 
}

// NULL ¿©ºÎ Å×Å©
function f_nul_chk(obj, msg) {
   if (obj.value == "" )
	{
      alert("ÇÊ¼öÇ×¸ñ " + msg + " ÀÔ·ÂÇÏ½Ê½Ã¿À.");
      obj.focus(); 
      return true;   
   }
	return false; 
}

// ¶óµð¿À ¹öÆ° Ã¼Å©
function f_rdb_chk(obj, msg)
{
   var i, flag = 0;
   for(i = 0; i < obj.length; i++){
      if(obj[i].checked)
      flag = 1;   
   }   
   if(flag != 1){
      alert("ÇÊ¼öÇ×¸ñÀÎ " + msg + " ÀÔ·ÂÇØÁÖ½Ê½Ã¿À.");
      obj[0].focus();
      return true;  
   }
   return false;
}

// Ã¼Å© ¹Ú½º Ã¼Å©
function f_chb_chk(obj, msg)
{
   var i, flag = 0;
   for(i = 0; i < obj.length; i++){
      if(obj[i].checked)
      flag = 1;   
   }   
   if(flag != 1){
      alert("ÇÊ¼öÇ×¸ñÀÎ " + msg + " ÀÔ·ÂÇØÁÖ½Ê½Ã¿À.");
      obj[0].focus();
      return true;  
   }
   return false;
}

// ÀÌ¸ÞÀÏ Ã¼Å©
function chk_email(s)
{
	var sChk = '';
	var nCnt = 0;
	var nLen = s.length; 
	if (s.length < 7)		
	{
		return false;
	}
	else
	{
		for( i = 0 ; i < nLen ; i++)
		{
			temp = s.substring(i,i+1);   			
			if ((temp == '@' && i < 2) || (temp == '.' && i < 4))
			{
				return false;	
			}
			else 
			{
				if ( temp == '@' || temp == '.') sChk = sChk + temp;
			}
		}			
		if( sChk.substring(0,2) == '@.' )
			return true;
		else
			return false;
	}		
}

// ±æÀÌ Ã¼Å©
function f_len_chk(obj,lbl, num)
{
	if( obj.value.length < num)
	{
		alert(lbl + ' '  + num + '¹®ÀÚ ÀÌ»ó ÀÔ·ÂÇÏ½Ê½Ã¿À.');
		obj.focus(); 
		return true;   
	}
	return false; 
}

function f_chkLen1(obj, lbl, num)
{
	if( obj.value.length != num)
	{
		alert(lbl + ' '  + num + '¹®ÀÚ±îÁö ÀÔ·ÂÇÏ½Ê½Ã¿À.');
		obj.focus(); 
		return true;   
	}
	return false; 
}	
			
// ¼ýÀÚ ¿©ºÎ Ã¼Å©
function f_is_num(obj,lbl)
{
	var nLen = obj.value.length; 
	for( i = 0 ; i < nLen ; i++)
	{
		temp = obj.value.substring(i,i+1);
		if( temp < '0' || temp > '9' )
		{
			alert(lbl + ' ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.');
			obj.focus();
			return true;
		}     
	}
	return false;
}
function f_is_email(strValue) {
	var flag=true;

	if (strValue.length > 4 && strValue.indexOf("@") > 0 && strValue.indexOf("@.")==-1 && strValue.indexOf(".@")==-1 &&  strValue.indexOf(",", strValue.indexOf("@"))==-1 && strValue.indexOf(".", strValue.indexOf("@")) != -1) {
		flag=false;
	}
	return flag;
}

function f_len_str(obj)
{
   var nCnt = 0;
	var sTemp;
	
	for (i = 0; i < obj.value.length; i++)
	{
      sTemp = escape(obj.value.substring(i, i+1));
	   if(sTemp.substring(1,2) == "u" )
	      nCnt += 2;
	   else
	      nCnt += 1;
   }
   return nCnt;
}
function winresize(width,height)
{
  var divEl = document.createElement("div");
  divEl.style.position = "absolute";
  divEl.style.left = "0px";
  divEl.style.top = "0px";
  divEl.style.width = "100%";
  divEl.style.height = "100%";
  document.body.appendChild(divEl);
  window.resizeBy(width-divEl.offsetWidth, height-divEl.offsetHeight);
  document.body.removeChild(divEl);
}

function wresize(w) {
	var ixx, iyy, pxx, pyy;

	ixx = document.theForm.myImg.width ;
	iyy = document.theForm.myImg.height;

	if ( ixx > w ) document.theForm.myImg.width=w;
}
function submodel(str,str1,str2,str3){
	 var thisMenu1 = eval("document.getElementById('modelname" + str + "')")
	 var thisMenu2 = eval("document.getElementById('model" + str + "')")
	 var thisMenu3 = eval("document.getElementById('modelimg" + str + "')")
		thisMenu1.innerHTML = str1;
		thisMenu2.innerHTML = str2;
		thisMenu3.src ="http://www.playstation.co.kr/hardware/upfolder/"+str3+"/big.gif";

	}
//Åä±Û¸Þ´º
function toggleMenu(currMenu) {
	
	if (document.getElementById) {
		thisMenu = eval("getObject('" + currMenu + "').style")
		if (thisMenu.display == "") {
			thisMenu.display = "none"
		}
		else {
			thisMenu.display = ""
		}
		return false;
	}
	else {
		return true;
	}
	
}

function toggleMenu_2(currMenu1,currMenu2) {
	if (document.getElementById) {
		thisMenu1 = eval("getObject('" + currMenu1 + "').style")
		thisMenu2 = eval("getObject('" + currMenu2 + "').style")
		if (thisMenu1.display == "") {
			thisMenu1.display = "none"
		}
		else {
			thisMenu1.display = ""
		}
		if (thisMenu2.display == "") {
			thisMenu2.display = "none"
		}
		else {
			thisMenu2.display = ""
		}
		return false
	}
	else {
		return true
	}
}
function toggleMenu_3(currMenu1,currMenu2,currMenu3) {
	if (document.getElementById) {
		thisMenu1 = eval("getObject('" + currMenu1 + "').style")
		thisMenu2 = eval("getObject('" + currMenu2 + "').style")
		thisMenu3 = eval("getObject('" + currMenu3 + "').style")
		if (thisMenu1.display == "") {
			thisMenu1.display = "none"
		}
		else {
			thisMenu1.display = ""
		}
		if (thisMenu2.display == "") {
			thisMenu2.display = "none"
		}
		else {
			thisMenu2.display = ""
		}
		if (thisMenu3.display == "") {
			thisMenu3.display = "none"
		}
		else {
			thisMenu3.display = ""
		}
		return false
	}
	else {
		return true
	}
}
function toggleMenu_4(currMenu1,currMenu2,currMenu3,currMenu4) {
	if (document.getElementById) {
		thisMenu1 = eval("getObject('" + currMenu1 + "').style")
		thisMenu2 = eval("getObject('" + currMenu2 + "').style")
		thisMenu3 = eval("getObject('" + currMenu3 + "').style")
		thisMenu4 = eval("getObject('" + currMenu4 + "').style")
		
		if (thisMenu1.display == "") {
			thisMenu1.display = "none"
		}
		else {
			thisMenu1.display = ""
		}
		if (thisMenu2.display == "") {
			thisMenu2.display = "none"
		}
		else {
			thisMenu2.display = ""
		}
		if (thisMenu3.display == "") {
			thisMenu3.display = "none"
		}
		else {
			thisMenu3.display = ""
		}
		if (thisMenu4.display == "") {
			thisMenu4.display = "none"
		}
		else {
			thisMenu4.display = ""
		}
		return false
	}
	else {
		return true
	}
}



function toggleMenu1(currMenu1,currMenu2) {
	if (document.getElementById) {
		thisMenu1 = eval("getObject('" + currMenu1 + "').style")
		thisMenu2 = eval("getObject('" + currMenu2 + "').style")
		if (thisMenu1.display == "") {
			thisMenu1.display = "none";
			thisMenu2.display = ""
		}
		else {
			thisMenu1.display = ""
			thisMenu2.display = "none"
		}
		return false
	}
	else {
		return true
	}
}


function setDisplay(var1, var2){
    if(document.getElementById){
        thisMenu1 = eval("getObject('" + var1 + "').style"); 
        thisMenu1.display = var2;
    }
}  


function goTab(str){
	var frm=document.theForm;
	frm.strTab.value=str;
	frm.submit();
}

function goPage(str){
	var frm=document.theForm;
	frm.iPage.value=str;
	frm.submit();
}
function goSearch(){
	var frm=document.theForm;

	frm.submit();
}



function chkSearchTop(){
	var frm=document.searchForm; 
	if (frm.main_searchword.value==""||frm.main_searchword.value=="ÅëÇÕ°Ë»ö"){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		frm.main_searchword.focus();
		return false;
	}
	if (frm.main_searchword.value.length > 30){
		alert("°Ë»ö ÀÔ·Â°ªÀÌ ³Ê¹« Å®´Ï´Ù.");
		frm.main_searchword.focus();
		return false;
	}  
//	frm.main_searchword.value = encodeURI(frm.main_searchword.value);
    document.charset = "utf-8"; 
	return true; 
}

function goSearchTop(){
	var frm=document.searchForm;
//	if (frm.main_searchword.value==""||frm.main_searchword.value=="ÅëÇÕ°Ë»ö"){
//		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
//		frm.main_searchword.focus();
//		return;
//	}
//	if (frm.main_searchword.value.length > 30){
//		alert("°Ë»ö ÀÔ·Â°ªÀÌ ³Ê¹« Å®´Ï´Ù.");
//		frm.main_searchword.focus();
//		return;
//	}  
//    document.charset = "utf-8"; 
	frm.action="/ps_search/sea_main.sce";
	frm.submit();
}
function goSearchMain(){
	var frm=document.theForm;
	if (frm.main_searchword.value==""){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		frm.main_searchword.focus();
		return;
	}
	if (frm.main_searchword.value.length > 30){
		alert("°Ë»ö ÀÔ·Â°ªÀÌ ³Ê¹« Å®´Ï´Ù.");
		frm.main_searchword.focus();
		return;
	} 

	if(frm.strCate.value==""){
		frm.action="/ps_search/sea_main.sce";
	}else{
		frm.action="/ps_search/sea_view.sce";
	}
	frm.submit();
}
function goBoardSearch(){
	var frm=document.theForm;
	if (frm.strSearchType.value==""){
		alert("°Ë»ö ´ë»óÀ» ¼±ÅÃÇÏ¼¼¿ä");
		return;
	}
	if (frm.strSearchType.value.length > 30){
		alert("°Ë»ö ÀÔ·Â°ªÀÌ ³Ê¹« Å®´Ï´Ù.");
		frm.strSearchType.focus();
		return;
	}
	frm.submit();
}

function goStore(){
	var frm=document.theForm;
	frm.action="/ps_store/sto_main.sce";
	frm.submit();
}

function goPSStore(){
	var frm=document.theForm;
	frm.action="/psn/psn_store.sce";
	frm.submit();
}

function pop_login(str){
	var url="/ps_member/pop_mem_login.sce?retUrl="+str;
	MM_openBrWindow(url,'login', 370,250);
}
function addMyGame(sid){
	var url="/ps_game/pop_addmygame.sce?sid="+sid;
	MM_openBrWindow(url,'mygame', 300, 200);
}


function CommunityCommIns(){
	var frm=document.cform;
	if (frm.strComment.value==""){
		alert("ÇÑÁÙ ¼Ò°¨À» ÀÔ·ÂÇÏ¼¼¿ä");
		frm.strComment.focus();
		return;
	}
	//frm.target="__hidden"
	frm.mode.value="CommIns";
	frm.action="/ps_community/com_comm_proc.sce"
	//frm.submit();
}


function CommunityCommDel(str){

	var frm=document.cform;
	if(confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){
		frm.csid.value= str;
		frm.mode.value="CommDel";
		//frm.target="__hidden"
		frm.action="/ps_community/com_comm_proc.sce";
		frm.submit();
	}
	return;
}

function CommunityVote(){

		var frm=document.theForm;
		frm.mode.value="BoardVote";
		//frm.target="__hidden"
		frm.action="/ps_community/com_comm_proc.sce";
		frm.submit();
	 
}

function CommunityBoardTrouble(str1,str2){
	var frm=document.theForm;

	var url=""
	MM_openBrWindow(url,'communitytrouble', 400,370);


	frm.tro_userid.value= str1;
	frm.tro_title.value= str2;
	frm.mode.value="communityBoard";
	frm.target="communitytrouble";
	frm.action="/ps_community/pop_com_trouble.sce";
	frm.submit();
}

function CommunityTrouble(str1,str2,str3){
	var frm=document.cform;

	var url=""
	MM_openBrWindow(url,'communitytrouble', 400,370);

	frm.csid.value= str1;
	frm.tro_userid.value= str2;
	frm.tro_title.value= str3;
	frm.mode.value="communityComm";
	frm.target="communitytrouble";
	frm.action="/ps_community/pop_com_trouble.sce";
	frm.submit();
}
function communityWRITE(){
    var frm=document.theForm;
	

	if (/[^\s]/g.test(frm.strCate.value) == 0) {
		alert("¸»¸Ó¸®¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.");
		frm.strCate.focus();
		return;
	}

	if (/[^\s]/g.test(frm.strCate2.value) == 0) {
		alert("¸»¸Ó¸®¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.");
		frm.strCate2.focus();
		return;
	}

  	if (/[^\s]/g.test(frm.strSubject.value) == 0) {
  	    alert("Á¦¸ñÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À.");
  		frm.strSubject.focus();
  		return;
  	}

  	if (/[^\s]/g.test(frm.strContent.value) == 0) {
  	    alert("³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À.");
  		frm.strContent.focus();
  		return;
  	}
	if (/[^\s]/g.test(frm.strLink1.value) == 0) {
  	    alert("ÃâÃ³¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À.");
  		frm.strLink1.focus();
  		return;
  	}


	frm.mode.value="communityWRITE"
    frm.action="com_board_proc.sce"
	frm.submit();


}

function communityMODIFY(){
    var frm=document.theForm;
	

	if (/[^\s]/g.test(frm.strCate.value) == 0) {
		alert("¸»¸Ó¸®¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.");
		frm.strCate.focus();
		return;
	}

	if (/[^\s]/g.test(frm.strCate2.value) == 0) {
		alert("¸»¸Ó¸®¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.");
		frm.strCate2.focus();
		return;
	}

  	if (/[^\s]/g.test(frm.strSubject.value) == 0) {
  	    alert("Á¦¸ñÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À.");
  		frm.strSubject.focus();
  		return ;
  	}

  	if (/[^\s]/g.test(frm.strContent.value) == 0) {
  	    alert("³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À.");
  		frm.strContent.focus();
  		return;
  	}
	if (/[^\s]/g.test(frm.strLink1.value) == 0) {
  	    alert("ÃâÃ³¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À.");
  		frm.strLink1.focus();
  		return ;
  	}


	frm.mode.value="communityMODIFY"
    frm.action="com_board_proc.sce"
	frm.submit();


}
function communityDel(){

	var frm=document.theForm;
	if(confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){
		frm.mode.value="communityDel";
		frm.enctype="multipart/form-data"
		//frm.target="__hidden";
		frm.action="/ps_community/com_board_proc.sce";
		frm.submit();
	}
	return;
}

function GameCommDel(str){

	var frm=document.cform;
	if(confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){
		frm.csid.value= str;
		frm.mode.value="CommDel";
		//frm.target="__hidden";
		frm.action="/ps_game/gam_comm_proc.sce";
		frm.submit();
	}
	return;
}
function GameCommIns(){
	var frm=document.cform;
	if (frm.strComment.value==""){
		alert("ÇÑÁÙ ¼Ò°¨À» ÀÔ·ÂÇÏ¼¼¿ä");
		frm.strComment.focus();
		return false;
	}

	frm.mode.value="CommIns";
	//frm.target="__hidden";
	frm.action="/ps_game/gam_comm_proc.sce"
	//frm.submit();
}
function GameTrouble(str1,str2,str3){
	var frm=document.cform;

	var url=""
	MM_openBrWindow(url,'gametrouble', 400,370);

	frm.csid.value= str1;
	frm.tro_userid.value= str2;
	frm.tro_title.value= str3;
	frm.mode.value="gameComm";
	frm.target="gametrouble";
	frm.action="/ps_game/pop_gam_trouble.sce";
	frm.submit();
}

function CommTrouble(str1,str2,str3){
	var frm=document.cform;

	var url=""
	MM_openBrWindow(url,'comtrouble', 400,370);

	frm.csid.value= str1;
	frm.tro_userid.value= str2;
	frm.tro_title.value= str3;
	frm.mode.value="ComComm";
	frm.target="comtrouble";
	frm.action="/ps_community/pop_com_trouble.sce";
	frm.submit();
}


function GameMovieUrlCopy(str){
	window.clipboardData.setData("Text", str);
	alert("Å¬¸³º¸µå¿¡ º¹»çµÇ¾ú½À´Ï´Ù.\n\n Ctrl + V·Î ºÙ¿©³Ö±â ÇÏ¼¼¿ä.");

}

function GameImgUrlCopy(str){
	window.clipboardData.setData("Text", str);
	alert("Å¬¸³º¸µå¿¡ º¹»çµÇ¾ú½À´Ï´Ù.\n\n Ctrl + V·Î ºÙ¿©³Ö±â ÇÏ¼¼¿ä.");
}

function getStyleObject(objectId) {
  // checkW3C DOM, then MSIE 4, then NN 4.
  //
  if(document.getElementById && document.getElementById(objectId)) {
	return document.getElementById(objectId).style;
   }
   else if (document.all && document.all(objectId)) {  
	return document.all(objectId).style;
   } 
   else if (document.layers && document.layers[objectId]) { 
	return document.layers[objectId];
   } else {
	return false;
   }
}

function getObject(objectId) {
  // checkW3C DOM, then MSIE 4, then NN 4.
  //
  if(document.getElementById && document.getElementById(objectId)) {
	return document.getElementById(objectId);
   }
   else if (document.all && document.all(objectId)) {  
	return document.all(objectId);
   } 
   else if (document.layers && document.layers[objectId]) { 
	return document.layers[objectId];
   } else {
	return false;
   }
}

function changeObjectVisibility(objectId, newVisibility) {
    // first get a reference to the cross-browser style object 
    // and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
		return false;
    }
}

function displayText(objectId, text){
	if (document.all) {
	document.all[objectId].innerHTML = text;
	}
	else
	{
	var obj = document.getElementById(objectId);
	obj.innerHTML = text;  
	}
}
var NUM = "0123456789";	
     function SetBirth (nStartYear) {
	      var f = document.forms[0];

	      if (!CheckType(f.jumin1.value, NUM)) {
		     alert ("[ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕºÎºÐ]¿¡ Àß¸øµÈ ¹®ÀÚ°¡ ÀÖ½À´Ï´Ù.");
		     f.jumin1.focus();
		     return false;
	      }

	      var yy = parseInt(f.jumin1.value.substring(0,2), 10);
	      var mm = parseInt(f.jumin1.value.substring(2,4), 10);
	      var dd = parseInt(f.jumin1.value.substring(4,6), 10);

	      var s = f.jumin2.value.substring(0,1);
		  var y = f.jumin1.value.substring(0,2);

          //select box·Î Ã³¸®½Ã	
	      //if (s == 3 || s == 4 ) {
		  //    yy += 2000;
	      //} else {
		  //    yy += 1900;
	      //}
	      //var nSelected = f.birthy.length - (nStartYear - yy) -1;
	      //if (nSelected >= 0 && nSelected < f.birthy.length) {
		  //    f.birthy[nSelected].selected = true;
	      //}
		  //select box·Î Ã³¸®½Ã	³¡

		  //text box·Î Ã³¸®½Ã
	      if (s == 3 || s == 4 ) {
		      yy = '20';
	      } else {
		      yy = '19';
	      }
		  //text box·Î Ã³¸®½Ã ³¡
		  f.birthy.value = yy + y;
	
	      if(0<mm && mm<13) {
		      f.birthm[mm-1].selected = true;
	      }
	
	      if(0<dd && dd<32) {
		      f.birthd[dd-1].selected = true;
	      }
	
	      return true;
     }
     function CheckType(s,spc) {
	      var i;
	      for(i=0; i<s.length; i++) {
		       if (spc.indexOf( s.substring(i, i+1)) < 0) {
			      return;
		       }
	      }
		
	      return true;
     }

	function isValidEmail(theFieldSpace){
		var i;
		var dotcount = 0;
		var Atcount = 0;
		var at_dot_count = 0;
		var dot_at_count = 0;
		var doubledotcount = 0;
		var invaliddotcount = 0;
		var foundSymbol = true;
		if (theFieldSpace.value.substring(0,1) == "." || (theFieldSpace.value.substring(0,1) == "@")){
			foundSymbol = false;
		}
		for (i = 0;i< theFieldSpace.value.length; i++) {
			var ch = theFieldSpace.value.substring(i,i+1)
			if (ch == "@") {
				Atcount = Atcount + 1;
				if (theFieldSpace.value.substring(i+1,i+2) == ".")
					at_dot_count = at_dot_count + 1;
			}
			if (ch == ".") {
				dotcount = dotcount + 1;
				if (theFieldSpace.value.substring(i+1,i+2) == ".")
					doubledotcount = doubledotcount +1;
				if (theFieldSpace.value.substring(i+1,i+2) == "@")
					dot_at_count = dot_at_count +1;
			}
			if (ch == ",")
				invaliddotcount = invaliddotcount + 1;
		}
		if (theFieldSpace.value.substring(i-1, i) == "." || (theFieldSpace.value.substring(i-1, i) == "@"))
		{
			foundSymbol = false;
		}
		if ((Atcount != 1) || (dotcount < 1) || (invaliddotcount != 0) || (dot_at_count != 0) || (at_dot_count != 0) || (doubledotcount != 0))
			foundSymbol = false;
		return foundSymbol;
	}
 
// Àç¿Ü±¹ÀÎ ¹øÈ£ Ã¼Å©
function check_fgnno(fgnno) {
        var sum=0;
        var odd=0;
        buf = new Array(13);
        for(i=0; i<13; i++) { buf[i]=parseInt(fgnno.charAt(i)); }
        odd = buf[7]*10 + buf[8];
        if(odd%2 != 0) { return false; }
        if( (buf[11]!=6) && (buf[11]!=7) && (buf[11]!=8) && (buf[11]!=9) ) {
                return false;
        }
        multipliers = [2,3,4,5,6,7,8,9,2,3,4,5];
        for(i=0, sum=0; i<12; i++) { sum += (buf[i] *= multipliers[i]); }
        sum = 11 - (sum%11);
        if(sum >= 10) { sum -= 10; }
        sum += 2;
        if(sum >= 10) { sum -= 10; }
        if(sum != buf[12]) { return false }
        return true;
}
/* ¸ÞÀÏ°Ë»ç */
	function isEmail(str) {
	  // regular expression Áö¿ø ¿©ºÎ Á¡°Ë
	  var supported = 0
	  if (window.RegExp) {
	    var tempStr = "a"
	    var tempReg = new RegExp(tempStr);
	    if (tempReg.test(tempStr)) supported = 1
	    }
	  if (!supported)

	    return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
	  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
	  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");

	  return (!r1.test(str) && r2.test(str));
	}
// ÁÖ¹Î¹øÈ£ Ã¼Å©
function check_juminno(juminno) {
        if(juminno=="" || juminno==null || juminno.length!=13) {
                alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ Àû¾îÁÖ¼¼¿ä.");
                return false;
        }
        var jumin1 = juminno.substr(0,6);
        var jumin2 = juminno.substr(6,7);
        var yy         = jumin1.substr(0,2);        // ³âµµ
        var mm = jumin1.substr(2,2);        // ¿ù
        var dd = jumin1.substr(4,2);        // ÀÏ
        var genda = jumin2.substr(0,1);        // ¼ºº°
        var msg, ss, cc;

        // ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
        if (!isNumeric(jumin1)) {
                alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä.");
                return false;
        }
        // ±æÀÌ°¡ 6ÀÌ ¾Æ´Ñ °æ¿ì
        if (jumin1.length != 6) {
                alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
                return false;
        }
        // Ã¹¹øÂ° ÀÚ·á¿¡¼­ ¿¬¿ùÀÏ(YYMMDD) Çü½Ä Áß ±âº» ±¸¼º °Ë»ç
        if (yy < "00" || yy > "99" ||
                mm < "01" || mm > "12" ||
                dd < "01" || dd > "31") {
                alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
                return false;
        }
        // ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
        if (!isNumeric(jumin2)) {
                alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä.");
                return false;
        }
        // ±æÀÌ°¡ 7ÀÌ ¾Æ´Ñ °æ¿ì
        if (jumin2.length != 7) {
                alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
                return false;
        }
        // ¼ºº°ºÎºÐÀÌ 1 ~ 4 °¡ ¾Æ´Ñ °æ¿ì
        if (genda < "1" || genda > "4") {
                alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
                return false;
        }
        // ¿¬µµ °è»ê - 1 ¶Ç´Â 2: 1900³â´ë, 3 ¶Ç´Â 4: 2000³â´ë
        cc = (genda == "1" || genda == "2") ? "19" : "20";
        // Ã¹¹øÂ° ÀÚ·á¿¡¼­ ¿¬¿ùÀÏ(YYMMDD) Çü½Ä Áß ³¯Â¥ Çü½Ä °Ë»ç
        if (isYYYYMMDD(parseInt(cc+yy), parseInt(mm), parseInt(dd)) == false) {
                alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
                return false;
        }
        // Check Digit °Ë»ç
        if (!isSSN(jumin1, jumin2)) {
                alert("ÀÔ·ÂÇÑ ÁÖ¹Îµî·Ï¹øÈ£¸¦ °ËÅäÇÑ ÈÄ, ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
                return false;
        }
        return true;
}

// »ç¾÷ÀÚµî·Ï¹øÈ£ Ã¼Å©
function check_busino(vencod) {
        var sum = 0;
        var getlist =new Array(10);
        var chkvalue =new Array("1","3","7","1","3","7","1","3","5");
        for(var i=0; i<10; i++) { getlist[i] = vencod.substring(i, i+1); }
        for(var i=0; i<9; i++) { sum += getlist[i]*chkvalue[i]; }
        sum = sum + parseInt((getlist[8]*5)/10);
        sidliy = sum % 10;
        sidchk = 0;
        if(sidliy != 0) { sidchk = 10 - sidliy; }
        else { sidchk = 0; }
        if(sidchk != getlist[9]) { return false; }
        return true;
}


function isYYYYMMDD(y, m, d) {
        switch (m) {
        case 2:        // 2¿ùÀÇ °æ¿ì
                if (d > 29) return false;
                if (d == 29) {
                        // 2¿ù 29ÀÇ °æ¿ì ´çÇØ°¡ À±³âÀÎÁö¸¦ È®ÀÎ
                        if ((y % 4 != 0) || (y % 100 == 0) && (y % 400 != 0))
                                return false;
                }
                break;
        case 4:        // ÀÛÀº ´ÞÀÇ °æ¿ì
        case 6:
        case 9:
        case 11:
                if (d == 31) return false;
        }
        // Å« ´ÞÀÇ °æ¿ì
        return true;
}
function isNumeric(s) {
        for (i=0; i<s.length; i++) {
                c = s.substr(i, 1);
                if (c < "0" || c > "9") return false;
        }
        return true;
}
function isLeapYear(y) {
        if (y < 100)
        y = y + 1900;
        if ( (y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0) ) {
                return true;
        } else {
                return false;
        }
}
function getNumberOfDate(yy, mm) {
        month = new Array(29,31,28,31,30,31,30,31,31,30,31,30,31);
        if (mm == 2 && isLeapYear(yy)) mm = 0;
        return month[mm];
}
function isSSN(s1, s2) {
        n = 2;
        sum = 0;
        for (i=0; i<s1.length; i++)
                sum += parseInt(s1.substr(i, 1)) * n++;
        for (i=0; i<s2.length-1; i++) {
                sum += parseInt(s2.substr(i, 1)) * n++;
                if (n == 10) n = 2;
        }
        c = 11 - sum % 11;
        if (c == 11) c = 1;
        if (c == 10) c = 0;
        if (c != parseInt(s2.substr(6, 1))) return false;
        else return true;
}
//-->
