引自:user15/76930/archives/2007/3344.shtml
<script language = "JavaScript">
function CheckForm()
{
if (document.myform.keytext.value == "") {
alert("查询关键字没有填写!\n\n请检查!");
document.myform.keytext.focus();
return false;
}
if (document.myform.cl.value == 1)
{
document.myform.action="yqjsj.asp?keytext="+myform.keytext.value;
document.myform.submit();
}
else if (document.myform.cl.value == 2)
{
document.myform.action="sjzz.asp?keytext="+myform.keytext.value;
document.myform.submit();
}
else if (document.myform.cl.value == 3)
{
document.myform.action="gjhc.asp?keytext="+myform.keytext.value;
document.myform.submit();
}
else if (document.myform.cl.value == 4)
{
document.myform.action="jyjqr.asp?keytext="+myform.keytext.value;
document.myform.submit();
}
}
</script>