Array.prototype.search = function(value){for(var i=0;i<this.length;i++){if (this[i]===value){return i;}}return -1;}
Array.prototype.del=function(n){ if(n<0){return this;}else{return this.slice(0,n).concat(this.slice(n+1,this.length));}}
Array.prototype.has = function(value){for(var i=0;i<this.length;i++){if (this[i]===value){return true;}}return false;}
String.prototype.Trim=function(){return this.replace(/(^\s*)|(\s*$)/g, '');}
var $ = function(id){return document.getElementById(id);}
function isIE(){if(document.all){return true;}else{return false;}}
function isIE6(){return navigator.userAgent.indexOf('MSIE 6.0')>-1;}