function checkform(theform){
	if (theform.username.value==""){
		alert('用户名不能为空!');
		theform.username.focus;
		return false;
	}
	if (theform.password.value==""){
		alert('密码不能为空!');
		theform.password.focus;
		return false;
	}
	return true;
}

function checkTel(theform){
	if (theform.tel.value==""){
		alert('电话号码不能为空!');
		theform.tel.focus;
		return false;
	}
	if (isNaN(parseInt(theform.tel.value))){
		alert('电话号码必须是数字!');
		theform.tel.focus;
		return false;
	}
	return true;
}

function autoResize(){
	try{
		document.all["inner"].style.height=inner.document.body.scrollHeight
	}
	catch(e){}
}

function autoResize1(){
	try{
		document.all["inner1"].style.height=inner1.document.body.scrollHeight
	}
	catch(e){}
}

function autoResize2(){
	try{
		document.all["inner2"].style.height=inner2.document.body.scrollHeight
	}
	catch(e){}
}

function autoResize3(){
	try{
		document.all["inner3"].style.height=inner3.document.body.scrollHeight
	}
	catch(e){}
}

function autoResize4(){
	try{
		document.all["inner4"].style.height=inner4.document.body.scrollHeight
	}
	catch(e){}
}

function openput(url) {
	var url;
	window.open(url,'查看详细','width=600,height=300,top=50,left=100,resizable=yes,scrollbars=yes');
}