function getQuery(name)
{
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r!=null) return unescape(r[2]); return null;
}
alert(getQuery('actiontype'));
//取得页面名称的正则表达式
window.location.href.match(/.+//([^?]*)/)[1];
alert(window.location.href.match(///([^/?/]*)(/?|$)/)[1])