<!--
 /*==========================================================================
       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.
 ========================================================================= */
// -->
<!-- $Header: ibeCButton.js 115.2 2003/02/11 04:02:33 pleelalu noship $ -->

function buttonGen() {
     document.writeln('         <table BORDER="0" CELLSPACING="0" CELLPADDING="0" nowrap>');
     document.writeln('            <tr>');
     document.writeln('               <td rowspan="3" width="11"><img src="/OA_MEDIA/Group/Buttons/button_left.gif" width="11" height="21"></td>');
     document.writeln('               <td background="/OA_MEDIA/Group/Buttons/button_top.gif" height="2"></td>');
     document.writeln('               <td rowspan="3" width="11"><img src="/OA_MEDIA/Group/Buttons/button_right.gif" width="11" height="21"></td>');
     document.writeln('            </tr>');
     document.writeln('            <tr>');
     document.writeln('               <td nowrap>');
     document.writeln('                   <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" class="GPButton">');
     document.writeln('                      <tr><td ALIGN="center" VALIGN="top"  height="16" nowrap class=GPButtonText>');

     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] +'"><span class="GPButtonText">' + buttonGen.arguments[0] +'</span></A></TD></tr>');
        }
        else
        {
         document.writeln('                              <A  HREF="#" onClick=' + buttonGen.arguments[1] +'><span class="GPButtonText">' + buttonGen.arguments[0]+'</span></A></TD></tr>');
        }
       }
     document.writeln('                   </table>');
     document.writeln('               </td>');
     document.writeln('            </tr>');
     document.writeln('            <tr>');
     document.writeln('               <td background="/OA_MEDIA/Group/Buttons/button_bottom.gif" height="3"></td> </tr>');
     //document.writeln('            <tr><td class="OraBGGrayVeryDark" valign="TOP"><img 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');
}

