<!--
function check()
{
var name=document.httpcn.name.value;
if (name=='')
{
alert('请输入您的姓名！');
document.httpcn.name.focus()
return false;
}
if (document.httpcn.name.value.length < 2 || document.httpcn.name.value.length>5)
{
alert("错误：姓名应在2-5个字之间！");
document.httpcn.name.focus();
return false;
}
var b=document.httpcn.b.value;
if (b=='')
{
alert('请选择您的性别！');
document.httpcn.b.focus()
return false;
}
//var x=document.httpcn.x.value;
//if (x=='')
//{
//alert('请选择您的血型！不知道血型可任选一个。\n\n此项不会影响大多数的测试结果。');
//document.httpcn.x.focus()
//return false;
//}
var year=document.httpcn.y.value;
var month=document.httpcn.m.value;
var day=document.httpcn.d.value;
var now=new Date();
var nowyear=now.getYear();
var nowmonth=now.getMonth();

if (year=='')
{
 alert('请选择出生年份！');
 document.httpcn.y.focus()
 return false;
}

//if (year>nowyear || year <=nowyear-100 || isNaN(year))
if (year <=nowyear-100 || isNaN(year))
{
 alert('请选择正确的出生年份！');
 document.httpcn.y.focus()
 return false;
}
if ( month=='')
{
 alert('请选择出生月份！');
 document.httpcn.m.focus()
 return false;
}
if (day=='')
{
 alert('请选择出生日期！');
 document.httpcn.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.httpcn.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)
}
}
//-->