String.prototype.trim = function()
{ return (this.replace(/^[\s\xA0]+/, “”).replace(/[\s\xA0]+$/, “”)) }
String.prototype.endsWith = function(str)
{ return (this.match(str + “$”) == str) }
String.prototype.startsWith = function(str)
{ return (this.match(”^” + str) == str) }
function getClientIdByEndsWith(strid)
{
var count = document.forms[0];
var i = 0;
var eleName;
var found = false;
[...]
