rendered paste bodyfunction planIn(stepname){
fm = new JsFrame();
overlay = new GreyBox();
overlay.addRow("Stap naam",fm.TN(stepname));
overlay.addRow("Begin datum",fm.INPUT({'type':'text','name':'begindate'}));
overlay.addRow("Eind datum",fm.INPUT({'type':'text','name':'eindatum'}));
this.check = fm.INPUT({'type':'checkbox','name':'check','checked':'true'});
this.checkname ="kevin";
var self = this;
this.check.onclick = function(e){
self.handleClick(e);
}
//fm.AttachEvent(this.check,"click",planIn.prototype.handleClick);
overlay.addRow("Volledige dagen",this.check);
overlay.addRow("Begin uur",fm.INPUT({'type':'text','name':'beginuur'}));
overlay.addRow("Eind uur",fm.INPUT({'type':'text','name':'beginuur'}));
//check =
overlay.setForm("Add","index.php?pt=projects&m=steps&p=list");
overlay.show('Plan in');
}
planIn.prototype.handleClick = function(e){
alert(this.checkname);
}