
function setPointer(theRow, thePointerColor){
	if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {return false;}
	if (typeof(document.getElementsByTagName) != 'undefined') {var theCells = theRow.getElementsByTagName('td');}
	else if (typeof(theRow.cells) != 'undefined') {var theCells = theRow.cells;}
	else {return false;}
	var rowCellsCnt  = theCells.length;
	for (var c = 0; c < rowCellsCnt; c++) {theCells[c].style.backgroundColor = thePointerColor;}
	return true;
}
            
function SetCookie(cookieName,cookieValue,nDays) 
{
	var today = new Date();
	
	var expire = new Date();
	
	if (nDays==null || nDays==0) nDays=1; 
	
	expire.setTime(today.getTime() + 3600000 * 24 * nDays); 
	
	document.cookie = cookieName + "=" + escape(cookieValue) + "; expires = " + expire.toGMTString();
}
		
$(document).ready(function(){
	
	if ($("input, textarea, select"))
	{
		$("input, textarea, select").focus(function () 
		{
			// $(this).css('border','1px solid #7E7E7E');
			
			$(this).css('border','1px solid #C00');
		});
		
		$("input, textarea, select").blur(function () 
		{
			// $(this).css('border','1px solid #CCCCCC');
			
			$(this).css('border','1px solid #DDD');
		});
	}
})
