function mag(){
	var changenumber=Math.floor(Math.random()*90000+10000);
	$('#s2').html(changenumber);
	return true;
}
function checkinput()
{
if(document.teloa.username.value=="")
{
alert("用户名不能为空！");
document.teloa.username.focus();
return false;
}
 if(document.teloa.password1.value=="")
 {
 alert("密码不能为空！");
 document.teloa.password1.focus();
 return false;
 }
 if(document.teloa.s.value!=document.getElementById('s2').innerHTML)
 {
 alert('验证码不正确！');
 document.teloa.s.focus();
 return false;
 }
 return true;
 }
 function clearvalue()
 {
 document.teloa.corpcode.value="";
 document.teloa.username.value="";
 document.teloa.password1.value="";
 document.teloa.s.value="";
 } 
 function tosubmit(){
	 $("#teloa").submit();
 }
