VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form frmTellAFriend 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "Tell A Friend Button"
   ClientHeight    =   3675
   ClientLeft      =   45
   ClientTop       =   285
   ClientWidth     =   6240
   BeginProperty Font 
      Name            =   "Tahoma"
      Size            =   8.25
      Charset         =   204
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3675
   ScaleWidth      =   6240
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdClose 
      Caption         =   "Save and Close"
      Default         =   -1  'True
      Height          =   375
      Left            =   4800
      TabIndex        =   0
      Top             =   3120
      Width           =   1335
   End
   Begin VB.TextBox txtImage 
      Height          =   315
      Left            =   1200
      TabIndex        =   3
      Top             =   1320
      Width           =   4095
   End
   Begin VB.CommandButton cmdBrowseImage 
      Caption         =   "Browse"
      Height          =   315
      Left            =   5400
      TabIndex        =   4
      Top             =   1320
      Width           =   735
   End
   Begin VB.TextBox txtURLshow 
      Height          =   315
      Left            =   1200
      TabIndex        =   7
      Top             =   2160
      Width           =   4095
   End
   Begin VB.TextBox txtWidth 
      Height          =   315
      Left            =   1200
      TabIndex        =   8
      Top             =   2685
      Width           =   735
   End
   Begin VB.TextBox txtHeight 
      Height          =   315
      Left            =   3120
      TabIndex        =   9
      Top             =   2685
      Width           =   735
   End
   Begin VB.CommandButton cmdHelp 
      Caption         =   "Video Help"
      Height          =   700
      Left            =   5280
      MaskColor       =   &H00FF00FF&
      Picture         =   "frmTellAFriend.frx":0000
      Style           =   1  'Graphical
      TabIndex        =   1
      ToolTipText     =   "Help on current step"
      Top             =   120
      UseMaskColor    =   -1  'True
      Visible         =   0   'False
      Width           =   870
   End
   Begin VB.TextBox txtImageOver 
      Height          =   315
      Left            =   1200
      TabIndex        =   5
      Top             =   1680
      Width           =   4095
   End
   Begin VB.TextBox txtCaption 
      Height          =   315
      Left            =   1200
      TabIndex        =   2
      Top             =   960
      Width           =   4095
   End
   Begin VB.CommandButton cmdBrowseImageOver 
      Caption         =   "Browse"
      Height          =   315
      Left            =   5400
      TabIndex        =   6
      Top             =   1680
      Width           =   735
   End
   Begin MSComDlg.CommonDialog dlgButtonImageBrowse 
      Left            =   120
      Top             =   3000
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      CancelError     =   -1  'True
      DialogTitle     =   "Use Bitmap Image. Max. Size 20x40. Background Color 0,128,128"
      Filter          =   "Picture Files|*.bmp"
   End
   Begin VB.Label Label8 
      Caption         =   "Over Image:"
      Height          =   255
      Left            =   120
      TabIndex        =   18
      Top             =   1680
      Width           =   975
   End
   Begin VB.Label Label7 
      AutoSize        =   -1  'True
      Caption         =   "URL to show:"
      Height          =   195
      Left            =   120
      TabIndex        =   17
      Top             =   2205
      Width           =   960
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "Popup Size:"
      Height          =   195
      Left            =   120
      TabIndex        =   16
      Top             =   2730
      Width           =   840
   End
   Begin VB.Label Label5 
      Caption         =   "width"
      Height          =   255
      Left            =   2040
      TabIndex        =   15
      Top             =   2730
      Width           =   495
   End
   Begin VB.Label Label6 
      Caption         =   "height"
      Height          =   255
      Left            =   3960
      TabIndex        =   14
      Top             =   2730
      Width           =   495
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "Image:"
      Height          =   195
      Left            =   120
      TabIndex        =   13
      Top             =   1320
      Width           =   510
   End
   Begin VB.Label Label2 
      Caption         =   "Caption:"
      Height          =   255
      Left            =   120
      TabIndex        =   12
      Top             =   960
      Width           =   735
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "You can set up Tell A Friend Button"
      Height          =   195
      Left            =   120
      TabIndex        =   11
      Top             =   240
      Width           =   2520
   End
   Begin VB.Label Label27 
      AutoSize        =   -1  'True
      Caption         =   "(optional)"
      BeginProperty Font 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   204
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   120
      TabIndex        =   10
      Top             =   600
      Width           =   840
   End
End
Attribute VB_Name = "frmTellAFriend"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdBrowseImage_Click()
    On Error GoTo ErrHandler
    dlgButtonImageBrowse.CancelError = True
    dlgButtonImageBrowse.FileName = App.Path & "\Icons\noname"
    dlgButtonImageBrowse.ShowOpen
    txtImage.Text = dlgButtonImageBrowse.FileName
    If txtImage.Text = App.Path & "\Icons\noname.bmp" Then
        txtImage.Text = ""
    End If
    Exit Sub
ErrHandler:
    If Err.Number <> cdlCancel Then
        MsgBox Err.Description, vbExclamation
    End If
End Sub

Private Sub cmdBrowseImageOver_Click()
    On Error GoTo ErrHandler
    dlgButtonImageBrowse.CancelError = True
    dlgButtonImageBrowse.FileName = App.Path & "\Icons\noname"
    dlgButtonImageBrowse.ShowOpen
    txtImageOver.Text = dlgButtonImageBrowse.FileName
    If txtImageOver.Text = App.Path & "\Icons\noname.bmp" Then
        txtImageOver.Text = ""
    End If
    Exit Sub
ErrHandler:
    If Err.Number <> cdlCancel Then
        MsgBox Err.Description, vbExclamation
    End If

End Sub

Private Sub cmdClose_Click()
    Me.Hide
End Sub

Private Sub cmdHelp_Click()
    frmMain.ShowHelp 13
End Sub
