
function GoUrl(strUrl,strFormName,intPageId)	//页面跳转
{
	strChar = "?"
	if(strUrl.indexOf('?')>0)
	{
		strChar = "&";
	}
	if(strFormName!='')
		{
			var strActionUrl = 'document.' + strFormName + '.action=\'' + strUrl + strChar + 'pageid=' + intPageId + '\'';
			//alert(strActionUrl);
			eval(strActionUrl);
			eval('document.' + strFormName + '.submit()');						
		}
	else
		{
			window.location.href = strUrl + strChar + 'pageid=' + intPageId;
		}	
	
}

function GotoUrl(strUrl,strFormName,intPageId,kindid)	//页面跳转，支持分类
{
	var kindsql="";
	if(kindid > 0)
	{
		kindsql = '\&' + 'NewsKindId=' + kindid ;
	}
	strChar = "?"
	if(strUrl.indexOf('?')>0)
	{
		strChar = "&";
	}
	if(strFormName!='')
		{
			var strActionUrl = 'document.' + strFormName + '.action=\'' + strUrl + strChar + 'pageid=' + intPageId + kindsql + '\'';
			//alert(strActionUrl);
			eval(strActionUrl);
			eval('document.' + strFormName + '.submit()');						
		}
	else
		{
			window.location.href = strUrl + strChar + 'pageid=' + intPageId;
		}	
	
}
function ConfirmThisOption(strMsgInfo,strUrl)	//确认操作
{
	if(confirm(strMsgInfo))
		{
			window.location.href=strUrl;
			}
			//alert(strMsgInfo);
	}
	
function GoSearch(pageid,strActionUrl)
{
	document.hiddenform.action=strActionUrl + pageid;
	document.hiddenform.submit();
	
}	