Methinks you could use an md5 hash to insure a unique name for the gui control, then just use your object variables to point to it.
PHP Code:
temp.controlname = md5(timevar2);
new GuiWindowCtrl(temp.controlname) {
thiso.windowctrl = this;
// blah
}
this.windowctrl.visible = true;