function MM_jumpMenu(targ,selObj,restore){ //v3.0
  //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  window.open(selObj.options[selObj.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}
function getuserid()
{
	 var userid=document.getElementById("userid2").value;
//alert(userid);
	 
	 $.ajax({
			 type:"GET",
			 url:"userid_search.php?application=search&userid="+encodeURI(userid)+"&time="+Number(new Date()),
			 success:function(e){
				  $("#userid").html(e);
				 }
			});
}

function showTab(nums) {
	document.all.rodp1.style.display = "none";
	document.all.rodp2.style.display = "none";

	if (nums==1) {
		document.all.rodp1.style.display = "";
	} else if (nums==2) {
		document.all.rodp2.style.display = "";
	}
}
<!-- 

    


function showeve(nums) {
	document.getElementById("rodpw1").style.display = "none";
	document.getElementById("rodpw2").style.display = "none";
	document.getElementById("rodpw3").style.display = "none";

	if (nums==1) {
		document.getElementById("rodpw1").style.display = "";
	} else if (nums==2) {
		document.getElementById("rodpw2").style.display = "";
	} else if (nums==3) {
		document.getElementById("rodpw3").style.display = "";
	}
}

function leave_ok()
{
 var content=document.leave_info.content.value;
  	if(content=="")
	{
		alert("내용을 입력하세요");
		document.leave_info.content.focus();
		return false;
	}
}

function search_ok()
{
 var name=document.search_info.name.value;
  	if(name=="")
	{
		alert("검색명을 입력하세요");
		document.search_info.name.focus();
		return false;
	}
}

function join_ok()
{
 var name=document.join_info.name.value;
 var userid=document.join_info.userid.value;
 var pwd=document.join_info.pwd.value;
 var pwd_ok=document.join_info.pwd_ok.value;
 var email=document.join_info.email.value;
 //var card=document.join_info.card.value;
 var card_first=document.join_info.card_first.value;
 var card_last=document.join_info.card_last.value;
    if(name=="")
    {
        alert("이름을 입력하세요");
		document.join_info.name.focus();
		return false;
    }
 	if(userid=="")
	{
		alert("아이디를 입력하세요");
		document.join_info.userid.focus();
		return false;
	}
	if((userid).length<4 || (userid).length>20)
	{
	  alert("아이디가 4자리보다 크고 20자리보다 작아야만 합니다");
	  document.join_info.userid.focus();
	  return false;
	}	
	if(userid.indexOf(" ")!=-1)
	{
	  alert('아이디에 띄여쓰기가 없어야만합니다！');
	  document.join_info.userid.focus();
	  return false;
	}	
 	if(pwd=="")
	{
		alert("비밀번호를 입력하세요");
		document.join_info.pwd.focus();
		return false;
	}
	if(pwd.length<4)
	{
	    alert("비밀번호의 경우도 4자 이상으로 잡아주세요.");
		document.join_info.pwd.focus();
		return false;
	} 	
 	if(pwd_ok=="")
	{
		alert("비밀번호확인을 입력하세요");
		document.join_info.pwd_ok.focus();
		return false;
	} 
	if( pwd_ok && (pwd != pwd_ok))
	{
	alert("비밀번호가 잃치하지않습니다");
	document.join_info('pwd_ok').focus();
	return false;	     
	}		
 	if(email=="")
	{
		alert("이메일를 입력하세요");
		document.join_info.email.focus();
		return false;
	} 
	if (email.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1)
	{
	    alert("메일주소를 정확히 입력해 주세요.");
		document.join_info.email.focus();
		return false;
	}
 	/*
 	if(card=="")
	{
		alert("신분증번호를 입력하세요");
		document.join_info.card.focus();
		return false;
	}
	*/
 	if(card_first=="")
	{
		alert("주민등록번호 앞 자리는 6자로 입력하십시오."); 
		document.join_info.card_first.focus();
		return false;
	}

 	if(card_last=="")
	{
		alert("주민등록번호 뒤 자리는 7자로 입력하십시오."); 
		document.join_info.card_last.focus();
		return false;
	}


	/*
	var serialValue = card_first + "-" + card_last; 
	var chkValue    = /^\d{6}-[1234]\d{6}$/; 
	if (!chkValue.test(serialValue)) 
	{ 
        window.alert("주민등록 번호뒤자리 [7자리]를 확인 하세요!!"); 
        document.join_info.card_last.focus(); 
        return false; 
	} 
	birthYear   = (serialValue.charAt(7) >= "2") ? "19" : "20"; 
	birthYear  += serialValue.substr(0, 2); 
	birthMonth  = serialValue.substr(2, 2) - 1; 
	birthDate   = serialValue.substr(4, 2); 
	var birth   = new Date(birthYear, birthMonth, birthDate); 
	if ((birth.getYear() % 100 != serialValue.substr(0, 2)) || 
        (birth.getMonth() != birthMonth) || 
        (birth.getDate() != birthDate)) { 
        window.alert("주민등록 번호앞자리 [6자리]를 확인 하세요!"); 
        document.join_info.card_first.focus(); 
        return false; 
	} 
    var buf = new Array(13);
    for (var i = 0; i < 6; i++) { 
        buf[i] = parseInt(serialValue.charAt(i)); 
    } 
    for (var i = 6; i < 13; i++) { 
        buf[i] = parseInt(serialValue.charAt(i + 1)); 
    } 
    var multipliers = [2,3,4,5,6,7,8,9,2,3,4,5]; 
    for (var i = 0, sum = 0; i < 12; i++) { 
        sum += (buf[i] *= multipliers[i]); 
    } 
    if ((11 - (sum % 11)) % 10 != buf[12]) { 
        window.alert("주민등록 번호가 맞지않습니다!다시[확인]하세요!"); 
        return false; 
    }*/
    document.join_info.card.value= card_first+"-"+card_last;
	
	
	return true;
}

function login_ok()
{
  var userid=document.login_info.userid.value;
  var pwd=document.login_info.pwd.value;
 	if(userid=="")
	{
		alert("아이디를 입력하세요");
		document.login_info.userid.focus();
		return false;
	} 
 	if(pwd=="")
	{
		alert("비밀번호를 입력하세요");
		document.login_info.pwd.focus();
		return false;
	} 	
}

function bbs_write_ok()
{
  var title=document.bbs_title_info.title.value;
 	if(title=="")
	{
		alert("제목을 입력하세요");
		document.bbs_title_info.title.focus();
		return false;
	} 
}

function forget_ok()
{
  var userid=document.forget_info.userid.value;
  var email=document.forget_info.email.value;
 	if(userid=="")
	{
		alert("아이디를 입력하세요");
		document.forget_info.userid.focus();
		return false;
	} 
 	if(email=="")
	{
		alert("이메일을 입력하세요");
		document.forget_info.email.focus();
		return false;
	} 	
}

function forget_ok2()
{
  var password=document.forget_info2.password.value;
  var email=document.forget_info2.email.value;
 	if(password=="")
	{
		alert("비밀번호를 입력하세요");
		document.forget_info2.password.focus();
		return false;
	} 
 	if(email=="")
	{
		alert("이메일을 입력하세요");
		document.forget_info2.email.focus();
		return false;
	} 	
}

function check()
{
  var content=document.check_in.content.value;
	if(content=="")
	{
		alert("内容不能为空");
		document.check_in.content.focus();
		return false;
	}
}
function baojia_ok()
{
  var good=document.baojia_info.good.value;
  var title=document.baojia_info.title.value;
  var content=document.baojia_info.content.value;
  var email=document.baojia_info.email.value;
  var name=document.baojia_info.name.value;
  var company_name=document.baojia_info.company_name.value;
  var city=document.baojia_info.city.value;
  var phone=document.baojia_info.phone.value;
  var checked=document.baojia_info.checked.value;
	var strReg=""; 
	var r; 	
	var rs; 
	var strText=document.baojia_info.email.value;   
	if(good=="")
	{
	  alert("商品名称不能为空！");
	  document.baojia_info.good.focus();
	  return false
	
	}
	if(title=="")
	{
	  alert(" 标 题不能为空！");
	  document.baojia_info.title.focus();
	  return false
	
	}	
	if(content=="")
	{
	  alert("内容不能为空！");
	  document.baojia_info.content.focus();
	  return false
	
	}
	if(email=="")
	{
	  alert("邮箱不能为空！");
	  document.baojia_info.email.focus();
	  return false
	
	}
	strReg=/^\w+((-\w+)|(\.\w+))*\@{1}\w+\.{1}\w{2,4}(\.{0,1}\w{2}){0,1}/ig; 
	
	r=strText.search(strReg); 
	if(r==-1) { 
	alert("邮箱格式错误!"); 
	document.baojia_info.email.focus();
	return false;
	}	
	if(name=="")
	{
	  alert("联系名不能为空！");
	  document.baojia_info.name.focus();
	  return false
	
	}	
	if(company_name=="")
	{
	  alert("公司名不能为空！");
	  document.baojia_info.company_name.focus();
	  return false
	
	}	
	if(city=="")
	{
	  alert("城市不能为空！");
	  document.baojia_info.city.focus();
	  return false
	
	}
	if(phone=="")
	{
	  alert("手机不能为空！");
	  document.baojia_info.phone.focus();
	  return false
	
	}
	if(checked=="")
	{
	  alert("日期不能为空");
	  document.baojia_info.checked.focus();
	  return false
	
	}
}
