var Ismozilla = (typeof document.implementation!= ' undefined ') && (typeof Document.implementation.createDocument!= ' undefined ') && (typeof htmldocument!= ' undefined ');
var isie = window. ActiveXObject? True:false;
var Isfirefox = (Navigator.userAgent.toLowerCase (). IndexOf ("Firefox")!=-1);
var Issafari = (Navigator.userAgent.toLowerCase (). IndexOf ("Safari")!=-1);
var Isopera = (Navigator.userAgent.toLowerCase (). IndexOf ("opera")!=-1);
String.prototype.htmlEncode = function () {
Return This.replace (/&/g, ' & '). Replace (/"/g, ' ""). Replace (/</g, ' < '). Replace (/>/g, ' > ');
}
String.prototype.trim = function () {
Return This.replace (/^s*|s*$/g, "");
}
var Global = new Object ();
Global.fixevent = function (e) {
var evt = (typeof e = "undefined")? Window.event:e;
return evt;
}
Global.srcelement = function (e) {
if (typeof e = = "undefined") e = window.event;
var src = document.all? E.srcelement:e.target;
return SRC;
}
Global.tablerowindex = function (tr) {
if (Isie) {
return tr.rowindex;
} else {
Table = Tr.parentNode.parentNode;
for (i = 0; i < table.rows.length i++) {
& nbsp; if (table.rows[i] = = TR) {
return i;
break;
}
}
}
}