//<script LANGUAGE="JavaScript">
<!--
function rwkClose()
//================================================================
// FUNCTION
//
//================================================================
{
				 window.close();
}
function rwkReturn (szzAddress, bzzNewPage)
//================================================================
// FUNCTION
//
//================================================================
{
		try
		{
				if (bzzNewPage == true)
				{
				    window.open(szzAddress);          //Open URL in New Window
				}
				else
				{
				    window.open(szzAddress, '_self');      //Open URL in current Window
				}
		}
		catch (err)
		{
        rwkErr('Function rwkReturn ',err.description);
		}
}
function rwkWaitToShow (lzzdelay)
//================================================================
// FUNCTION   -  rwkWaitToShow
// PARAMETERS -  lzzdelay - number of seconds to delay
//                          before re- showing the button
//               NB it doesn't work with the button name
//                  passed as a parameter - probably because
//                  it is a recursive function call!!
// Causes a delay before re-displaying the passed Button ID
//================================================================
{
	 try
	 {
   if (lzzdelay > 1)
			{
				 setTimeout("rwkWaitToShow(1)",3000);
	    }
			else
			{
	       document.getElementById("RowToHide").style.display = '';
			}
	 }
	 catch(err)
	 {
	    rwkErr('Waiting to Show Button ' + szzButtonToHide ,err.description);
	 }
}
function rwkPrintPage ()
//================================================================
// Function  - rwkPrintPage
// Process   - Will hide the Print Button - (nb this could be a whole row)
//             call the Print
//             run the Wait to show - which will re-show the hidden button
//             (code basically found on a PayPal print page)
//================================================================
{
		try
		{
		    document.getElementById("RowToHide").style.display = 'none';
				window.print();
		    eval("rwkWaitToShow(2)");
		}
		catch (err)
		{
	      rwkErr('Printing from button ', err.description);
		}
}
//</script>