/* Finds the index of the first occurence of item in the array, or -1 if not found */
Array.prototype.indexOf = function(item) {
	for (var i = 0; i < this.length; i++) {
		if (this[i] == item) {
			return i;
		}
	}
	return -1;
};

String.prototype.trim = function trim(str) { 
    str.replace(/^\s*/, '').replace(/\s*$/, ''); 
   return str;
} 

function getE(id)
	{
		return document.getElementById(id);
	}


