<script language="javascript">
<!--
function CheckForm(){
if(document.form.username.value.length == 0)
{
alert("请输入您的用户名.");
document.form.username.focus();
return false;
}
if(document.form.select1.value == "")
{
alert("请选择您所在的部门.");
document.form.select1.focus();
return false;
}
}
</script>