<!--
 /*==========================================================================
       Copyright (c) 2000 Oracle Corporation, Redwood Shores, CA, USA
                          All rights reserved.
 ============================================================================
  FILENAME
     ibeCButton.js

  DESCRIPTION
     This is used to print the button which looks similar to BLAF UI. There is
     also a generic function which can be used to submit the form.

  HISTORY
     11/01/2002  makulkar   created.
     17/10/2003  Knachiap - ADA Change
     31/12/2003  Knachiap - 3156992 Moved ButtonText class into HREF 
 ========================================================================= */
// -->
<!-- $Header: ibeCButton.js 115.4 2003/12/31 07:26:13 knachiap ship $ -->

function buttonGen() {
     document.writeln('         <table summary="" BORDER="0" CELLSPACING="0" CELLPADDING="0" nowrap>');
     document.writeln('            <tr>');
     document.writeln('               <td rowspan="4" width="11"><img alt="" src="/OA_MEDIA/ibeBtnLeft.gif" width="11" height="21"></td>');
     document.writeln('               <td class="OraBGAccentVeryDark"  valign="TOP"><img alt="" src="/OA_MEDIA/ibeBtnStretch.gif" width="1" height="1"></td>');
     document.writeln('               <td rowspan="4" width="11"><img alt="" src="/OA_MEDIA/ibeBtnRight.gif" width="11" height="21"></td>');
     document.writeln('            </tr>');
     document.writeln('            <tr>');
     document.writeln('               <td nowrap>');
     document.writeln('                   <table summary="" WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" class="BUTTON">');
     document.writeln('                      <tr><td ALIGN="center" VALIGN="top"  height="18" nowrap class=buttonText>');

     var js=buttonGen.arguments[1];
     if (buttonGen.arguments[1]=="disabled")
      {
              document.writeln('                  <FONT class="DISABLEDBUTTONTEXT">' + buttonGen.arguments[0] +'</FONT></td></tr>');
	}
     else
      {
 	  if (js.indexOf("history")<0) 
        {
         document.writeln('                              <A  HREF="' + buttonGen.arguments[1] + '" NAME="' + buttonGen.arguments[0] +'" class="buttonText">' + buttonGen.arguments[0] +'</A></TD></tr>');
        }
        else
        {
         document.writeln('                              <A  HREF="#" onClick=' + buttonGen.arguments[1] +' class="buttonText">' + buttonGen.arguments[0]+'</A></TD></tr>');
        }
       }
     document.writeln('                   </table>');
     document.writeln('               </td>');
     document.writeln('            </tr>');
     document.writeln('            <tr>');
     document.writeln('               <td class="OraBGAccentVeryVeryDark"  valign="TOP"><img alt="" src="/OA_MEDIA/ibeBtnStretch.gif" width="1" height="1"></td> </tr>');
     document.writeln('            <tr><td class="OraBGGrayVeryDark" valign="TOP"><img alt="" src="/OA_MEDIA/ibeBtnStretch.gif" width="1" height="1"></td></tr>');
     document.writeln('         </table>');
}  // end buttonGen function


//submitForm function will accept the event and formname parameter.

function submitForm(event,formName)

{
  
	var windowForm = document.forms[formName];
  
	windowForm.event.name = event;
  
	//alert("name="+windowForm.event.name);
  
	windowForm.submit();
  
	return true;
}


function putNbsp ()
{
  document.writeln('&nbsp');
}

