<!--//
//检查页数是否为空
function empty(){
	if (document.form.page.value == ''){
		window.alert('你还没填页数耶!~');
		document.form.page.focus();
	}
	else{
		return true;
	}
	return false;
}
//检查数据是否为空
function CheckForm()
{
	if (document.form.adress.value.length == 0) {
		alert("请选择所在地区!");
		document.form.adress.focus();
		return false;
	}
	if (document.form.showaddress.value.length == 0) {
		alert("请填写详细地址!");
		document.form.showaddress.focus();
		return false;
	}
	if (document.form.homesize.value.length == 0) {
		alert("请填写房子面积!");
		document.form.homesize.focus();
		return false;
	}
	if (document.form.name.value.length == 0) {
		alert("请填写您的称呼!");
		document.form.name.focus();
		return false;
	}
	if (document.form.tel.value.length == 0) {
		alert("请写上您的联系电话!");
		document.form.tel.focus();
		return false;
	}

	return true;
}
//检查是否有小孩子
function showxh(){
if (document.getElementById("xhqk").value != "还没有小孩") {
	shg.style.display = "inline";
}else{
	shg.style.display = "none";
}
}
// 显示无模式对话框
function ShowDialog(url, width, height) {
	var arr = showModalDialog(url, window, "dialogWidth:" + width + "px;dialogHeight:" + height + "px;help:no;scroll:no;status:no");
}

function preview() /* Preview for the "Compilation" */
	{
		if(document.myform.HtmlCode.value.length>0)
			{
				pr=window.open("","Preview","scrollbars=1,width=800,height=500");
				pr.document.write(document.myform.HtmlCode.value);
			}
		else alert('无任何内容可供预览!')
}