function rollOnTh(obj)
{
	obj.className='thHover';
}

function rollOffTh(obj,clName)
{
	if(!clName)
		clName='th';
	obj.className=clName;
}
function sortfields(field, sortMeth)
{
    document.getElementById('orderField').value=field;
    document.getElementById('sortMethod').value=sortMeth;
    doSubmit();
}
function showReceipt(id)
{
    var width=350;
    var height=550;
    var left = parseInt((screen.availWidth/2) - (width/2));
	var top = parseInt((screen.availHeight/2) - (height/2));
	var windowFeatures = "width=" + width + ",height=" + height +
	",status,resizable,left=" + left + ",top=" + top +
	"screenX=" + left + ",screenY=" + top;

    window.open("receipt.php?id="+id, "editWindow", windowFeatures)
}
function trOn(obj)
{
    obj.className='hlRow';
}
function trOff(obj,clName)
{
    obj.className=clName;
}
function goToPage(page)
{
    document.getElementById('page').value=page;
    document.filterform.submit();
}
function doSubmit()
{
    document.getElementById('page').value='1';
    document.filterform.submit();
}
function rollOnPagenum(obj)
{
   	obj.className='pages pageHover';
}
function rollOffPagenum(obj)
{
   	obj.className='pages';
}