$(document).ready(function () {
	
	
	rowid = geturlparam("objektnr");
	if(rowid > 0)
	{
    top.mainFrame.bottom.$('#listtable tr:even').css({'background-color' : '#E7E7E7', 'font-weight' : 'normal'});
	top.mainFrame.bottom.$('#listtable tr:odd').css({'background-color' : 'white', 'font-weight' : 'normal'});
	top.mainFrame.bottom.$("#"+rowid).css({'background-color' : '#C1CCCC', 'font-weight' : 'bolder'});
	}
});
function geturlparam(name)
{
	var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
	if(results)
	{
	return results[1] || 0;
	}
}

function higlightrow(rowid)
{
	
	top.mainFrame.bottom.$('#listtable tr:even').css({'background-color' : '#E7E7E7', 'font-weight' : 'normal'});
	top.mainFrame.bottom.$('#listtable tr:odd').css({'background-color' : 'white', 'font-weight' : 'normal'});
	top.mainFrame.bottom.$("#"+rowid).css({'background-color' : '#C1CCCC', 'font-weight' : 'bolder'});
	
}
function higlightrowNext(rowid)
{
	
	top.mainFrame.bottom.$('#listtable tr:even').css({'background-color' : '#E7E7E7', 'font-weight' : 'normal'});
	top.mainFrame.bottom.$('#listtable tr:odd').css({'background-color' : 'white', 'font-weight' : 'normal'});
	top.mainFrame.bottom.$("#"+rowid).next('tr').css({'background-color' : '#C1CCCC', 'font-weight' : 'bolder'});
	
}
function higlightrowPrev(rowid)
{
	
	top.mainFrame.bottom.$('#listtable tr:even').css({'background-color' : '#E7E7E7', 'font-weight' : 'normal'});
	top.mainFrame.bottom.$('#listtable tr:odd').css({'background-color' : 'white', 'font-weight' : 'normal'});
	top.mainFrame.bottom.$("#"+rowid).prev('tr').css({'background-color' : '#C1CCCC', 'font-weight' : 'bolder'});
	
}