home *** CD-ROM | disk | FTP | other *** search
- -- background: 2135 from stack: in
- -- bmap block id: 2492
- -- flags: 4000
- -- background id: 0
- -- name: IRS Form Background
- ----- HyperTalk script -----
-
-
- on openStack
- hide message box
- show menuBar
- pass openStack
- end openStack
-
- on mouseup
- Global Altering
- if the CommandKey=down and the shiftKey=down then
- Set UserLevel to 5
- put true into altering
- end if
- pass mouseup
- end mouseup
-
-
-
-
-
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=256 top=298 right=321 bottom=281
- -- title width / last selected line: 0
- -- icon id / first selected line: 1013 / 1013
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Next
- ----- HyperTalk script -----
- on mouseUp
- visual effect scroll left slowly
- go to next card
- end mouseUp
-
-
-
- -- part 9 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=228 top=298 right=321 bottom=254
- -- title width / last selected line: 0
- -- icon id / first selected line: 1014 / 1014
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Prev
- ----- HyperTalk script -----
- on mouseUp
- visual effect scroll right slowly
- go to prev card
- end mouseUp
-
-
-
- -- part 30 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=0 top=60 right=77 bottom=62
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Figure
- ----- HyperTalk script -----
- on mouseUp
- Set Cursor to 4
- set lockscreen to true
-
-
- set numberFormat to 0.00
- put card field "Wage Field"* Card field "Hours Field" into gross
- put the value of gross into card field "Gross Wage Field"
-
- put gross*.0715 into FICA
- Put the value of FICA into card field"FICA Field"
-
-
- Put card field"Union Dues Field" into Card Field"Union Dues 2 Field"
- Put card field"United Way Field" into Card Field"United Way 2 Field"
-
- if hilite of button id 6 then
- put value of 7.31 into FedAllowance
- Put value of 3.45 into StateExemption
- put "Daily" into Period
- if HiLite of button id 33 then
- put value of 7.70 into StateAllowance
- put "Single" into status
-
- else
- put value of 11.55 into StateAllowance
- put "Married" into status
- end if
- end if
-
- if hilite of button id 7 then
- Put "Weekly" into period
- put value of 36.54 into FedAllowance
- Put Value of 17.3 into StateExemption
- if HiLite of button id 33 then
- put "Single" into status
- put value of 38.45 into StateAllowance
-
- else
- put "Married" into status
- put value of 57.70 into StateAllowance
-
- end if
- end if
-
- if hilite of button id 8 then
- Put "BiWeekly" into Period
- put value of 73.08 into FedAllowance
- Put Value of 34.6 into StateExemption
- if HiLite of button id 33 then
- put "Single" into status
- put value of 76.90 into StateAllowance
-
- else
- put value of 115.4 into StateAllowance
- put "Married" into status
- end if
- end if
-
- if hilite of button id 9 then
- put value of 79.17 into FedAllowance
- Put Value of 37.5 into StateExemption
- put "SemiMonthly" into Period
- if HiLite of button id 33 then
- put value of 83.35 into StateAllowance
- put "Single" into status
- else
- put value of 125 into StateAllowance
- put "Married" into status
- end if
- end if
-
- if hilite of button id 11 then
- put value of 158.33 into FedAllowance
- Put Value of 75 into StateExemption
- put "Monthly" into Period
- if HiLite of button id 33 then
- put value of 166.7 into StateAllowance
- put "Single" into status
- else
- put value of 250 into StateAllowance
- put "Married" into status
- end if
- end if
-
-
- if hilite of button id 32 then
- put value of 1900 into FedAllowance
- Put Value of 900 into StateExemption
- put "Annually" into Period
- if HiLite of button id 33 then
- put value of 2000 into StateAllowance
- put "Single" into status
- else
- put value of 3000 into StateAllowance
- put "Married" into status
- end if
- end if
-
-
-
- put value of (gross-(Fedallowance* Card Field "Deduction field")) into FedTaxable
-
- Put Value of ((gross-StateAllowance)-(StateExemption* Card Field"Deduction Field")) into StateTaxable
-
- put false into done
- put value of 0 into x
- put value of 0 into StateTax
- Put Value of 0 into OldValue
- if StateTaxable<=0 then
- Put value of 0 into StateTaxable
- end if
- repeat until x=6 or done=true
- put value of x+1 into x
- Put Period&Status&x into Grab
- put the value of card field Grab of card "StateCard" into RetValue
- Put x&"a" into grate
- put card field grate of card "StateCard" into StateRate
- If StateTaxable<RetValue then
- Put StateTax+((StateTaxable-OldValue)*StateRate) into StateTax
- Put True into Done
- else
- Put StateTax+(StateRate*(RetValue-OldValue)) into StateTax
- end if
- Put value of OldValue into OlderValue
- Put RetValue into OldValue
- end repeat
- If Done=False then
- Put StateTax+((StateTaxable-OldValue)*.085) into StateTax
- end if
- Put Value of StateTax into Card Field "State Tax Field"
-
-
-
- put false into done
- put value of 0 into x
- put value of 0 into FedTax
- Put Value of 0 into OldValue
- if FedTaxable<=0 then
- Put value of 0 into FedTaxable
- end if
- repeat until x=5 or done=true
- put value of x+1 into x
- Put Period&Status&x into Grab
- Put x&"a" into grate
- put card field grate of card "FedCard" into FedRate
- put the value of card field Grab of card "FedCard" into RetValue
- If FedTaxable<RetValue then
- Put FedTax+((FedTaxable-OldValue)*FedRate) into FedTax
- Put True into Done
- if x=1 then
- Put the value of 0.00 into FedTax
- end if
- else
- Put FedTax+(FedRate*(RetValue-OldValue)) into FedTax
- if x=1 then
- Put the value of 0 into FedTax
- end if
- end if
- Put the value of RetValue into OldValue
- end repeat
-
- If done=false then
- Put FedTax+((FedTaxable-RetValue)*.385) into FedTax
- end if
- Put Value of FedTax into Card Field "Fed Tax Field"
-
-
-
-
-
-
- put gross-(FICA+Card Field"Fed Tax Field" +Card Field"State Tax Field"+Card Field"United Way Field" +card Field "Union Dues Field") into net
- Put the value of net into Card Field"Net wage Field"
-
- put gross-net into taxtotal
- put the value of TaxTotal into Card Field"Total Taxes Field"
- Set LockScreen to false
-
- end mouseUp
-
-
-
-
- -- part 33 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=0 top=42 right=59 bottom=61
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Add
- ----- HyperTalk script -----
- on mouseUp
- set lockscreen to true
- hide menubar
- Set Cursor to 4
- get the userlevel
- Put it into Previous
- set userlevel to 5
- DoMenu "Copy Card"
- DoMenu "Paste Card"
- Repeat with x=1 to number of card fields
- Put"" into Card Field x
- end repeat
- if hilite of card button"Lock Info"= true then
- Set Hilite of card button"Lock Info" to false
- send "mouseUp"to card button"Lock Info"
- end if
- Set userlevel to previous
- Set lockscreen to false
- show menubar
- end mouseUp
-
-
-
- -- part 34 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=0 top=23 right=41 bottom=61
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Remove
- ----- HyperTalk script -----
- on mouseUp
- hide menubar
- Set LockScreen to true
- get the userlevel
- Put it into Previous
- set userlevel to 5
-
- DoMenu "Delete Card"
- Go to previous card
- Set the Userlevel to previous
- show menubar
-
- end mouseUp
-
-
-
- -- part 35 (button)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=10 top=81 right=121 bottom=50
- -- title width / last selected line: 0
- -- icon id / first selected line: 1007 / 1007
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- doMenu"Print Report..."
- end mouseUp
-
-
-
- -- part 36 (button)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=9 top=124 right=164 bottom=50
- -- title width / last selected line: 0
- -- icon id / first selected line: 32670 / 32670
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- put 1 into x
- go to first card
- repeat while not the mouseclick
- if x≥(number of cards -2) then
- Go to First Card
- put 1 into x
- else
- go to next card
- put x+1 into x
- end if
-
- wait 5
- end repeat
-
- end mouseUp
-
-
-
- -- part 37 (button)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=9 top=167 right=206 bottom=50
- -- title width / last selected line: 0
- -- icon id / first selected line: 20186 / 20186
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- sort by card field "Last Name Field"
- end mouseUp
-
-
-
- -- part 38 (button)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=9 top=209 right=248 bottom=50
- -- title width / last selected line: 0
- -- icon id / first selected line: 27878 / 27878
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- Set LockScreen to true
- Put "" into Card Field"Search Field"
- Push this card
- If Visible of card field"Search Field" then
- set visible of card field "Search Field" to false
- else
- set visible of card field "Search Field" to true
- Put "" into Search
- go to first card
- repeat with x=2 to (number of cards-3)
- go to next card
- put Card Field"Last Name Field" into line x-1 of Search
- end repeat
- pop card
- Put Search into Card Field"Search Field"
-
- end if
-
- end mouseUp
-
-
-
-
-
- -- part 39 (button)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=9 top=251 right=290 bottom=50
- -- title width / last selected line: 0
- -- icon id / first selected line: 23078 / 23078
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- If Visible of card field"help" then
- set visible of card field "help" to false
- else
- set visible of card field "help" to true
- end if
-
- end mouseUp
-
-
-
- -- part 40 (button)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=9 top=293 right=332 bottom=50
- -- title width / last selected line: 0
- -- icon id / first selected line: 20098 / 20098
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Home Button
- ----- HyperTalk script -----
- on mouseUp
- visual effect iris close to black
- visual effect iris open to white
- visual effect dissolve
- go home
- end mouseUp
-
-