
function gotoPage(a)
	{
		hisPage=getParam("page");
		if(hisPage==null||hisPage=="")
			{
				if(document.URL.indexOf("?")==-1)
					document.location=document.URL+"?page="+a;
				else
					document.location=document.URL+"&page="+a;
			}
		else
			document.location=document.URL.replace("page="+getParam("page"),"page="+a);
	}
	

function getParamValue(strURL,strParam)
{
	if(strURL.indexOf("?")==-1)
		return ""; 
	ParamStr=strURL.substring(strURL.indexOf("?")+1,strURL.length);
	StrValue=ParamStr.split("&");
	for(i=0;i<StrValue.length;i++)
		{
			Param=StrValue[i].split("=")[0];
			value=StrValue[i].split("=")[1];
			if(Param==strParam)
				return value;
		}
}
