var WIN_PROPS = "toolbar=no,menubar=no,location=no,directories=no,resizable=yes,scrollbars=yes,width=785,height=525,left=5,top=5";
reflect = function()
{
}

onLaunch = function(cd, tc, rt, accountId, status)
{
	var url =
	"/site/catCourseLaunch.jsp" +
	"?cd=" + cd +
	"&tc=" + tc +
	"&rt=" + rt +
	"&accountId=" + accountId +
	"&status=" + status;

	document.location = url;
}

descClick = function(e,cd,tc,rt)
{
	if(e.shiftKey && e.ctrlKey)
	{
		var params = 'resizable=yes,scrollbars=yes,status=yes,width=800,height=600';
		window.open("/support/editRule42.jsp?cd="+cd+"&tc="+tc+"&rt="+rt, "EDITDESC", params);
	}
}

onDescription = function(title,desc,cd,tc,rt,accountId)
{
	var params = 'resizable=yes,scrollbars=yes,status=no,width=450,height=350';
	window.open("/site/showDescription.jsp?description=" + desc + "&courseName=" + title + "&cd=" + cd + "&tc="+tc +"&rt="+rt +"&accountId=" + accountId, "CATDESC", params);
}

onPrinter = function()
{
	var frm = document.getElementById('doPrinterForm');
	frm.submit();
}

ajaxCourses = function(url, params)
{
	if(params == null || params == "undefined")
		params = "";
	
	if($("ceCourseList") != null)
	{
		$("ceCourseList").innerHTML = "Retreiving courses...";
		SimpleRequest("ceCourseList", url, "get", params);
	}
	else
	{
		document.location = url;
	}
}
