resizeContentSize = function()
{
	$("contentTable").style.height = (HxLib.WindowEx.getWindowInnerHeight() * 0.8).toString() + "px";	
}

function categorylink_onclick(categoryOID)
{			
	//var srvRequest = new HxLib.WebRequest();
	//srvRequest.get("tutorials.php?cmd=tutByCat&coid=1", categoryLink_onWebRequestCompleted);
	$("tutFrame").src = "tutorials.php?cmd=tutByCat&coid=" + categoryOID;	
}

function categoryLink_onWebRequestCompleted(content)
{
	/*var tutorials = eval(content);	
	var currentRow = 0;
	var table = new HxLib.HtmlGrid("grid", 0, 0, 0);
	table.setColumnCount(2);
	
	var row = table.newRow("grid-header", HxLib.HAlign.Left, HxLib.VAlign.Middle, 1);
	row.cells[0] = new HxLib.Cell("Title","grid-cell");
	row.cells[1] = new HxLib.Cell("Author","grid-cell");		
	table.rows[currentRow] = row;
		
	for(var i = 0; i < tutorials.length; i++)
	{
		row = table.newRow();
		row.cells[0] = new HxLib.Cell("<div onclick=\"tutoriallink_onclick('" + 
			tutorials[i].resPath +"')\">" + tutorials[i].title + "</div>", "grid-cell");
		row.cells[1] = new HxLib.Cell(tutorials[i].author,"grid-cell");		
		table.rows[++currentRow] = row;
	}
		
	$("tutorialListPane").innerHTML = table.render() + 
		"<iframe id='tutFrame'></iframe>";
	*/
	//$("iframe")	
}

function tutoriallink_onclick(srcPath)
{
	$("tutFrame").src=srcPath;
}