function isNull(str) {
	var i;
	for (i = 0; i < str.length; i++) {
		if (str.charAt(i) != " ") {
			return false;
		}
	}
	return true;
}
function checkCommit_newTwo(){
	f1.action="page_list.jsp?type=false";
	f1.submit();
}
function checkCommit_newOne(){
	f1.action="page_list.jsp?type=true";
	f1.submit();
}


function checkSubmit() {
	if (isNull(f1.dwmc.value)) {
		alert("\u5355\u4f4d\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a\u503c!");
		f1.dwmc.focus();
		return;
	}
	if (isNull(f1.dwcs.value)) {
		alert("\u8bf7\u9009\u5355\u4f4d\u62e9\u57ce\u5e02");
		f1.dwcs.focus();
		return;
	}
	if (isNull(f1.dwdz.value)) {
		alert("\u5355\u4f4d\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a!");
		f1.dwdz.focus();
		return;
	}
	if (isNull(f1.sprq.value)) {
		alert("\u5ba1\u6279\u65f6\u95f4\u4e0d\u80fd\u4e3a\u7a7a!");
		f1.lxr.focus();
		return;
	}
	if (isNull(f1.yxrq.value)) {
		alert("\u6709\u6548\u671f\u4e0d\u80fd\u4e3a\u7a7a!");
		f1.yxrq.focus();
		return;
	}
	if (isNull(f1.lxr.value)) {
		alert("\u8054\u7cfb\u4eba\u4e0d\u80fd\u4e3a\u7a7a!");
		f1.lxr.focus();
		return;
	}
	if (isNull(f1.zzdj.value)) {
		alert("\u8bf7\u9009\u62e9\u8d44\u8d28\u7b49\u7ea7");
		f1.zzdj.focus();
		return;
	}
	if (isNull(f1.zzzh.value)) {
		alert("\u8d44\u8d28\u8bc1\u53f7\u4e0d\u80fd\u4e3a\u7a7a!");
		f1.zzzh.focus();
		return;
	}
	f1.btn_submit.disabled=true;
	f1.submit();
}

function moveCheng(obj){
	obj.style.backgroundColor ="#c8e8ff";
}
function overCheng(obj){
	obj.style.backgroundColor ="white";
}

function openUrl(url, title) {

//	var width = (screen.width - w) / 2;

 //   var height = (screen.height - h) / 2;
	window.open(url, title, "height=620, width=480, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no");
}
