
// funkce pro datagrid

	function linkInItem (column)
	{
		if (column.className == 'item') column.className = 'hilited';
	}

	function linkOutItem (column)
	{
		if (column.className == 'hilited') column.className = 'item';
	}

	function linkInAlter (column)
	{
		if (column.className == 'alter') column.className = 'hilited';
	}

	function linkOutAlter (column)
	{
		if (column.className == 'hilited') column.className = 'alter';
	} 


	function go ( uri )
	{
		self.location.href = uri;
	}
	
	function go_top ( uri )
	{
		top.location.href = uri;
	}
	
function go_modwin ( uri, winname )
{
	aw = screen.availWidth;
	ah = screen.availHeight;
	
	width = aw-40;
	height = ah-80;
	
	xpos = (aw - width)/2;
	ypos = (ah - height)/2 - 30;
	
	window.open(uri, winname, "width=" + width + ",height=" + height + ",left=" + xpos + ",top=" + ypos + ",scrollbars=1,menubar=1,status=1,toolbar=1,resizable=1").focus();
}

function go_nabidka_lang ( idnabidka, lang )
{
	uri = "FrontNabidka.aspx?idnabidka=" + idnabidka + "&lang=" + lang;
	
	aw = screen.availWidth;
	ah = screen.availHeight;
	
	width = 640;
	height = ah-130;
	
	xpos = (aw - width)/2;
	ypos = (ah - height)/2 - (130 - 10)/2;
	
	window.open(uri, "nabidka", "width=" + width + ",height=" + height + ",left=" + xpos + ",top=" + ypos + ",scrollbars=1,menubar=1,status=1,resizable=1").focus();
}

function go_nabidka ( idnabidka )
{
	uri = "FrontNabidka.aspx?idnabidka=" + idnabidka;
	
	aw = screen.availWidth;
	ah = screen.availHeight;
	
	width = 640;
	height = ah-130;
	
	xpos = (aw - width)/2;
	ypos = (ah - height)/2 - (130 - 10)/2;
	
	window.open(uri, "nabidka", "width=" + width + ",height=" + height + ",left=" + xpos + ",top=" + ypos + ",scrollbars=1,menubar=1,status=1,resizable=1").focus();
}

function go_realitka ( idrealitka, lang )
{
	uri = "FrontRealitka.aspx?idrealitka=" + idrealitka + "&lang=" + lang;
	
	aw = screen.availWidth;
	ah = screen.availHeight;
	
	width = 640;
	height = 350;
	
	xpos = (aw - width)/2;
	ypos = (ah - height)/2 - (130 - 10)/2;
	
	window.open(uri, "nabidka", "width=" + width + ",height=" + height + ",left=" + xpos + ",top=" + ypos + ",scrollbars=1,menubar=1,status=1,resizable=1").focus();
}

function go_odbornik ( idodbornik, lang )
{
	uri = "FrontOdbornik.aspx?idodbornik=" + idodbornik + "&lang=" + lang;
	
	aw = screen.availWidth;
	ah = screen.availHeight;
	
	width = 640;
	height = 500;
	
	xpos = (aw - width)/2;
	ypos = (ah - height)/2 - (130 - 10)/2;
	
	window.open(uri, "idodbornik", "width=" + width + ",height=" + height + ",left=" + xpos + ",top=" + ypos + ",scrollbars=1,menubar=1,status=1,resizable=1").focus();
}

function go_asis_odbornik ( idodbornik, lang )
{
	uri = "FrontAsisOdbornik.aspx?idodbornik=" + idodbornik + "&lang=" + lang;
	
	aw = screen.availWidth;
	ah = screen.availHeight;
	
	width = 640;
	height = 500;
	
	xpos = (aw - width)/2;
	ypos = (ah - height)/2 - (130 - 10)/2;
	
	window.open(uri, "idodbornik", "width=" + width + ",height=" + height + ",left=" + xpos + ",top=" + ypos + ",scrollbars=1,menubar=1,status=1,resizable=1").focus();
}