<!--
function check()
  {
var name=document.theform.name.value;
     if (name=='')
     {
       alert('请输入您的姓名！');
       document.theform.name.focus()
       return false;
}
if (document.theform.name.value.length < 2 || document.theform.name.value.length>5)
  {
    alert("错误：姓名应在2-5个字之间！");
    document.theform.name.focus();
    return false;
  }
var b=document.theform.b.value;
     if (b=='')
     {
       alert('请选择您的性别！');
       document.theform.b.focus()
       return false;
     }
var x=document.theform.x.value;
     if (x=='')
     {
       alert('请选择您的血型！不知道血型可任选一个。\n\n此项不会影响大多数的测试结果。');
       document.theform.x.focus()
       return false;
     }
var year=document.theform.y.value;
     var month=document.theform.m.value;
     var day=document.theform.d.value;
     var now=new Date();
     var nowyear=now.getYear();
     var nowmonth=now.getMonth();

     if (year=='')
     {
        alert('请选择出生年份！');
        document.theform.y.focus()
        return false;
     }
     
     if (year>nowyear || year <=nowyear-100 || isNaN(year))
     {
        alert('请选择正确的出生年份！');
        document.theform.y.focus()
        return false;
     }
     if ( month=='')
     {
        alert('请选择出生月份！');
        document.theform.m.focus()
        return false;
     }
     if (day=='')
     {
        alert('请选择出生日期！');
        document.theform.d.focus()
        return false;
     }
     if ((month==2 && day>29) || ((month==1 || month==3 || month==5 || month==7 || month==8 || month==10|| month==12) && day>31) || ((month==4 || month==6 || month==9 || month==11 ) && day>30))
     {
         alert('请选择正确的出生日期！');
         document.theform.d.focus()
         return false;
     }
}
//选择文本框的内容是否需要自动复制到剪切板上
//Applies only to IE 4+
//0=no, 1=yes
var copytoclip=1

function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.alert('复制成功，现在您可以粘贴到任何地方！')
setTimeout("window.status=''",1800)
}
}
//-->