function CreateButton( idStr, imgDisabled, imgUp, imgDwn, nTopPos, nLeftPos, fnOnClick, strStatus ) { var strHTML; strHTML = "= 0 && nTopPos >= 0 ) strHTML += " style='position:absolute; top:" + nTopPos + ";left:" + nLeftPos + "'"; strHTML += " PERMANENT_DISABLED=0 ENABLED=0 TOPANCHOR=" + nTopPos + " ALT=''"; strHTML += " IMGDISABLED='" + imgDisabled + "'"; strHTML += " IMGUP='" + imgUp + "'"; strHTML += " IMGDWN='" + imgDwn + "'"; strHTML += " onMouseDown='SwapImgDwn(window.event)'"; strHTML += " onMouseUp='SwapImgUp(window.event.srcElement)'"; strHTML += " onMouseOut='SwapImgUp(window.event.srcElement); window.status=\" \"'"; if( strStatus != "" ) strHTML += " onMouseOver=window.status='" + strStatus + "'"; strHTML += " onClick='" + fnOnClick + "(window.event.srcElement)'>"; return strHTML; } function SwapImgUp( oImg ) { if( oImg.ENABLED == 1 ) oImg.src = oImg.IMGUP; } function SwapImgDwn( oEvent ) { var oImg = oEvent.srcElement; var nMouseButton = oEvent.button; if( nMouseButton == 1 ) { if( oImg.ENABLED == 1 ) oImg.src = oImg.IMGDWN; } } function EnableButton( idStr, strAltTxt ) { var str = "document.all." + idStr; var oImg = eval( str ); if( oImg ) { if( oImg.PERMANENT_DISABLED == 0 ) { oImg.src = oImg.IMGUP; oImg.ENABLED = 1; oImg.alt = strAltTxt; oImg.style.cursor = "hand"; } } } function DisableButton( idStr, bPermanent, strAlt ) { var str = "document.all." + idStr; var oImg = eval( str ); if( oImg ) { oImg.ENABLED = 0; oImg.src = oImg.IMGDISABLED; oImg.alt = strAlt; oImg.style.cursor = "default"; oImg.PERMANENT_DISABLED = bPermanent; } } function MoveButton( idStr ) { var str = "document.all." + idStr; var oImg = eval( str ); if( oImg ) { var nNewPos, nTopPos, nScrollTop; nTopPos = parseInt( oImg.TOPANCHOR ); nScrollTop = parseInt(document.body.scrollTop); nNewPos = nTopPos + nScrollTop; oImg.style.pixelTop = nNewPos; } } function CreateRealButton( strID, nBtnWd, nBtnHt, nTopPos, nLeftPos, fnOnclick, cAccessChar, strCaption, strCustomParam ) { var strHTML; strHTML = ""; else strHTML += ">" + strCaption + ""; return strHTML; } function EnableRealButton( strID, strAltTxt ) { var str = "document.all." + strID; var oBtn = eval( str ); if( oBtn ) { if( oBtn.PERMANENT_DISABLED == 0 ) { oBtn.title = strAltTxt; oBtn.style.cursor = "hand"; oBtn.disabled=false; oBtn.style.borderColor="#6699FF #0033CC #0033CC #6699FF"; } } } function DisableRealButton( strID, bPermanent, strAltTxt ) { var str = "document.all." + strID; var oBtn = eval( str ); if( oBtn ) { oBtn.title = strAltTxt; oBtn.style.cursor = "default"; oBtn.PERMANENT_DISABLED = bPermanent; oBtn.style.borderColor="#CCCCCC #666666 #666666 #CCCCCC"; oBtn.disabled=true; } } function CloseOnESC( ) { if( window.event.keyCode == 0x1B ) window.close( ) }