var param;
var pageID;

function renderControl(parameter,id)
{
	param = parameter;
	pageID = id;
	cbBildungsangebote.Callback(parameter,id);
}

function ChangePrintLink()
{
	var hyperlink = document.getElementById('ctl00_HL_PrintTop');
	var hyperlink2 = document.getElementById('ctl00_hl_PrintText');
	var myhref = hyperlink.href;
	
	switch(param)
	{
		case "lehrplan":
			hyperlink.setAttribute('href',myhref + '&lehrplan=true&print=true');	
			hyperlink2.setAttribute('href',myhref + '&lehrplan=true&print=true');
			break;
		case "lehrganginfos":
			hyperlink.href = window.location.pathname + '?PageID=' + pageID + '&print=true';			
			hyperlink2.href = window.location.pathname + '?PageID=' + pageID + '&print=true';
			break;
		case "referenten":
		    hyperlink.href = window.location.pathname + '?PageID=' + pageID + '&referenten=true&print=true';			
			hyperlink2.href = window.location.pathname + '?PageID=' + pageID + '&referenten=true&print=true';
			break;
		case "referentID":
		    hyperlink.href = window.location.pathname + '?PageID=' + pageID + '&referenten=true&print=true';			
			hyperlink2.href = window.location.pathname + '?PageID=' + pageID + '&referenten=true&print=true';
			break;
		case "termine":
		    hyperlink.href = window.location.pathname + '?PageID=' + pageID + '&termine=true&print=true';			
			hyperlink2.href = window.location.pathname + '?PageID=' + pageID + '&termine=true&print=true';
			break;   	
	}	
}