(ee){
try{
o=document.getElementById(_obj);
}catch(e){
return null;
}
}
return o;
}
}
function funEscapeAll(str){
var t = "&";
var s = str.split(t);
if(s.length<=0) return str;
for(var i=0; i<s.length; i++){
s[i] = funEscapeOne(s[i]);
}
return s.join(t);
}
function funEscapeOne(str){
var i = str.indexOf("=");
if(i==-1) return str;
var t = URLEncode(str.substr(i+1));
return str.substring(0, i+1)+t;
}
function URLEncode(str){
return encodeURIComponent(str);
/*
return escape(str).replace(/\+/g, "%2B").
replace(/\"/g,"%22").
replace(/\''/g, "%27").
replace(/\//g,"%2F");
*/
}
function funEscapeXML(content) {
if (content == undefined)
return "";
if (!content.length || !content.charAt)
content = new String(content);
var result = "";
var length = content.length;
for (var i = 0; i < length; i++) {
var ch = content.charAt(i);
switch (ch) {
case ''&'':
result += "&";
break;
case ''<'':
result += "<";
break;
case ''>'':
result += ">";
break;
case ''"'':
result += """;
break;
case ''\'''':
result += "''";
break;
default:
result += ch;
}
}
return result;
}
function funShow(_obj){
if(typeof(_obj)=="object")
_obj.style.visibility = "inherit";
else
$(_obj).style.visibility = "inherit";
}
function funHide(_obj){
if(typeof(_obj)=="object")
_obj.style.visibility = "hidden";
else
$(_obj).style.visibility = "hidden";
}
function Alert(str){
alert(str);
//window.status = str;
}
/*
使用例子:
function processRequest(htt