function NewWin(url,sname,swidth,sheight,sreplace,sclose)
{
	var objNewWin;				
	if (swidth=="") swidth = "410";
	if (sheight=="") sheight = "320";
	if (sreplace=="") sreplace = false;
	if (sclose=="") sclose = false;
	objNewWin = window.open(url,sname,"fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=" + swidth + ",height=" + sheight + ",top=20,left=130",sreplace);	
	//alert(objNewWin.opener.dialogLeft);
	// + "aaa" + objNewWin.opener.screenTop);
	if (sclose) window.close();
	objNewWin.focus();	
}
function Info(url,sname,swidth,sheight,sreplace,sclose)
{
	var objNewWin;				
	if (swidth=="") swidth = "410";
	if (sheight=="") sheight = "320";
	if (sreplace=="") sreplace = false;
	if (sclose=="") sclose = false;
	objNewWin = window.open(url,sname,"fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=" + swidth + ",height=" + sheight + ",top=20,left=130",sreplace);	
	//alert(objNewWin.opener.dialogLeft);
	// + "aaa" + objNewWin.opener.screenTop);
	if (sclose) window.close();
	objNewWin.focus();	
}
function ForumReply(theForm)
{
	

	if (theForm.content.value == "")
	{
		alert("请输入内容！");
		theForm.content.focus();
		return (false);
	}
	
}
function EditPassWd(theForm)
{
	

	if (theForm.oldPassWd.value == "")
	{
		alert("请输入旧密码！");
		theForm.oldPassWd.focus();
		return (false);
	}
	if (theForm.PassWd.value == "")
	{
		alert("请输入新密码！");
		theForm.PassWd.focus();
		return (false);
	}
	if (theForm.AgainPassWd.value == "")
	{
		alert("请输入确认密码！");
		theForm.AgainPassWd.focus();
		return (false);
	}
	if (theForm.PassWd.value != theForm.AgainPassWd.value)
	{
	        alert("请你确认密码一致！");
		theForm.AgainPassWd.focus();
		return (false);	
	}	
}
function AddInfo(theForm)
{
	
	if (theForm.title1.value == "")
	{
		alert("请填写信息标题！");
		theForm.title1.focus();
		return (false);
	}
	if (theForm.content.value == "")
	{
		alert("请填写信息内容！");
		theForm.content.focus();
		return (false);
	}
		
}
		
function Guest(theForm)
{
	if (theForm.name.value == "")
	{
		alert("请填写您的名字！");
		theForm.name.focus();
		return (false);
	}
		if (theForm.tel.value == "")
	{
		alert("请填写您的电话！");
		theForm.tel.focus();
		return (false);
	}
		if (theForm.email.value == "")
	{
		alert("请填写您的EMAIL！");
		theForm.email.focus();
		return (false);
	}

	if (theForm.title.value == "")
	{
		alert("请填写留言标题！");
		theForm.title.focus();
		return (false);
	}
	if (theForm.content.value == "")
	{
		alert("请填写留言内容！");
		theForm.content.focus();
		return (false);
	}
}

function Products(theForm)
{
	
	if (theForm.model.value == "")
	{
		alert("请输入型号！");
		theForm.model.focus();
		return (false);
	}
	if (theForm.design.value == "")
	{
		alert("请输入款式！");
		theForm.design.focus();
		return (false);
	}
	if (theForm.price.value == "")
	{
		alert("请输入价格！");
		theForm.price.focus();
		return (false);
	}
	if (theForm.material.value == "")
	{
		alert("请输入材质！");
		theForm.material.focus();
		return (false);
	}
	if (theForm.waterproof.value == "")
	{
		alert("请输入防水！");
		theForm.waterproof.focus();
		return (false);
	}
	
	if (theForm.file.value == "")
	{
		alert("请选择图片！");
		theForm.file.focus();
		return (false);
	}
}
