Confirmation popup

Confirmation popup

  
I was wondering how I could make a popup window just like the one in the sample espace but with a yes and no button with two different kind of actions behind it.
To do this you need to use an unexcaped expression at the end of the page with something like this:
<script>
function AskQuestion(){
if (window.confirm("Turn Left?") == true) {
document.all("wtLinkLeft").click();
} else {
document.all("wtLinkRight").click();
}
return false;
}
document.all("wtButton1").onclick=AskQuestion;
</script>
I got it to work with this code:

"<script>
function AskQuestion(){
if (window.confirm(""U gaat nu een bericht versturen, weet u het zeker!"") == true) {
document.all(""wtButton2"").click();
} else {
document.all(""wtRefresh"").click();
}
return false;
}
document.all(""wtSendButton1"").onclick=AskQuestion;
</script>"