function viewProcessing(action, thisWin) 612{ 613 var bFrm = GetBForm(); 614 var aFrm, vals, input, chks, chkCount; 615 616 if ( document.body.className == 'articleView' ) 617 { 618 aFrm = getArticleForm(getArticleValues()); 619 if ( !thisWin ) { 620 NewWindow(action, aFrm); 621 } 622 else { 623 mainAction = aFrm.action; 624 aFrm.action = action; 625 aFrm.submit(); 626 } 627 } 628 else 629 { 630 var chkCount = 0; 631 var chks = document.getElementsByName('hdl'); 632 for ( var i=0; i < chks.length; i++ ) if ( chks[i].checked ) chkCount++; 633 634 if ( chkCount == 0 ) { 635 alert(translate('selectOneOrMoreDocs')); 636 } 637 else if ( chkCount > 100 ) { 638 alert(translate('selectMoreThanAllowed')); 639 } 640 else { 641 var fdn = bFrm.elements['usageAggregator']; 642 if(fdn && action.indexOf("ode/default.aspx")== -1){ 643 if ( action.indexOf('?') == -1 ){ 644 action += "?"; 645 }else{ 646 action += "&"; 647 } 648 action += "fdn=" + fdn.value; 649 } 650 if ( thisWin ) { 651 mainAction = bFrm.action; 652 doLinkSubmit(action); 653 } 654 else NewWindow(action, bFrm); 655 } 656 } 657}