var gGroupID;
var gPa1, gPa2, gPa3;

function CheckMenu(pid, fid, cid, tid) {

  gGroupID = pid;
  gPa1 = fid;
  gPa2 = cid;
  gPa3 = tid;

  if ( top.sWhoAmI == 'tFundASP')
  {
	  if (parent.PID != pid){
	    parent.PID=pid;
	    if (pid.toLowerCase().substr(0,2) =='wo') parent.left.location.replace('/w/menu/wtLeft_o.asp.htm');
	    if (pid.toLowerCase().substr(0,2) =='wp') parent.left.location.replace('/w/menu/wtLeft_p.asp.htm');
	    if (pid.toLowerCase().substr(0,2) =='wq') parent.left.location.replace('/w/menu/wtLeft_q.asp.htm');
	    if (pid.toLowerCase().substr(0,2) =='wr') parent.left.location.replace('/w/menu/wtLeft_r.asp.htm');
	    if (pid.toLowerCase().substr(0,2) =='ws') parent.left.location.replace('/w/menu/wtLeft_s.asp.htm');
	    if (pid.toLowerCase().substr(0,2) =='wt') parent.left.location.replace('/w/menu/wtLeft_t.asp.htm');
	    if (pid.toLowerCase().substr(0,2) =='wu') parent.left.location.replace('/w/menu/wtLeft_u.asp.htm');
	    if (pid.toLowerCase().substr(0,2) =='wv') parent.left.location.replace('/w/menu/wtLeft_v.asp.htm');
	    if (pid.toLowerCase().substr(0,2) =='ww') parent.left.location.replace('/w/menu/wtLeft_w.asp.htm');
	  }
	  if (fid != 'NA') parent.FID=fid;
	  if (cid != 'NA') parent.CID=cid;
	  if (tid != 'NA') parent.TID=tid;
  }
}
