function getObj(strId) {
	return document.getElementById(strId);
}
function trim(str) {
 var s = str.replace(/^(\s)*/, '');
 s = s.replace(/(\s)*$/, '');
 return s;
}
document.cookie = "screen_width=" + screen.width; 
document.cookie = "screen_height=" + screen.height; 
function showObj(strId) {
	document.getElementById(strId).style.display='block';
}
function hideObj(strId) {
	document.getElementById(strId).style.display='none';
}

Array.prototype.in_array = function(search_term) {
	var i = this.length;
	if (i > 0)
	{
		do
		{
			if (this[i] === search_term)
			{
				return true;
			}
		} while (i--);
	}
	return false;
}
