function stopErrors(){ return true; } window.onerror = stopErrors; function popupconsole(fieldname, fieldtype, qstring, fp_formindex) { document.forms['mainform'].fp_fieldnameforpopup.value=fieldname; document.forms['mainform'].fp_formindex.value=fp_formindex; var xsize = 350 var ysize = 130 var stylemode = "useadminstyles=true"; switch(fieldtype) { case 'ftp': xsize = 700 ysize = 410 break; case 'images': xsize = 615 ysize = 410 break; case 'colors': xsize = 440 ysize = 285 break; case 'imagesthumbnail': xsize = 605 ysize = 410 break; case 'wrappers': case 'themes': case 'styles': xsize = 450 ysize = 410 break; case 'date': xsize = 360 ysize = 325 break; case 'editor': stylemode = "useadminstyles=false"; //the popups need to be fresh when calling the editor - including the editor itself closepopups(); break; } eval(' if ((typeof(' + fieldtype + 'popup) != \'undefined\') && (!' + fieldtype + 'popup.closed)) { ' + fieldtype + 'popup.focus(); } else { ' + fieldtype + 'popup = window.open(\'?resolutionfile=preview.asp&resolutionpathname=enginewrapperspath&' + stylemode + '&pane_2=admin-ns_popup_' + fieldtype + '.dat' + qstring + '\',\'' + fieldtype + 'popup\',\'toolbar=no,status=no,scrollbars,resizable,width=' + xsize + ',height=' + ysize + ',top=100,left=100\'); } if ((typeof(' + fieldtype + 'popup) != \'undefined\') && (!' + fieldtype + 'popup.closed)) {' + fieldtype + 'popup.focus()};'); } function closepopups(){ if (typeof(colorspopup) != 'undefined'){if(!colorspopup.closed){colorspopup.close();}} if (typeof(pagespopup) != 'undefined'){if(!pagespopup.closed){pagespopup.close();}} if (typeof(panespopup) != 'undefined'){if(!panespopup.closed){panespopup.close();}} if (typeof(imagespopup) != 'undefined'){if(!imagespopup.closed){imagespopup.close();}} if (typeof(imagesthumbnailpopup) != 'undefined'){if(!imagesthumbnailpopup.closed){imagesthumbnailpopup.close();}} if (typeof(wrapperspopup) != 'undefined'){if(!wrapperspopup.closed){wrapperspopup.close();}} if (typeof(stylespopup) != 'undefined'){if(!stylespopup.closed){stylespopup.close();}} if (typeof(datepopup) != 'undefined'){if(!datepopup.closed){datepopup.close();}} if (typeof(urlpopup) != 'undefined'){if(!urlpopup.closed){urlpopup.close();}} if (typeof(editorpopup) != 'undefined'){if(!editorpopup.closed){editorpopup.close();}} if (typeof(themespopup) != 'undefined'){if(!themespopup.closed){themespopup.close();}} if (typeof(ftppopup) != 'undefined'){if(!ftppopup.closed){ftppopup.close();}} if (typeof(flashpopup) != 'undefined'){if(!flashpopup.closed){flashpopup.close();}} return; } function CreateWindow(url,name,thewidth,theheight){ if ((screen.width - thewidth) <= 0){thewidth = screen.width - 100}; if ((screen.height - theheight) <= 0){theheight = screen.height - 150}; var left = ((screen.width - thewidth)/2); var top = ((screen.height - theheight)/2); if (left < 0){left=0}; if (top < 0){top=0}; var msgWindow=window.open(url,name,"toolbar=no,directories=no,status=no,scrollbars,resizable,menubar=no,left=" + left + ",top=" + top + ",width=" + thewidth + ",height=" + theheight); if (!msgWindow.closed){ msgWindow.focus(); } return; } function masschecker(formname, checkboxnametoaffect, mode){ for (var i=0;i