MessageBox example
- Improvement of window.confirm for IE

Custom:
Caption: BoxStyle:

Usage:

function kpMsgBox(caption, boxstyle, title, width, height)
- to display 'question box' with 'yes' and 'no' with default on 'no' you can call kpMsgBox('your question', 4 + 32 + 256); wich will return either 6 or 7.

return values
No action-1
OK1
Cancel2
Abort3
Retry4
Ignore5
Yes6
No7

caption - string
the caption of the message

boxstyle - int
When adding numbers to create a final value for the boxstyle argument, use only one number from each groupcolor.
OKOnly0Displays OK button only.
OKCancel1Displays OK and Cancel buttons.
AbortRetryIgnore2Displays Abort, Retry, and Ignore buttons.
YesNoCancel3Displays Yes, No, and Cancel buttons.
YesNo4Displays Yes and No buttons.
RetryCancel5Displays Retry and Cancel buttons.
Critical16Displays a critical Message icon.
Question32Displays Warning Query icon.
Exclamation64Displays Warning Message icon.
Information128Displays Information Message icon.
DefaultButton10First button is default.
DefaultButton2256Second button is default.
DefaultButton3512Third button is default.

title - string
the title of the message box

width - int
width in pixels

height - int
height in pixels