
function printWindow( printUrl )
{
    var windowFeatures = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";

    MyPrintWindow = window.open(printUrl, "printWindow", windowFeatures );
    MyPrintWindow.focus();
    
    // ignore the anchor click.
    return false;
}


function excelWindow( printUrl )
{
    var windowFeatures = "toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes";

    MyPrintWindow = window.open(printUrl, "excelWindow", windowFeatures );
    MyPrintWindow.focus();
    
    // ignore the anchor click.
    return false;
}

function showRxDeaMessage()
{
	new Ajax.Updater(
		'rxDeaMessage', '/rx/rxDeaMessage.jsp',
		{onComplete: Effect.Appear('rxDeaMessage')}
	);
}

function showRxDeaMessage2(custNk, custGk)
{
	new Ajax.Updater(
		'rxDeaMessage', '/rx/rxDeaMessage.jsp?custNk=' + custNk + '&custGk=' + custGk,
		{onComplete: Effect.Appear('rxDeaMessage')}
	);
}

function hideRxDeaMessage()
{
	Effect.Fade('rxDeaMessage');
}

function $FA(field) {
      if (field == null)
            return new Array();
      else if (!field.length)
            return new Array(field);
      else
            return field;
}

