//********************************************************************
//
// 函数名： GoSearchCorp(int searchTxt,int searchType,int typeNumber)
// 功  能: 根据调用的参数把其转换成要求的URL。
// 参数说明: GoSearchCorp(查询词,查询类型,类别编号)
// 1、查询词格式： 查询词 查询词,其中：空格等同与
// 2、查询类型格式： 1=生活信息，2=企业信息
// 3、类别编号格式： 六位无符号正型,如果没有编号填写-1。如：110000
//
//********************************************************************
function GoSearchCorp(searchTxt,searchType,searchNumber)
{

	var ecUrl = "";
	var strType = "";
	if(searchTxt != "")
	{
		if(searchType <= 0 || searchType > 2)
		{
			searchType = 1;
		}
		ecUrl = "http://www.chinaec.com/searchEngine/ClassInfo.aspx?key=" + searchTxt + "&infotype=" + searchType + "&itype=" + searchNumber  ;
		window.open(ecUrl);
		//document.location.href= ecUrl;
	}
}


function GoSearchCorpByCity(searchTxt,searchType,searchNumber,city)
{

	var ecUrl = "";
	var strType = "";
	if(searchTxt != "")
	{
		if(searchType <= 0 || searchType > 2)
		{
			searchType = 1;
		}
		ecUrl = "http://www.chinaec.com/searchEngine/ClassInfo.aspx?key=" + searchTxt + "&infotype=" + searchType + "&itype=" + searchNumber + "&city=" + city ;
		window.open(ecUrl);
		//document.location.href= ecUrl;
	}
}


function doSearchCorp(thisId, searchTxt, searchType, searchNumber)
{
	var ecUrl = "";
	var strType = "";
	var info = "连接出现问题,请用搜索引擎搜索您想要的信息!";
	if(searchTxt != "" && searchNumber != "")
	{
		if(searchType <= 0 || searchType > 2)
		{
			searchType = 1;
		}
		ecUrl = "http://www.chinaec.com/searchEngine/ClassInfo.aspx?key=" + searchTxt + "&infotype=" + searchType + "&itype=" + searchNumber  ;		
  }
  else
  {
    ecUrl = "http://www.chinaec.com/common/showInfo.asp?info=" + info;
  } 
  thisId.href = ecUrl;
  thisId.target = "_blank";   
}

function doCorp(idInfo, searchNumber, searchNumber1)
{
	var ecUrl = "";
	ecUrl = "http://www.chinaec.com/corp/template/T/Product.aspx?idInfo=" + idInfo;
	window.open(ecUrl);
}

