function ismaxlength(obj)
{
	var mlength=250;
	if (obj.getAttribute && obj.value.length>mlength)
	obj.value=obj.value.substring(0,mlength)
}

function displayLargeImage(img,width,height) {
	window.open(img, "enlargeImage", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,dependent=yes,width="+width+",height="+height)
}

function bigChair() {
	var showWindowTimer = setTimeout(showWindow,1000);
}

function getElementStyle(elem,style)
{
	var elem = document.getElementById(elem);
	if (elem.currentStyle)
	{
		var int = elem.currentStyle[style];
		int = int.replace(/px/g,"");
		return int;
	} else if (window.getComputedStyle)	{
		var compStyle = window.getComputedStyle(elem, "");
		var int = compStyle.getPropertyValue(style);
		int = int.replace(/px/g,"");
		return int;
	}
	return "";
}

function drop()
{
	i = getElementStyle("bigChair","top") -0;
	i=i+25;
	document.getElementById("bigChair").style.top=i + "px";
	if (i >= 70)
	{
		clearInterval(dropInterval);
		setTimeout(closeWindow,10000);
	}
}

function showWindow()
{
	document.getElementById("bigChair").style.display="block";
	dropInterval = setInterval(drop,10);
}

function closeWindow()
{
	document.getElementById("bigChair").style.display="none";
}

function highlightRow(row,bg,color)
{
	row.style.background = bg;
	row.style.color = color;
}
