//<!--

function fChPage(npge)
{
document.listform.CurrentPage.value=npge;
document.listform.submit();
return true;
}

function fSetSorting(sby,sdir)
{
document.listform.sby.value=sby; 
document.listform.sdir.value=sdir;
document.listform.CurrentPage.value=1;
document.listform.submit();
return true;
}

function fClear()
{
	window.status=''; return true;
}

function openWnd5(url, w, h)
{
	if (navigator.appName.indexOf('Explorer') >= 0) var wndHandle=window.open(url,'nwWin',' width='+w.toString()+', height='+h.toString()+', scrollbars=yes, toolbar=yes, menubar=yes, history=yes, resizable');
	else var wndHandle=window.open(url,'s','height='+h.toString()+',width='+w.toString()+',resizable,scrollbars=1,toolbar=1,menubar=1,history=1,titlebar=1');
}

function fURLOpen(URL)
{
	var w;
	w=window.open(URL,'Actions','toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=450');
	w.focus();
	return false;
}

function News(nID)
{
	window.open('/News/News.asp?NewsID='+nID,'News','toolbar=no,scrollbars=yes,resizable=yes,width=650,height=410');
	return false;
}
function ExecuteURL(sURL)
{
	sURL=sURL.toLowerCase();
	if ((sURL.indexOf('documshow') != -1)||(sURL.indexOf('documframe') != -1))
		window.open(sURL,'News','toolbar=no,scrollbars=yes,resizable=yes,width=650,height=410');
	else
		document.location.href=sURL;
}

function EndPageSay(sSay) { alert(sSay); }

function Ann(nID)
{
	window.open('/Announcements/Ann.asp?AnnID='+nID+'&amp;View=Yes','Announcements','toolbar=no,scrollbars=yes,resizable=yes,width=650,height=408');
	return false;
}

function YesNo_Click(sAsk)
{
	if (confirm(sAsk)) return true;
	return false;  
}

function fSelAll()
{
var frm =document.listform;
for (var i=0;i<frm.length;i++) {
	if (frm[i].name.indexOf('sch') !=-1) frm[i].checked = frm.chsetall.checked;
}
return true;
} 

function fSetInversion()
{
for (var i in document.listform) if (i.indexOf('sch') !=-1) if (document.listform[i].checked==true) document.listform[i].checked=false; else  document.listform[i].checked=true;
return true;
} 

//-->
