Prototype & href

Hi

I am so puling my hair out. I like the prototype stuff and want to put the following code into a link - can anyone help

var win = new Window(Application.getNewId(), {className: “dialog”, width:350, height:400, zIndex: 100, resizable: true, title: “Sample window”, showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true})

win.getContent().innerHTML= “

Some test text.
”

win.setStatusBar(“Status bar info”);

win.showCenter();

Many many thanks in advance

Mark