function localnewuser()
{
  
  
  
  
  
  if(document.Outline.v_cardno.value == "")
  {
	  alert("本馆读者注册必须输入证号！");
      return;
  }
  document.Outline.action="http://221.203.97.123/cgi-bin/confirmuser";
  document.Outline.v_newuser.value = "1";
  document.Outline.submit();
}
function netnewuser()
{
  document.Outline.action="http://221.203.97.123/cgi-bin/confirmuser";
  document.Outline.v_newuser.value = "1";
  document.Outline.submit();
}

function newpasswd()
{
  if(document.Outline.v_cardno.value == "")
  {
	  alert("请输入证号！");
      return;
  }
  document.Outline.action="http://221.203.97.123/cgi-bin/EnterNewPasswd";
  document.Outline.submit();
}

function confirmuser()
{
  document.Outline.action="http://221.203.97.123/cgi-bin/confirmuser";
  document.Outline.v_newuser.value = "0";
  if(document.Outline.v_regname.value == "" && document.Outline.v_cardno.value == "")
  {
      alert("请输入注册名或证号！");
      return;
  }
  if(document.Outline.v_passwd.value == "")
  {
      alert("请输入登录密码！");
      return;
  }
  document.Outline.submit();
}

function GetQuestion()
{
  if(document.Outline.v_regname.value == "" && document.Outline.v_cardno.value == "")
  {
      alert("请输入注册名或证号！");
      return;
  }
  document.Outline.action = "http://221.203.97.123/cgi-bin/GetQuestion?v_regname="+document.Outline.v_regname.value+"&v_cardno="+document.Outline.v_cardno.value;
  var newwin=window.open(document.Outline.action,"","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=no,resizable=no,width=550,height=300");
  /*
  document.Outline.action = "http://221.203.97.123/cgi-bin/GetQuestion";
  document.Outline.submit();
  */
}

function js_openpage(url) 
{ 
	var newwin=window.open(url,"","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=no,resizable=no,width=600,height=400");
	return false;
}
