function request(paras){
var url = locationhref;
var paraString = urlsubstring(urlindexOf("?")+urllength)split("&");
var paraObj = {}
for (i=; j=paraString[i]; i++){
paraObj[jsubstring(jindexOf("="))toLowerCase()] = jsubstring(jindexOf("=")+jlength);
}
var returnValue = paraObj[parastoLowerCase()];
if(typeof(returnValue)=="undefined"){
return "";
}else{
return returnValue;
}
}
//如你给出的地址可以这样
var classid = request("classid");
var id = request("id");