function newTicket(id) {
	location.href='/easyconsole.cfm?id='+id;
}

function PrintKB(kb_id,print) { 
	window.open('/easyconsole.cfm?page=kb_print&kb_id='+kb_id+'&print='+print, 'KBArticle', 'toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=650,height=450');
}

function notifyKB(kb_id,action) { 
	var winx = ((screen.width)/2)-175;
	var winy = ((screen.height)/2)-100;
	window.open('/easyconsole.cfm?page=kb_notify&print=1&kb_id='+kb_id+'&action='+action, 'KBNotify', 'toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=350,height=100,top='+winy+',left='+winx);
}

function filterAssets(id,page_id) {
	kbFilterForm.from_form.value='filterAssets';
	kbFilterForm.manufacturer_id.value=id;
	kbFilterForm.submit();
}

function toggleTicketFollowUpToggleOthers(trname,trgroup,trno,recordcount,startfrom) {	
	
	for (var i = 1; i <= recordcount; i++)
	{		
		a=trname+"_"+trgroup+"_"+i;
		//alert("[COUNT="+recordcount+"][TRNO="+trno+"]["+a+"]");
		b=eval("document.all."+a);				

		if (trno==i)
		{
			if (b.style.display=='table-header-group') 
			{
				if (b) b.style.display='none';
			}
			else
			{
				if (b) b.style.display='table-header-group';
			}
		}
		else
		{
			if (b) b.style.display='none';			 
		}
	}
}

function toggleTicketFollowUp(trname,trgroup,trno,recordcount,startfrom) {		
		a=trname+"_"+trgroup+"_"+trno;		
		b=eval("document.all."+a);			

		if (b.style.display=='table-header-group') 
		{
			if (b) b.style.display='none';
		}
		else
		{
			if (b) b.style.display='table-header-group';
		}
}

