document.write("<script type=\"text/javascript\" src=\"Scripts/prototype.js\"></script>");

function SearchInfor()
{
	var Rtype = 1;
	//获得intput 集合
	var cboxList =  document.getElementsByName("Rtype");
	
	var cboxArray = $A(cboxList);
	//默认情况下，不存在	
	cboxArray.each(function(node){
		if(node.checked)
		{
			Rtype = node.value;
			$break;
		}
	});	
	
	if(Rtype==1)
	{
		location.href = 'News.asp?Searchkey='+$("txtSearchKey").value;
	}
	else
	    location.href = 'factoryList.asp?Searchkey='+$("txtSearchKey").value;
}

function ChangePic(obj)
{
	$("imgBigPicture").src = obj.src;
}


function CheckFeedBack()
{
	if($("txtName").value.strip()=="")
	{
		alert("姓名必须填写!")
		$("txtName").focus();
		return false;
	}
	else if($("txtEmail").value.strip()=="")
	{
		alert("E-mail必须填写!")
		$("txtEmail").focus();
		return false;
	}	
	else if($("txtPhone").value.strip()=="")
	{
		alert("电话必须填写!")
		$("txtPhone").focus();
		return false;
	}
	else if($("txtDetail").value.strip()=="")
	{
		alert("留言内容!")
		$("txtDetail").focus();
		return false;
	}
}


function onInit(aDiv,bDiv)
{
      var middleDivHeight = $(aDiv).offsetHeight  >= $(bDiv).offsetHeight ? $(aDiv).offsetHeight :$(bDiv).offsetHeight ;
      $(aDiv).style.height = $(bDiv).style.height = middleDivHeight + "px";
}
