window.onload = function () 
{
	var x = document.getElementsByTagName('label');
	for (var i=0;i<x.length;i++)
	{
		x[i].onmouseover	= function(){this.className = 'labelIn';}
		x[i].onmouseout		= function(){this.className = '';}
	}

	var t = document.getElementsByTagName('input');
	for (var i=0;i<t.length;i++)
	{
		if(t[i].getAttribute("type") == 'text' || t[i].getAttribute("type") == 'password')
		{
			t[i].onfocus	= function(){this.style.backgroundColor = '#FAF0E3';}
			t[i].onfocus	= function(){this.style.borderColor = '#c1272d';}
			t[i].onblur		= function(){this.style.backgroundColor = '#F4F4F4';}
			t[i].onblur		= function(){this.style.borderColor = '#9ba5ab';}
		}
	}

	var t = document.getElementsByTagName('select');
	for (var i=0;i<t.length;i++)
	{
		t[i].onfocus	= function(){this.style.backgroundColor = '#FAF0E3';}
			t[i].onfocus	= function(){this.style.borderColor = '#c1272d';}
			t[i].onblur		= function(){this.style.backgroundColor = '#F4F4F4';}
			t[i].onblur		= function(){this.style.borderColor = '#9ba5ab';}
	}

	var t = document.getElementsByTagName('textarea');
	for (var i=0;i<t.length;i++)
	{
		t[i].onfocus	= function(){this.style.backgroundColor = '#FAF0E3';}
		t[i].onfocus	= function(){this.style.borderColor = '#c1272d';}
		t[i].onblur		= function(){this.style.backgroundColor = '#F4F4F4';}
		t[i].onblur		= function(){this.style.borderColor = '#9ba5ab';}
	}	
}

function displayRow(rowid, img){
	 if (document.getElementById(rowid).style.display == ''){
		document.getElementById(rowid).style.display = "none";
	 }
	 else {
		document.getElementById(rowid).style.display = "";		
	 }
	
}
