/**
 * This script is to handle the call to Apex checkbook and procurement tabs  
 * from the searchinfo.htm page and the data.htm page. Procurement tab is page 1 
 * and the Checkbook tab is page 8.
 * Steve Krumtum -- created on 12/29/09 and modified by slo
 * 
 */
 
function getParams() {
	var idx = document.URL.indexOf('?');
    var params = new Array();
   
	if (idx != -1) {
    var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
    params = pairs[0].split('=');
    }
      
    return params[1];
    }
     
       

function changeiframe() {
       pvName = getParams();  
           
       if (pvName == '1')
           {
       window.frames.ifrm.location = "http://wwodbexp:8080/apex/f?p=105:1";
           }
       else
           {
       window.frames.ifrm.location = "http://wwodbexp:8080/apex/f?p=105:8"; 
           }   
      }        
