/*================================================================================*/
/*                                                                                */
/*        BW2Technologies.Web.JScript.Framework.Inputs (Alpha V1.0.0.0)           */
/*                                                                                */
/*              Copyright © 2006-2010 by BW2Technologies (HP. Lassnig)            */
/*                           mail to : hansi@lassnig.ch                           */
/*                                                                                */
/*================================================================================*/


/*================================================================================*/
/* <Function> Set Style of BW2-InputControls </Function>
/*================================================================================*/
function __bw2SetButtonImage(strObject, nType, strImage, strImageLeft, strImageMiddle, strImageRight) {
         try {
             /*--- NoImage Button ---*/
             if (nType == 0) {
             
             /*--- Image Button ---*/
             } else if (nType == 1) {
                __bw2GetElementById(strObject + '_I').background = strImage;
             
             /*--- Image Button mit 3-Bildern ---*/
             } else if (nType == 2) {
                __bw2GetElementById(strObject + '_IL').style.backgroundImage = 'url(' + strImageLeft + ')';
                __bw2GetElementById(strObject + '_IM').style.backgroundImage = 'url(' + strImageMiddle + ')';
                __bw2GetElementById(strObject + '_IR').style.backgroundImage = 'url(' + strImageRight + ')';
             } 

             var oB = __bw2GetElementById(strObject); 

             if (_fFox) {
                oB.style.cursor = 'pointer'; 
             } else {
                oB.style.cursor = 'hand';
             }
         } catch (ex) {
             alert('__bw2SetButtonImage : ' + ex.message);
         }
}

/*--------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------*/