
//determine which page to go to based on button user pressed.
function nextPage(f, sBtnName)
{
   		
    switch (sBtnName){
		
        case 'btnSearch':												
                f.ResetPagingControl.value="False"; 		
                GLnavigateWithForm(f,"SearchPostBack");
                break;
         case 'btnHeader':	
                GLnavigateWithForm(f,"HeaderNavigate");
                break;
         case 'btnHeaderPostBack':
				GLnavigateWithForm(f,"HeaderPostBack");
				break;
         case 'btnExposure':	
                GLnavigateWithForm(f,"Exposure");	
                break;         
         case 'btnLoss':				
                GLnavigateWithForm(f,"Loss");				
                break;
         case 'btnLossTotal':	
                GLnavigateWithForm(f,"LossTotal");	
                break;
         case 'btnICR':				
                GLnavigateWithForm(f,"ICR");				
                break;				
         case 'btnPrint':
               GLnavigateWithForm(f,"Print");				
                break;       			 
         case 'btnLogout':	
                GLnavigateWithForm(f,"Logout");
                break;
          case 'btnLogin':	
                GLnavigateWithForm(f,"Login");
                break;
         case 'btnWCSTAT':	
				document.forms(0).updWCSTAT.value = "true";
                GLnavigateWithForm(f,"WCSTAT");
                break;
         case 'btnCreateWCSTAT':	
			   if (null == document.forms(0).ChkId){
					alert("Cannot create a WCSTAT file without at least a USR/submission being selected.");	
				}else{		
				
					GLpopUpNavigateWithWidthHeightCenteredModal("CreateWCSTAT", "WCSTATDownload",600,300);					
				}
                break;
          case 'btnNewSearch':	          		 		
                GLnavigateWithForm(f,"NewSearch");
                break;
          case 'btnHeaderSubmit':
				GLnavigateWithForm(f,"HeaderSubmit");
                break;
          case 'btnDisc_HardCopy':
				GLnavigateWithForm(f,"Disc_HardCopy");
                break;                
          default:
				GLnavigateWithForm(f,"Search");
                break;
                
        }		
}


