Majik Primer: MoI's Lighting Options and You!

 From:  dinos
5222.37 In reply to 5222.36 
Thanks Michael. That was quick!

But i'm getting an Unsafe javascript attempt exception accessing the frame.

Here is the code section:

code:
function AddClicked() {
	var dialog = moi.ui.createDialog('EditNameDialog.htm', '', moiWindow);
	dialog.htmlWindow.nameval = '';
	if (dialog.window.doModal() != -1) {
		if (dialog.window.dialogReturnValue != '') {
			var name = dialog.window.dialogReturnValue;
			themeData.themes[name] = themeGetCurrent();
			g_select.add(new Option(name, name, false, true), null);
			themeSaveThemes(name);
		}
	}
}


Any suggestions?