anchor.diff:                      CARBON.showWarningDialog('<fmt:message key="whitespace.contains.webapp"/>');
                       validFileNames = false;
                   }
  -            } else if (document.webappUploadForm.warFileName[0].value != null) {
  +            } else if (document.webappUploadForm.warFileName[0].value) {
                 
   
                   for (var i=0; i<document.webappUploadForm.warFileName.length; i++) {
  
positive.code:                 }
              }
  
               if(document.webappUploadForm.version.value != null){
  
                   var appVersion =  document.webappUploadForm.version.value;
                   if(appVersion.indexOf("#")!=-1) {
  
negative.code:                      CARBON.showWarningDialog('<fmt:message key="whitespace.contains.version"/>');
                       validFileNames = false;
                   }
               } else if (document.webappUploadForm.version[0].value){
                   for (var i=0; i<document.webappUploadForm.version.length; i++) {
                       var appVersion =  document.webappUploadForm.version[i].value;
                       if(appVersion.indexOf("#")!=-1) {
  