发表时间:2006-4-6 18:31:00
function returnFactPage(newIndex)
{
var pageCount = document.getElementById("FactNameControl_divPageCount").innerHTML;
var newPage = "factindex="+newIndex;
var pattern = /factIndex="d*/img;
var url = window.***.toString();
var newurl = "";
if(url.toLowerCase().indexOf("factindex=") == -1)
{
if(url.toLowerCase().indexOf("?") == -1)
newurl = url + "?" + newPage;
else
newurl = url + "&" + newPage;
}
else
newurl = url.toLowerCase().replace(pattern,newPage);
window.navigate(newurl);
return false;
}