// JScript ÆÄÀÏ
function sbar (st,col) { st.style.backgroundColor = "#F7F7F7" ; }
function cbar (st) { st.style.backgroundColor = ''; }
function MM_popupMsg(msg) { //v1.0
  return confirm(msg);
}
var PreHtml="";

function allblur() {
  for (i = 0; i < document.links.length; i++)
    document.links[i].onfocus = document.links[i].blur;
  for (i = 0; i < document.images.length; i++)
    document.images[i].onfocus = document.images[i].blur;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_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_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 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(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function bgColor_over(highlightcolor){
target=event.srcElement
if (target.tagName=="TR"||target.tagName=="TABLE")
return
while(target.tagName!="TD")
target=target.parentElement
if (target.style.backgroundColor!=highlightcolor&&target.id!="ignore")
target.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||target.contains(event.toElement)||target.id=="ignore")
return
if (event.toElement!=target)
target.style.backgroundColor=originalcolor
}

//ÇÃ·¡½¬ Ç¥½Ã
function printSWF(url,w,h)
{
	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<embed src='"+url+"' menu='false' quality='high' width='"+w+"' height='"+h+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);
}

// °øÅë ¼±¾ð ½ÃÀÛ --------------------------------------------------------------------------------------------

//ÃÊ±âÈ­¸éÀ¸·Î°¡±â
function index01()
{
    location.href='/index.aspx';
}

//°Ë»öÇÏ±â
function search01()
{
    var str = document.form1;
	if (str.TextBox_SearchBox.value.length < 1) {alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
    str.TextBox_SearchBox.focus();
    return false;
    }
    __doPostBack('LinkButton_Search01','');
}

//°Ë»öÇÏ±â
function search02()
{
    __doPostBack('LinkButton_Search02','');
}

//ÀÔ·ÂÇÏ±â
function input01()
{
    __doPostBack('LinkButton_Input01','');
}

//¿ìÆí¹øÈ£ °Ë»ö 
function address_search()
{
    var winWidth = 495; // »õÃ¢ ³Êºñ
    var winHeight = 270; // »õÃ¢ ³ôÀÌ
    var winName = "pop_address_search"; // »õÃ¢ÀÇ Ã¢ÀÌ¸§
    var winPosLeft = (screen.width - winWidth) / 2; // »õÃ¢ Y ÁÂÇ¥
    var winPosTop = (screen.height - winHeight) / 2; // »õÃ¢ X ÁÂÇ¥
    var winOpt = "width="+winWidth+",height="+winHeight+",top="+winPosTop+",left="+winPosLeft;        
    window.open("/inc/post/postInput01.aspx",winName,"scrollbars=yes,"+winOpt);
}

//»èÁ¦ÇÏ±â1 °øÅë
function delete01(sKey)
{
    var str = document.form1;
    str.HiddenField_sDeleteKey01.value = sKey;
    if (confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?   "))
        __doPostBack('LinkButton_Delete01','');
}

//»èÁ¦ÇÏ±â2 °øÅë
function delete02(sKey)
{
    var str = document.form1;
    str.HiddenField_sDeleteKey02.value = sKey;
    if (confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?   "))
        __doPostBack('LinkButton_Delete02','');
}

//ÆäÀÌÁö ¸®·Îµù
function reload01()
{
    __doPostBack('LinkButton_Reload01','');
}

// °øÅë ¼±¾ð ¸¶Ä§ --------------------------------------------------------------------------------------------


// ÆÊÁ¸ ¼±¾ð ½ÃÀÛ --------------------------------------------------------------------------------------------

//ÁÖ¼Ò°Ë»ö 
function address_search01()
{
    var str = document.form1;
	if (str.TextBox_sSearchBox01.value.length < 1) {alert("ÇØ´çµ¿À» ÀÔ·ÂÇÏ¼¼¿ä.   ");
    str.TextBox_sSearchBox01.focus();
    return false;
    }
    var sDong = str.TextBox_sSearchBox01.value;
	iframe01.location.href="pam_safezone_iframe01.aspx?sDong="+sDong;
}

//¾ÈÀüÁö¿ª ¼öÁ¤ÇÏ±â
function safezone_input01()
{
    if (confirm("¼³Á¤ÇÏ½Ã°Ú½À´Ï±î?   "))
        __doPostBack('LinkButton_Input01','');
}

//°¡ÀåÃÖ±ÙÁÂÇ¥Á¤º¸¹ÙÀÎµù
function lastpointbinding01()
{
    __doPostBack('LinkButton_LastPointBinding01','');
}

//Áñ°ÜÃ£±â
var favoriteurl="http://pam.sktelecom.com/pam_zone"
var favoritetitle="[PAMZONE]ÆÊÁ¸_À§Ä¡Á¶È¸¼­ºñ½º"

function addfavorites()
{
    if(document.all)
    window.external.AddFavorite(favoriteurl,favoritetitle)
}

//·Î±×ÀÎ
function index()
{
    location.href="/pam_zone/pam_start.aspx";
}

//·Î±×¾Æ¿ô
function logout()
{
    location.href="/pam_zone/logout.aspx";
}

//¸¶ÀÌÆäÀÌÁö
function pam_mypage_user()
{
    top.location.href="/pam_zone/pam_map_user01_mypage01.aspx";

    //GUESTÃ³¸®
    /*if (top.document.form1.HiddenField_tpUno.value == "A000014")
    {
        alert("GUEST´Â ÀÌ¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.   ");
        return;
    }
    else
    {
        top.location.href="pam_map_user01_mypage01.aspx";
    }*/
}

//ÆÊÁ¸ ÁØºñÁßÀÔ´Ï´Ù.
function pam_msg_wait01()
{
    alert("ÇöÀç ÁØºñÁßÀÔ´Ï´Ù.   ");
    return;
}

function pam_datareceive_search01()
{
    var str = document.form1;
    if (str.TextBox_SearchDate01.value.length < 1) {alert("°Ë»öÇÒ ³¯Â¥¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_SearchDate01.focus();
	return false;	
	}
    __doPostBack('LinkButton_DataReceiveSearch01','');
}

//´Ü¸»±â Ãß°¡
function pam_unit_add01()
{
    location.href="pam_map_user01_mypage03_input01.aspx";
}

//Áï½ÃÁ¶È¸ÇÏ±â
function pam_unit_smssend01()
{
    if (confirm("Áï½ÃÁ¶È¸ ÇÏ½Ã°Ú½À´Ï±î?   "))
        __doPostBack('LinkButton_RealPoint01','');
}

//ÆÊÁöµµ ÀÎ¼â
function tpam_print()
{
    var str = document.form1;
    if (str.HiddenField_Browser.value == "6.0")
    {
 	    var scale = CongnamulMap.DrawScale;
	    var x = CongnamulMap.CenterX;
	    var y = CongnamulMap.CenterY;
	    var dir = "c:\\PAM.bmp";
	    //ÁöÁ¤µÈ °æ·Î¿¡ ±×¸²ÆÄÀÏÀ» ÀúÀåÇÑ´Ù.
	    CongnamulMap.RequestMap4Save(x, y, scale, 0.0, 950, 580, dir, 3);
    	
        var winWidth = 970; // »õÃ¢ ³Êºñ
        var winHeight = 680; // »õÃ¢ ³ôÀÌ
        var winName = "pamzone_print"; // »õÃ¢ÀÇ Ã¢ÀÌ¸§
        var winPosLeft = (screen.width - winWidth) / 2; // »õÃ¢ Y ÁÂÇ¥
        var winPosTop = (screen.height - winHeight) / 2; // »õÃ¢ X ÁÂÇ¥
        var winOpt = "width="+winWidth+",height="+winHeight+",top="+winPosTop+",left="+winPosLeft;
        var url = "./popup/pam_map_print.aspx";
        window.open(url, winName, winOpt + ",scrollbars=no");
    }
    else
    {
        window.print();
    }
}

//¸Þ½ÃÁö Ç¥½Ã
function PopupMsg(popupname,purl,pwidth,pheight,scroll)
{
    //½ºÅ©¸°ÀÇ Å©±â
    sw=screen.availWidth;
    sh=screen.availHeight;
    //¿­ Ã¢ÀÇ Æ÷Áö¼Ç
    px=(sw-pwidth)/2;
    py=(sh-pheight)/2;
    //Ã¢À» ¿©´ÂºÎºÐ
    dWin = window.open(purl,popupname,'left='+px+',top='+py+',width='+pwidth+',height='+pheight+',toolbar=no,menubar=no,status=no,scrollbars='+scroll+',resizable=no');
    //setTimeout("dWin.focus();", 100);   //¼û°ÜÁø Ã¢À» ¸Ç¾ÕÀ¸·Î ¿È±â±â À§ÇØ »ç¿ëÇÔ.
} 

//¿ÞÂÊ ·¹ÀÌ¾î ¼û±â±â
function layer_left_iframe_hidden() 
{
	var layerleft=top.document.getElementById('layer_left_iframe');
	layerleft.style.display='none';
	layer_tunit_list_hidden();
}

//´Ü¸»±â ¸®½ºÆ® ·¹ÀÌ¾î ¼û±â±â pam_map_user01_iframe01.aspx, pam_map_user01_tunit_list_view.aspx
function layer_tunit_list_hidden() 
{
	var layerleft=top.document.getElementById('layer_tunit_list_view');
	layerleft.style.display='none';
}

//´Ü¸»±â ¸®½ºÆ® °³º° ¼±ÅÃ½Ã pam_map_user01_tunit_list_view.aspx
function left_user01_iframe01_link(tpdno)
{
    top.left_iframe01.location.href="pam_map_user01_iframe02.aspx?tpdno="+tpdno;
}

//´Ü¸»±â ¸®½ºÆ® °³º° ¼±ÅÃ½Ã pam_map_user01_tunit_list_view.aspx
function left_group01_iframe01_link(tpdno)
{
    top.left_iframe01.location.href="pam_map_group01_iframe03.aspx?tpdno="+tpdno;
    top.left_iframe01.location.href="pam_map_group01_iframe03.aspx?tpdno="+tpdno;
}

//´Ü¸»±â ¸®½ºÆ® ·¹ÀÌ¾î º¸ÀÌ±â pam_map_user01_iframe02.aspx
function layer_tunit_list_view() 
{
	var layerleft=top.document.getElementById('layer_tunit_list_view');
	layerleft.style.display='';
}

//ÆÊÁ¸ ¿ÞÂÊ ·¹ÀÌ¾î ¼û±â±â
function layer_left_iframe_view()
{
	var layerleft=top.document.getElementById('layer_left_iframe');
	if(layerleft.style.display=='none') {
	layerleft.style.display='';
	}else{
		layer_left_iframe_hidden();
	}
}

//ÆÊÁ¸ ¿ìÆí¹øÈ£ °Ë»ö 
function address_search()
{
    var winWidth = 495; // »õÃ¢ ³Êºñ
    var winHeight = 270; // »õÃ¢ ³ôÀÌ
    var winName = "pop_address_search"; // »õÃ¢ÀÇ Ã¢ÀÌ¸§
    var winPosLeft = (screen.width - winWidth) / 2; // »õÃ¢ Y ÁÂÇ¥
    var winPosTop = (screen.height - winHeight) / 2; // »õÃ¢ X ÁÂÇ¥
    var winOpt = "width="+winWidth+",height="+winHeight+",top="+winPosTop+",left="+winPosLeft;        
    window.open("/inc/postInput01.aspx?location=pam_member_join03",winName,"scrollbars=yes,"+winOpt);
}

//ÆÊÁ¸ È¸¿ø°¡ÀÔÇÏ±â
function member_join()
{
    var str= document.form1;
    if (str.TextBox_tpId.value.length < 1) {alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpId.focus();
	return false;
	}
    if (str.TextBox_tpWebPw1.value.length < 6) {alert("ÆÊÁ¸ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpWebPw1.focus();
	return false;	
	}
    if (str.TextBox_tpWebPw2.value.length < 6) {alert("È®ÀÎÀ» À§ÇØ ÇÑ¹ø´õ ÆÊÁ¸ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpWebPw2.focus();
	return false;	
	}
	if (str.TextBox_tpWebPw1.value == str.TextBox_tpId.value) {alert("¾ÆÀÌµð¿Í µ¿ÀÏÇÑ ºñ¹Ð¹øÈ£´Â »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.   ");
    str.TextBox_tpWebPw1.focus();
    return false;	
    }
	if (str.TextBox_tpWebPw1.value != str.TextBox_tpWebPw2.value) {alert("ÆÊÁ¸ ºñ¹Ð¹øÈ£°¡ ¼­·Î ´Ù¸¨´Ï´Ù. ÆÊÁ¸ ºñ¹Ð¹øÈ£¸¦ ´Ù½Ã ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpWebPw1.focus();
	return false;	
	}				
	if (PwdCheck(str.TextBox_tpWebPw1.value)) 
	{
		alert("µ¿ÀÏÇÑ ¹®ÀÚ¸¦ ¿¬¼ÓÀ¸·Î ¼¼ ¹øÀÌ»ó »ç¿ëÇÏ´Â ºñ¹Ð¹øÈ£´Â ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
		str.TextBox_tpWebPw1.focus();
		return false;
	}
	if (PwdCheck1(str.TextBox_tpWebPw2.value)) 
	{
		alert("ÀÏ·Ã¼ýÀÚ ¶Ç´Â ¾ËÆÄºª ¼ø¼­´ë·Î 3ÀÚÀÌ»ó »ç¿ëÇÏ´Â ºñ¹Ð¹øÈ£´Â »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
		str.TextBox_tpWebPw2.focus();
		return false;
	}
    if (str.TextBox_tpPw1.value.length < 4) {alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpPw1.focus();
	return false;	
	}
    if (str.TextBox_tpPw2.value.length < 4) {alert("È®ÀÎÀ» À§ÇØ ÇÑ¹ø´õ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpPw2.focus();
	return false;	
	}
	if (str.TextBox_tpPw1.value != str.TextBox_tpPw2.value) {alert("ºñ¹Ð¹øÈ£°¡ ¼­·Î ´Ù¸¨´Ï´Ù. ºñ¹Ð¹øÈ£¸¦ ´Ù½Ã ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpPw1.focus();
	return false;	
	}				
	if (PwdCheck(str.TextBox_tpPw1.value)) 
	{
		alert("µ¿ÀÏÇÑ ¹®ÀÚ¸¦ ¿¬¼ÓÀ¸·Î ¼¼ ¹øÀÌ»ó »ç¿ëÇÏ´Â ºñ¹Ð¹øÈ£´Â ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
		str.TextBox_tpPw1.focus();
		return false;
	}
	if (PwdCheck1(str.TextBox_tpPw1.value)) 
	{
		alert("ÀÏ·Ã¼ýÀÚ ¶Ç´Â ¾ËÆÄºª ¼ø¼­´ë·Î 3ÀÚÀÌ»ó »ç¿ëÇÏ´Â ºñ¹Ð¹øÈ£´Â »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
		str.TextBox_tpPw1.focus();
		return false;
	}
    if (str.TextBox_tpPost1.value.length < 1) {alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
    address_search();
	return false;
	}
	if (str.TextBox_tpAddr.value.length < 1) {alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	address_search();
	return false;
	}

	if (str.TextBox_tpEmail.value.length < 1) {alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpEmail.focus();
	return false;	
	}

	dotIndex1=str.TextBox_tpEmail.value.indexOf("@"); 
	dotIndex2=str.TextBox_tpEmail.value.indexOf("."); 
    if(dotIndex1 == -1 || dotIndex2 == -1) 
    {
        alert("¸ÞÀÏ ÀÔ·Â¾ç½ÄÀÌ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù."); 
        str.TextBox_tpEmail.focus();
        return false; 
    }
    __doPostBack('LinkButton_MemberJoin','');
}

//ÆÊÁ¸ -> ¸¶ÀÌÆäÀÌÁö È¸¿øÁ¤º¸ ¼öÁ¤ÇÏ±â
function member_modify()
{
    var str= document.form1;
    if (str.HiddenField_PwStatus.value == "2")
    {
        if (str.TextBox_tpWebPw1.value.length < 6) {alert("ÆÊÁ¸ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpWebPw1.focus();
	    return false;	
	    }	
        if (str.TextBox_tpWebPw1.value.length < 6) {alert("ÆÊÁ¸ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpWebPw1.focus();
	    return false;	
	    }	
        if (str.TextBox_tpWebPw2.value.length < 6) {alert("È®ÀÎÀ» À§ÇØ ÇÑ¹ø´õ ÆÊÁ¸ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpWebPw2.focus();
	    return false;	
	    }
	    if (str.TextBox_tpWebPw1.value == str.HiddenField_tpId.value) {alert("¾ÆÀÌµð¿Í µ¿ÀÏÇÑ ºñ¹Ð¹øÈ£´Â »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.   ");
	    str.TextBox_tpWebPw1.focus();
	    return false;	
	    }
	    if (str.TextBox_tpWebPw1.value != str.TextBox_tpWebPw2.value) {alert("ÆÊÁ¸ ºñ¹Ð¹øÈ£°¡ ¼­·Î ´Ù¸¨´Ï´Ù. ÆÊÁ¸ ºñ¹Ð¹øÈ£¸¦ ´Ù½Ã ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpWebPw1.focus();
	    return false;	
	    }
	    if (PwdCheck(str.TextBox_tpWebPw1.value)) 
        {
	        alert("µ¿ÀÏÇÑ ¼ýÀÚ¸¦ ¿¬¼ÓÀ¸·Î ¼¼ ¹øÀÌ»ó »ç¿ëÇÏ´Â ÆÊÁ¸ ºñ¹Ð¹øÈ£´Â ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
	        str.TextBox_tpWebPw1.focus();
	        return false;
        }
        if (PwdCheck1(str.TextBox_tpWebPw1.value)) 
        {
	        alert("¼ø¼­´ë·Î 3ÀÚÀÌ»ó »ç¿ëÇÏ´Â ÆÊÁ¸ ºñ¹Ð¹øÈ£´Â »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
	        str.TextBox_tpWebPw1.focus();
	        return false;
        }
	    
	    //Pam2´Â Ars»ç¿ë¾ÈÇÔ.
	    if (str.HiddenField_tpPamSel.value != "Pam2")
	    {
	        if (str.TextBox_tpPw1.value.length < 4) {alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	        str.TextBox_tpPw1.focus();
	        return false;	
	        }	
            if (str.TextBox_tpPw2.value.length < 4) {alert("È®ÀÎÀ» À§ÇØ ÇÑ¹ø´õ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	        str.TextBox_tpPw2.focus();
	        return false;	
	        }	
	        if (str.TextBox_tpPw1.value != str.TextBox_tpPw2.value) {alert("ºñ¹Ð¹øÈ£°¡ ¼­·Î ´Ù¸¨´Ï´Ù. ºñ¹Ð¹øÈ£¸¦ ´Ù½Ã ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	        str.TextBox_tpPw1.focus();
	        return false;	
	        }
	        if (PwdCheck(str.TextBox_tpPw1.value)) 
	        {
		        alert("µ¿ÀÏÇÑ ¼ýÀÚ¸¦ ¿¬¼ÓÀ¸·Î ¼¼ ¹øÀÌ»ó »ç¿ëÇÏ´Â ºñ¹Ð¹øÈ£´Â ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
		        str.TextBox_tpPw1.focus();
		        return false;
	        }
	        if (PwdCheck1(str.TextBox_tpPw1.value)) 
	        {
		        alert("¼ø¼­´ë·Î 3ÀÚÀÌ»ó »ç¿ëÇÏ´Â ºñ¹Ð¹øÈ£´Â »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
		        str.TextBox_tpPw1.focus();
		        return false;
	        }
	    }
    }
    if (str.TextBox_tpPost1.value.length < 1) {alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
    address_search();
	return false;
	}
	if (str.TextBox_tpAddr.value.length < 1) {alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	address_search();
	return false;
	}
	if (str.TextBox_tpEmail.value.length < 1) {alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpEmail.focus();
	return false;	
	}
	if (str.TextBox_tpCellnum1.value.length < 2) {alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpCellnum1.focus();
	return false;	
	}
	if (str.TextBox_tpCellnum2.value.length < 3) {alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpCellnum2.focus();
	return false;	
	}
	if (str.TextBox_tpCellnum3.value.length < 4) {alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpCellnum3.focus();
	return false;	
	}
	dotIndex1=str.TextBox_tpEmail.value.indexOf("@"); 
	dotIndex2=str.TextBox_tpEmail.value.indexOf("."); 
    if(dotIndex1 == -1 || dotIndex2 == -1) 
    {
        alert("¸ÞÀÏ ÀÔ·Â¾ç½ÄÀÌ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù."); 
        str.TextBox_tpEmail.focus();
        return false; 
    }
    if (confirm("¼öÁ¤ ÇÏ½Ã°Ú½À´Ï±î?   "))
    __doPostBack('LinkButton_MemberModify','');
}

//ÆÊÁ¸ ¸¶ÀÌÆäÀÌÁö ±â´É¼³Á¤
function user01_mypage02_input()
{
    if (confirm("¼öÁ¤ ÇÏ½Ã°Ú½À´Ï±î?   "))
    __doPostBack('LinkButton_FunctionInput','');
}

//ÆÊ È¸¿ø°¡ÀÔ ´Ü¸»±â ÀÎÁõ
function member_join02_input()
{
    var str = document.form1;
    if (str.TextBox_tpTelnum1.value.length < 3) {alert("PAM ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpTelnum1.focus();
	return false;	
	}
    if (str.TextBox_tpTelnum2.value.length < 3) {alert("PAM ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpTelnum2.focus();
	return false;	
	}
    if (str.TextBox_tpTelnum3.value.length < 4) {alert("PAM ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	str.TextBox_tpTelnum3.focus();
	return false;	
	}		
	if (str.TextBox_tpSerial.value.length < 7) {alert("ÀÏ·Ã¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	str.TextBox_tpSerial.focus();
	return false;
	}
	if (str.TextBox_tpName.value.length < 1) {alert("Á¶È¸ÀÚ ¼º¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.   ");
	str.TextBox_tpName.focus();
	return false;
	}
//	//¼ÒºñÀÚ		
//	if(str.RadioButton_tpSel1.checked)
//	{	
//	    if (str.TextBox_tpJumin1.value.length < 6) {alert("Á¶È¸ÀÚ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
//	    str.TextBox_tpJumin1.focus();
//	    return false;
//	    }
//	    if (str.TextBox_tpJumin2.value.length < 7) {alert("Á¶È¸ÀÚ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
//	    str.TextBox_tpJumin2.focus();
//	    return false;
//	    }
//	}
//	//»ç¾÷ÀÚ
//	if(str.RadioButton_tpSel2.checked)
//	{		
//	    if (str.TextBox_tpSanum1.value.length < 3) {alert("Á¶È¸ÀÚ »ç¾÷ÀÚ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
//	    str.TextBox_tpSanum1.focus();
//	    return false;
//	    }
//	    if (str.TextBox_tpSanum2.value.length < 2) {alert("Á¶È¸ÀÚ »ç¾÷ÀÚ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
//	    str.TextBox_tpSanum2.focus();
//	    return false;
//	    }
//	    if (str.TextBox_tpSanum3.value.length < 5) {alert("Á¶È¸ÀÚ »ç¾÷ÀÚ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
//	    str.TextBox_tpSanum3.focus();
//	    return false;
//	    }
//	}
	if (str.TextBox_tpCellnum1.value.length < 2) {alert("Á¶È¸ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	str.TextBox_tpCellnum1.focus();
	return false;
	}
	if (str.TextBox_tpCellnum2.value.length < 3) {alert("Á¶È¸ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	str.TextBox_tpCellnum2.focus();
	return false;
	}
	if (str.TextBox_tpCellnum3.value.length < 4) {alert("Á¶È¸ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	str.TextBox_tpCellnum3.focus();
	return false;
	}
	if (str.TextBox_tpUsename.value.length < 1) {alert("µ¿ÀÇÀÚ ¼º¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.   ");
	str.TextBox_tpUsename.focus();
	return false;
	}
//	if (str.TextBox_tpUsejumin1.value.length < 6) {alert("µ¿ÀÇÀÚ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
//	str.TextBox_tpUsejumin1.focus();
//	return false;
//	}
//	if (str.TextBox_tpUsejumin2.value.length < 7) {alert("µ¿ÀÇÀÚ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
//	str.TextBox_tpUsejumin2.focus();
//	return false;
//	}
    __doPostBack('LinkButton_Submit','');
}

//È¸¿ø°¡ÀÔ ÆÊ ¾ÆÀÌµð Áßº¹Ã¼Å©
function pam_idcheck() 
{
    var str = document.form1;
    if (str.TextBox_tpId.value.length < 1) {alert("»ç¿ëÇÏ½Ç ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	str.TextBox_tpId.focus();
	return false;
	}
    var pageUrl = "pam_member_idcheck.aspx?checkid=" + str.TextBox_tpId.value;
    var xmlRequest = new ActiveXObject("Microsoft.XMLHTTP");
	xmlRequest.open("POST", pageUrl, false);
	xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xmlRequest.send(null);
	if(xmlRequest == null) return;
    if(xmlRequest.ResponseText.length == 0) return;
    if(xmlRequest.ResponseText > 0)
    {
        alert("»ç¿ëÇÒ¼ö ¾ø´Â ¾ÆÀÌµðÀÔ´Ï´Ù.   ");
        str.TextBox_tpId.focus();
        return false;
    }
    else
    {
        alert("»ç¿ëÇÒ¼ö ÀÖ´Â ¾ÆÀÌµðÀÔ´Ï´Ù.   ");
        str.TextBox_tpWebPw1.focus();
        return false;
    }
}

//ÆÊÁ¸ ¸¶ÀÌÆäÀÌÁö ´Ü¸»±âµî·Ï
function user01_mypage03_input01_input()
{
    var str = document.form1;
    //´Ü¸»±â µî·Ï¸ðµå
    if (str.HiddenField_tpDno.value == "")
    {
        if (str.TextBox_tpTelnum1.value.length < 3) {alert("PAM ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpTelnum1.focus();
	    return false;	
	    }
        if (str.TextBox_tpTelnum2.value.length < 3) {alert("PAM ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpTelnum2.focus();
	    return false;	
	    }
        if (str.TextBox_tpTelnum3.value.length < 4) {alert("PAM ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpTelnum3.focus();
	    return false;	
	    }		
	    if (str.TextBox_tpSerial.value.length < 7) {alert("ÀÏ·Ã¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	    str.TextBox_tpSerial.focus();
	    return false;
	    }
	    if (str.TextBox_tpName.value.length < 1) {alert("Á¶È¸ÀÚ ¼º¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.   ");
	    str.TextBox_tpName.focus();
	    return false;
	    }
	    /*
	    //¼ÒºñÀÚ		
	    if(str.RadioButton_tpSel1.checked)
	    {	
	        if (str.TextBox_tpJumin1.value.length < 6) {alert("Á¶È¸ÀÚ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_tpJumin1.focus();
	        return false;
	        }
	        if (str.TextBox_tpJumin2.value.length < 7) {alert("Á¶È¸ÀÚ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_tpJumin2.focus();
	        return false;
	        }
	    }
	    //»ç¾÷ÀÚ
	    if(str.RadioButton_tpSel2.checked)
	    {
	        if (str.TextBox_tpSanum1.value.length < 3) {alert("Á¶È¸ÀÚ »ç¾÷ÀÚ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_tpSanum1.focus();
	        return false;
	        }
	        if (str.TextBox_tpSanum2.value.length < 2) {alert("Á¶È¸ÀÚ »ç¾÷ÀÚ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_tpSanum2.focus();
	        return false;
	        }
	        if (str.TextBox_tpSanum3.value.length < 5) {alert("Á¶È¸ÀÚ »ç¾÷ÀÚ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_tpSanum3.focus();
	        return false;
	        }
	    }
	    */
	    if (str.TextBox_tpCellnum1.value.length < 2) {alert("Á¶È¸ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	    str.TextBox_tpCellnum1.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum2.value.length < 3) {alert("Á¶È¸ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	    str.TextBox_tpCellnum2.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum3.value.length < 4) {alert("Á¶È¸ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	    str.TextBox_tpCellnum3.focus();
	    return false;
	    }
	    if (str.TextBox_tpUsename.value.length < 1) {alert("µ¿ÀÇÀÚ ¼º¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.   ");
	    str.TextBox_tpUsename.focus();
	    return false;
	    }
	    /*
	    if (str.TextBox_tpUsejumin1.value.length < 6) {alert("µ¿ÀÇÀÚ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	    str.TextBox_tpUsejumin1.focus();
	    return false;
	    }
	    if (str.TextBox_tpUsejumin2.value.length < 7) {alert("µ¿ÀÇÀÚ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	    str.TextBox_tpUsejumin2.focus();
	    return false;
	    }
	    */
        __doPostBack('LinkButton_Input01','');
    }
    else //¼öÁ¤¸ðµå
    {
	    if (str.TextBox_Protecternum11.value != "" || str.TextBox_Protecternum12.value != "" || str.TextBox_Protecternum13.value != "")
	    {
	        if (str.TextBox_Protecternum11.value.length < 2) {alert("º¸È£ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_Protecternum11.focus();
	        return false;
	        }
	        if (str.TextBox_Protecternum12.value.length < 3) {alert("º¸È£ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_Protecternum12.focus();
	        return false;
	        }
	        if (str.TextBox_Protecternum13.value.length < 4) {alert("º¸È£ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_Protecternum13.focus();
	        return false;
	        }
	    }
	    if (str.TextBox_Protecternum21.value != "" || str.TextBox_Protecternum22.value != "" || str.TextBox_Protecternum23.value != "")
	    {
	        if (str.TextBox_Protecternum21.value.length < 2) {alert("º¸È£ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_Protecternum21.focus();
	        return false;
	        }
	        if (str.TextBox_Protecternum22.value.length < 3) {alert("º¸È£ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_Protecternum22.focus();
	        return false;
	        }
	        if (str.TextBox_Protecternum23.value.length < 4) {alert("º¸È£ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_Protecternum23.focus();
	        return false;
	        }
	    }
	    if (str.TextBox_Protecternum31.value != "" || str.TextBox_Protecternum32.value != "" || str.TextBox_Protecternum33.value != "")
	    {
	        if (str.TextBox_Protecternum31.value.length < 2) {alert("º¸È£ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_Protecternum31.focus();
	        return false;
	        }
	        if (str.TextBox_Protecternum32.value.length < 3) {alert("º¸È£ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_Protecternum32.focus();
	        return false;
	        }
	        if (str.TextBox_Protecternum33.value.length < 4) {alert("º¸È£ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
	        str.TextBox_Protecternum33.focus();
	        return false;
	        }
	    }
        if (confirm("¼öÁ¤ ÇÏ½Ã°Ú½À´Ï±î?   "))
        __doPostBack('LinkButton_Input01','');
    }
}

function pam_mobile_confirm01()
{
    var str = document.form1;
    if (str.TextBox_tpCellnum1.value.length < 1) {alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
    str.TextBox_tpCellnum1.focus();
    return false;
    }
    if (str.TextBox_tpCellnum2.value.length < 3) {alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
    str.TextBox_tpCellnum2.focus();
    return false;
    }
    if (str.TextBox_tpCellnum3.value.length < 4) {alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
    str.TextBox_tpCellnum3.focus();
    return false;
    }
    __doPostBack('LinkButton_Input01','');
}

//PAM ÀüÈ­¹øÈ£ Ã¹¹øÂ°
function tpTelnumLenCheck1()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpTelnum1.value.length;
	if(strlen == 3) {
			str.TextBox_tpTelnum2.focus();
	}
	else {
		return;
	}
}

//PAM ÀüÈ­¹øÈ£ µÎ¹øÂ°
function tpTelnumLenCheck2()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpTelnum2.value.length;
	if(strlen == 4) {
			str.TextBox_tpTelnum3.focus();
	}
	else {
		return;
	}
}

//PAM ÀüÈ­¹øÈ£ ¼¼¹øÂ°
function tpTelnumLenCheck3()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpTelnum3.value.length;
	if(strlen == 4) {
			str.TextBox_tpSerial.focus();
	}
	else {
		return;
	}
}

//º¸È£ÀÚ ÀüÈ­¹øÈ£1 Ã¹¹øÂ°
function tpProtecternum1LenCheck1()
{   
    var str = document.form1;
	var strlen = str.TextBox_Protecternum11.value.length;
	if(strlen == 3) {
			str.TextBox_Protecternum12.focus();
	}
	else {
		return;
	}
}

//º¸È£ÀÚ ÀüÈ­¹øÈ£1 µÎ¹øÂ°
function tpProtecternum1LenCheck2()
{   
    var str = document.form1;
	var strlen = str.TextBox_Protecternum12.value.length;
	if(strlen == 4) {
			str.TextBox_Protecternum13.focus();
	}
	else {
		return;
	}
}

//º¸È£ÀÚ ÀüÈ­¹øÈ£1 ¼¼¹øÂ°
function tpProtecternum1LenCheck3()
{   
    var str = document.form1;
	var strlen = str.TextBox_Protecternum13.value.length;
	if(strlen == 4) {
			str.TextBox_Protecternum21.focus();
	}
	else {
		return;
	}
}

//º¸È£ÀÚ ÀüÈ­¹øÈ£2 Ã¹¹øÂ°
function tpProtecternum2LenCheck1()
{   
    var str = document.form1;
	var strlen = str.TextBox_Protecternum21.value.length;
	if(strlen == 3) {
			str.TextBox_Protecternum22.focus();
	}
	else {
		return;
	}
}

//º¸È£ÀÚ ÀüÈ­¹øÈ£2 µÎ¹øÂ°
function tpProtecternum2LenCheck2()
{   
    var str = document.form1;
	var strlen = str.TextBox_Protecternum22.value.length;
	if(strlen == 4) {
			str.TextBox_Protecternum23.focus();
	}
	else {
		return;
	}
}

//º¸È£ÀÚ ÀüÈ­¹øÈ£2 ¼¼¹øÂ°
function tpProtecternum2LenCheck3()
{   
    var str = document.form1;
	var strlen = str.TextBox_Protecternum23.value.length;
	if(strlen == 4) {
			str.TextBox_Protecternum31.focus();
	}
	else {
		return;
	}
}

//º¸È£ÀÚ ÀüÈ­¹øÈ£3 Ã¹¹øÂ°
function tpProtecternum3LenCheck1()
{   
    var str = document.form1;
	var strlen = str.TextBox_Protecternum31.value.length;
	if(strlen == 3) {
			str.TextBox_Protecternum32.focus();
	}
	else {
		return;
	}
}

//º¸È£ÀÚ ÀüÈ­¹øÈ£3 µÎ¹øÂ°
function tpProtecternum3LenCheck2()
{   
    var str = document.form1;
	var strlen = str.TextBox_Protecternum32.value.length;
	if(strlen == 4) {
			str.TextBox_Protecternum33.focus();
	}
	else {
		return;
	}
}

//´Ü¸»±â ÀÏ·Ã¹øÈ£ Ã¹¹øÂ°
function tpSerialLenCheck1()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpSerial.value.length;
	//var strnamelen = str.txtTpamName.value.length;
	if(strlen == 7) {
			str.TextBox_tpName.focus();
	}
	else {
		return;
	}
}

//µ¿ÀÇÀÚ ÁÖ¹Î¹øÈ£ Ã¹¹øÂ°
function tpJuminLenCheck1()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpJumin1.value.length;
	if(strlen == 6) {
			str.TextBox_tpJumin2.focus();
	}
	else {
		return;
	}
}

//µ¿ÀÇÀÚ ÁÖ¹Î¹øÈ£ µÎ¹øÂ°
function tpJuminLenCheck2()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpJumin2.value.length;
	if(strlen == 7) {
			str.TextBox_tpCellnum1.focus();
	}
	else {
		return;
	}
}

//µ¿ÀÇÀÚ »ç¾÷ÀÚ¹øÈ£ Ã¹¹øÂ°
function tpSanumLenCheck1()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpSanum1.value.length;
	if(strlen == 3) {
			str.TextBox_tpSanum2.focus();
	}
	else {
		return;
	}
}

//µ¿ÀÇÀÚ »ç¾÷ÀÚ¹øÈ£ µÎ¹øÂ°
function tpSanumLenCheck2()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpSanum2.value.length;
	if(strlen == 2) {
			str.TextBox_tpSanum3.focus();
	}
	else {
		return;
	}
}

//µ¿ÀÇÀÚ »ç¾÷ÀÚ¹øÈ£ ¼¼¹øÂ°
function tpSanumLenCheck3()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpSanum3.value.length;
	if(strlen == 5) {
			str.TextBox_tpCellnum1.focus();
	}
	else {
		return;
	}
}

//Á¶È¸ÀÚ ÈÞ´ëÀüÈ­¹øÈ£ Ã¹¹øÂ°
function tpCellnumLenCheck1()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpCellnum1.value.length;
	if(strlen == 3) {
			str.TextBox_tpCellnum2.focus();
	}
	else {
		return;
	}
}

//Á¶È¸ÀÚ ÈÞ´ëÀüÈ­¹øÈ£ µÎ¹øÂ°
function tpCellnumLenCheck2()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpCellnum2.value.length;
	if(strlen == 4) {
			str.TextBox_tpCellnum3.focus();
	}
	else {
		return;
	}
}

//Á¶È¸ÀÚ ÈÞ´ëÀüÈ­¹øÈ£ µÎ¹øÂ°
function tpCellnumLenCheck3()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpCellnum3.value.length;
	if(strlen == 4) {
			str.TextBox_tpUsename.focus();
	}
	else {
		return;
	}
}

//µ¿ÀÇÀÚ ÁÖ¹Î¹øÈ£ Ã¹¹øÂ°
function tpUsejuminLenCheck1()
{   
    var str = document.form1;
	var strlen = str.TextBox_tpUsejumin1.value.length;
	if(strlen == 6) {
			str.TextBox_tpUsejumin2.focus();
	}
	else {
		return;
	}
}

//°Ë»öÇÏ±â
function search01()
{
    var str = document.form1;
	if (str.TextBox_SearchBox.value.length < 1) {alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.   ");
    str.TextBox_SearchBox.focus();
    return false;
    }
    __doPostBack('LinkButton_Search','');
}

//½Ç½Ã°£ Á¶È¸ÇÏ±â ÆË¾÷
function real_point_popup()
{
    var str = document.form1;
    if(top.document.form1.HiddenField_tpUno.value == "A000014")
    {
        alert("GUEST´Â ÀÌ¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.   ");
        return;
    }
    else
    {
        var sPopupUrl = "popup/pam_msg05.aspx?tpDno="+str.HiddenField_tpDno.value;
        PopupMsg('pam_msg05',sPopupUrl,'320','215','no');
    }
}

//½Ç½Ã°£ Á¶È¸ÇÏ±â
function real_point()
{
    __doPostBack('LinkButton_RealPoint','');
}

//½Ç½Ã°£ ¸¶Áö¸·ÁÂÇ¥ Á¶È¸ÇÏ±â
function real_last_point()
{
    __doPostBack('LinkButton_RealLastPoint','');
}

//´Ü¸»±â ÁÖ±â¼³Á¤ pam_map_user01_iframe02.aspx
function unit_term_change()
{
    __doPostBack('LinkButton_UnitTermChange','');
}

//¾È½ÉÁ¸ ¼³Á¤ÇÏ±â
function popup_safezone01(tpDno)
{
    var winWidth = 950; // »õÃ¢ ³Êºñ
    var winHeight = 680; // »õÃ¢ ³ôÀÌ
    var winName = "popup_safezone01"; // »õÃ¢ÀÇ Ã¢ÀÌ¸§
    var winPosLeft = (screen.width - winWidth) / 2; // »õÃ¢ Y ÁÂÇ¥
    var winPosTop = (screen.height - winHeight) / 2; // »õÃ¢ X ÁÂÇ¥
    var winOpt = "width="+winWidth+",height="+winHeight+",top="+winPosTop+",left="+winPosLeft;    
    
    var tpSelectDno = "";
    
    if (tpDno.length == 0)
    {
        var str = document.form1;
        tpSelectDno = str.HiddenField_tpDno.value;
    }
    else
    {
        tpSelectDno = tpDno;
    }
    
    window.open("popup/pam_safezone.aspx?tpDno="+tpSelectDno, winName, winOpt + ",scrollbars=no");
}


function olisearch01()
{
    __doPostBack('LinkButton_Test01','');
}

function olisearch02()
{
    alert("½ÇÇà2");
    //__doPostBack('LinkButton_OliSearch','');
}

// ÆÊÁ¸ ¼±¾ð ³¡ --------------------------------------------------------------------------------------------


// À¯È¿¼º Ã¼Å© ½ÃÀÛ --------------------------------------------------------------------------------------------
/*
	if (PwdCheck(str)) 
	{
		alert("µ¿ÀÏÇÑ ¹®ÀÚ¸¦ ¿¬¼ÓÀ¸·Î ¼¼ ¹øÀÌ»ó »ç¿ëÇÏ´Â ºñ¹Ð¹øÈ£´Â ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
		ele.focus();
		return false;
	}
*/
	
//Áßº¹µÈ 3ÀÚ ÀÌ»óÀÇ ¹®ÀÚ ¶Ç´Â ¼ýÀÚ »ç¿ëºÒ°¡
function PwdCheck(d) {
	var checkErr;
	var b;
	
	b = new Array();
	for (i = 0 ; i < d.length ; i++) {
		b[i] = d.charCodeAt(i);	
	}	
	
	for(i=0; i < b.length-1; i++) 
	{
		if((eval(b[i]) == eval(b[i+1]))&& (eval(b[i]) == eval(b[i+2])) ) {
			checkErr = true;
			return true;
		} else { 
			checkErr = false; 
		}
	}
	return checkErr;
}

//ÀÏ·Ã¼ýÀÚ ¶Ç´Â ¾ËÆÄºª ¼ø¼­´ë·Î 3ÀÚÀÌ»ó »ç¿ëÇÏ´Â ºñ¹Ð¹øÈ£´Â »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.
function PwdCheck1(d) {
	var checkErr;
	var b;
	
	b = new Array();
	for (i = 0 ; i < d.length ; i++) 
	{
		b[i] = d.charCodeAt(i);
	}	
	
	//alert(b[0]);
	
	//Áßº¹µÈ 3ÀÚ ÀÌ»óÀÇ ¹®ÀÚ ¶Ç´Â ¼ýÀÚ »ç¿ëºÒ°¡
	for(i=0; i < b.length-1; i++) 
	{
		if((eval(b[i]+1) == eval(b[i+1]))&& (eval(b[i+1]+1) == eval(b[i+2])) ) {
			checkErr = true;
			return true;
		} else { 
			checkErr = false; 
		}
	}
	
	for(i=0; i < b.length-1; i++) 
	{
		if((eval(b[i]) == eval(b[i+1]+1)) && (eval(b[i]) == eval(b[i+2]+2) )) {
			checkErr = true;
			return true;
		}	else  { 
			checkErr = false; 
		}
	}	
	return checkErr;
}

function function4_checkbox()
{
    var str = document.form1;
    
    var function4_layer1=document.getElementById('layer_function4_layer1');
    var function4_layer2=document.getElementById('layer_function4_layer2');
    var function4_layer3=document.getElementById('layer_function4_layer3');
    
    if (str.CheckBox_tpFunction4.checked == false)
    {
        function4_layer1.style.display='';
        function4_layer2.style.display='none';
        function4_layer3.style.display='none';
    }
    else
    {
        if (str.RadioButton_tpFunction41.checked == true)
        {
            function4_layer1.style.display='none';
            function4_layer2.style.display='none';
            function4_layer3.style.display='';
        }
        if (str.RadioButton_tpFunction42.checked == true)
        {
            function4_layer1.style.display='none';
            function4_layer2.style.display='';
            function4_layer3.style.display='none';
        }
    }
}

function function4_radio(select)
{
    var str = document.form1;
    str.CheckBox_tpFunction4.checked = true;
    
    var function4_layer1=document.getElementById('layer_function4_layer1');
    var function4_layer2=document.getElementById('layer_function4_layer2');
    var function4_layer3=document.getElementById('layer_function4_layer3');
    
    if (select == "1")
    {
        function4_layer1.style.display='none';
        function4_layer2.style.display='none';
        function4_layer3.style.display='';
    }
    if (select == "2")
    {
        function4_layer1.style.display='none';
        function4_layer2.style.display='';
        function4_layer3.style.display='none';
    }
}

//¾ÆÀÌµð Ã£±â
function member_id_search()
{
    var str = document.form1;
    if (str.RadioButton_idSearch1.checked == true)
    {
        if (str.TextBox_sUserName11.value.length < 1) {alert("¼º¸íÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_sUserName11.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum11.value.length < 3) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum11.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum12.value.length < 3) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum12.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum13.value.length < 4) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum13.focus();
	    return false;
	    }
	}
	if (str.RadioButton_idSearch2.checked == true)
    {
        if (str.TextBox_sUserName12.value.length < 1) {alert("¹ýÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_sUserName12.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum21.value.length < 3) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum21.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum22.value.length < 3) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum22.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum23.value.length < 4) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum23.focus();
	    return false;
	    }
	}
	__doPostBack('LinkButton_MemberSearchId','');
}

//ºñ¹Ð¹øÈ£ Ã£±â
function member_pw_search()
{
    var str = document.form1;
    if (str.RadioButton_pwSearch1.checked == true)
    {
        if (str.TextBox_sUserId1.value.length < 1) {alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_sUserId1.focus();
	    return false;
	    }
        if (str.TextBox_sUserName21.value.length < 1) {alert("¼º¸íÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_sUserName21.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum31.value.length < 3) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum31.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum32.value.length < 3) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum32.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum33.value.length < 4) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum33.focus();
	    return false;
	    }
	    if (str.TextBox_sUserEmail11.value.length < 1) {alert("¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_sUserEmail11.focus();
	    return false;
	    }
	    if (str.TextBox_sUserEmail12.value.length < 1) {alert("¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_sUserEmail12.focus();
	    return false;
	    }
	}
	if (str.RadioButton_pwSearch2.checked == true)
    {
        if (str.TextBox_sUserId2.value.length < 1) {alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_sUserId2.focus();
	    return false;
	    }
        if (str.TextBox_sUserName22.value.length < 1) {alert("¹ýÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_sUserName22.focus();
	    return false;
	    }
        if (str.TextBox_tpCellnum41.value.length < 3) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum41.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum42.value.length < 3) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum42.focus();
	    return false;
	    }
	    if (str.TextBox_tpCellnum43.value.length < 4) {alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_tpCellnum43.focus();
	    return false;
	    }
	    if (str.TextBox_sUserEmail21.value.length < 1) {alert("¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_sUserEmail21.focus();
	    return false;
	    }
	    if (str.TextBox_sUserEmail22.value.length < 1) {alert("¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.   ");
	    str.TextBox_sUserEmail22.focus();
	    return false;
	    }	    
	}
	__doPostBack('LinkButton_MemberSearchPw','');
}

// À¯È¿¼º Ã¼Å© ³¡ --------------------------------------------------------------------------------------------
