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';
}

function showhideObj(strId) {
	if (getObj(strId).style.display == 'none') 
		showObj(strId); 
	else hideObj(strId);
}

function blinkImage(id,type,delay)
{
	if (!type)
		type='inline';
	if (!delay)
		delay=800;
	if (getObj(id).style.display == 'none' || getObj(id).style.display == '' || !getObj(id).style.display)
		getObj(id).style.display = type;
	else
		getObj(id).style.display = 'none';
	setTimeout('blinkImage(\''+id+'\',\''+type+'\',\''+delay+'\')',delay);
}

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;
}