var checkMoblie=1;
var checkcoertno=1;

function checkMoblief()
{	

if(2==document.getElementById("activities").value && document.getElementById("mobileAlert").getElementsByTagName("input")[0].value ==2 )
{
document.accountCheckForm.moblieInput.value=document.getElementById("mobile").value;

var parem="moblieinput="+document.getElementById("mobile").value;
document.accountCheckForm.action="/member/checkAccount!CheckMoblie.jhtml";
 var myAjax = new Ajax.Request(document.accountCheckForm.action, {method: 'post', parameters:parem, onComplete: showCheckMoblieResult});
}
else
{
}
}


function showCheckMoblieResult(res)
{

 resText = res.responseText;
  var jsonMsgObj = new JsonMsgObj(resText);
  var codeid = jsonMsgObj.getCodeid();
  if (codeid == "0")
  {
  //未被使用
    checkMoblie=0;
  }
  else
  {
    checkMoblie=1;
  }

}
function checkCoertno()
{
if(2==document.getElementById("activities").value  && document.getElementById("certNoAlert").getElementsByTagName("input")[0].value ==2 )
{
var parem="certnoinput="+document.getElementById("certNo").value;
document.accountCheckForm.action="/member/checkAccount!CheckCertno.jhtml"
 var myAjax = new Ajax.Request(document.accountCheckForm.action, {method: 'post', parameters: parem, onComplete: showCheckcertnoResult});
}
else
{}

}

function showCheckcertnoResult(res)
{
 resText = res.responseText;
  var jsonMsgObj = new JsonMsgObj(resText);
  var codeid = jsonMsgObj.getCodeid();
  if (codeid == "0")
  {
   //未被使用
    checkcoertno=0;
  }
  else
  {
    checkcoertno=1;
  }

}