Subversion Repositories DevTools

Rev

Rev 3621 | Rev 3894 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3621 Rev 3892
Line 68... Line 68...
68
 
68
 
69
function MM_validateForm() { //v5.0
69
function MM_validateForm() { //v5.0
70
   var ii,p,pl,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
70
   var ii,p,pl,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
71
   var REresults;
71
   var REresults;
72
   var pass,passc;
72
   var pass,passc;
-
 
73
   var noAlert = false;
73
 
74
 
74
   // Other general validations
75
   // Other general validations
75
   var cleanStrRE = /^[0-9a-z_\.\(\)\-]+$/i;
76
   var cleanStrRE = /^[0-9a-z_\.\(\)\-]+$/i;
76
   var pkgRE = /^[a-z][a-z0-9_-]*[a-z0-9]$/i;
77
   var pkgRE = /^[a-z][a-z0-9_-]*[a-z0-9]$/i;
77
   var versionRE = /^[0-9a-z_\.\(\)\-]+$/i;
78
   var versionRE = /^[0-9a-z_\.\(\)\-]+$/i;
Line 292... Line 293...
292
         if (test.indexOf('isDomainName')!=-1) {
293
         if (test.indexOf('isDomainName')!=-1) {
293
            if (MM_findObj('FRdomainauth').checked) {
294
            if (MM_findObj('FRdomainauth').checked) {
294
               if (MM_findObj('FRdomain_name').value=="") errors += '- Domain Name is required.\n';
295
               if (MM_findObj('FRdomain_name').value=="") errors += '- Domain Name is required.\n';
295
            }
296
            }
296
         }
297
         }
-
 
298
      }
297
 
299
 
-
 
300
      if (test.indexOf('Silent')!=-1) {
-
 
301
        noAlert = true;
298
      }
302
      }
-
 
303
      
299
   }
304
   }
300
 
305
 
301
   if (errors) {
306
   if (errors) {
302
      alert('The following error(s) occurred:\n\n'+errors);
307
      if ( ! noAlert ) alert('The following error(s) occurred:\n\n'+errors);
303
      clickedButton=false;
308
      clickedButton=false;
304
   } else {
309
   } else {
305
      clickedButton=true;
310
      clickedButton=true;
306
   }
311
   }
307
   document.MM_returnValue = (errors == '');
312
   document.MM_returnValue = (errors == '');
-
 
313
   document.MM_error = errors;
308
 
314
 
309
   if (MM_findObj('ProgressBar') && document.MM_returnValue) MM_findObj('ProgressBar').style.visibility='visible';
315
   if (MM_findObj('ProgressBar') && document.MM_returnValue && !noAlert)
-
 
316
      MM_findObj('ProgressBar').style.visibility='visible';
310
}
317
}
311
 
318
 
312
function isChecked(boxName, buttonId) {
319
function isChecked(boxName, buttonId) {
313
  var formButton = document.getElementById(buttonId);
320
  var formButton = document.getElementById(buttonId);
314
  var boxes = document.getElementsByName(boxName);
321
  var boxes = document.getElementsByName(boxName);