function check(theForm)
{
	 if(!checkmail(theForm.from))
	{
		theForm.from.focus();
		return false;
	} 
}
function confirm_reset()
{
	if (confirm("You sure you want to remove all forms of individual?"))
	{
		return true;
	}
	return false;
}
function gotoPage(pages,url)
{
	var formatString;
	var gotopage=document.getElementById('gotopage')
	if(gotopage.value=="")
	{
		alert('Please input valid page number !');
		return;	
	}
	if(isNaN(gotopage.value))
	{
		alert('Please input valid page number !');
		return;
	}  
	var page = eval(gotopage.value);
	if(page < 1 || page > pages)
	{
		alert('Please input valid page number !');
		return;
	}
	document.location = "/"+url+"-"+page+".html";
}
function checkthan()
{
	if(document.than.than1.value=="")
	{
		alert("请选择产品后再进行比较！");
		document.than.than1.focus();
		return false;
	}
}
