function getCookiesPbyName(s) {
var strcookie = document.cookie;
strcookie = strcookie.replace(/\ +/g, "");
strcookie = strcookie.replace(/[\r\n]/g, "");
var arrcookie = strcookie.split(";");
for (var i = 0; i < arrcookie.length; i++) {
var arr = arrcookie[i].split("=");
if (arr[0] == s) {
return arr[1];
}
}
return "";
}
function getUrlPByName(s) {
var url_ = location.href;
url_ = url_.replace(/\ +/g, "");
url_ = url_.replace(/[\r\n]/g, "");
var urlArr = url_.split("?");
if (urlArr.length > 1) {
var ParaArr = urlArr[1].split("&");
for (var i = 0; i < ParaArr.length; i++) {
var arr = ParaArr[i].split("=");
if (arr[0] == s) {
return arr[1];
}
}
return "";
} else {
return "";
}
}