var mymwLastSectID;
var mymwMenuTimer;
var w_newWidth;

function popwindow(url,dest,winwidth,winheight,resizable,winscroll) {
  var app = null;
  app = window.open(url,dest,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + winscroll + ",resizable=" + resizable + ",width=" + winwidth + ",height=" + winheight);
  if (navigator.appName != "Microsoft Internet Explorer") {  app.focus(); }
}

function setna(form, type, device) {
	if ((type.selectedIndex > 7) || (type.selectedIndex == 4) || (type.selectedIndex == 5)) {
		form.value='n/a';
	} else 	{
		if (form.value == 'n/a') form.value='';
	}	
	if (device.selectedIndex == 0) device.selectedIndex = 1;
}



function WM_toggle(id) {
  if (document.all){
    if(document.all[id].style.display == 'none'){
      document.all[id].style.display = '';
    } else {
      document.all[id].style.display = 'none';
    }
  } else if (document.getElementById){
    if(document.getElementById(id).style.display == 'none'){
      document.getElementById(id).style.display = 'block';
    } else {
      document.getElementById(id).style.display = 'none';
    }
  } else if(document.layers) {
      if(parseInt(id + 1)){
	  ditem = id + 1;
      } else {
	  ditem = document.WM.hirelist.names[id];
      }
      if(document.WM.hirelist.expandos[ditem].clip.bottom == 0) {
	     document.WM.hirelist.expandos[ditem].clip.bottom = document.WM.hirelist.heights[ditem];
      } else {
	  document.WM.hirelist.expandos[ditem].clip.bottom = 0;
      }
      WM_align();
  }
}

function WM_align() {
    var i,j,stupid_netscape_array_infinate_loop_error;
    stupid_netscape_array_infinate_loop_error = document.WM.hirelist.expandos.length;
    for(i=0; i<stupid_netscape_array_infinate_loop_error; i++) {
		j = i + 1;
		if(document.WM.hirelist.expandos[j]){
	    	if(document.layers) {
				document.WM.hirelist.expandos[j].top = document.WM.hirelist.expandos[i].top + document.WM.hirelist.expandos[i].clip.bottom;
	   		}
		}
    }
}

function WM_initialize_toolbar(){
    if(document.layers) {
		for(i=0; i<document.layers['container'].document.layers.length; i++){
	    	document.WM.hirelist.expandos[i] = document.layers['container'].document.layers[i];
	    	document.WM.hirelist.names[document.layers['container'].document.layers[i].name] = i;
	    	document.WM.hirelist.heights[i] = document.WM.hirelist.expandos[i].clip.bottom;
		}
		for (p=0;p<document.WM.hirelist.expandos.length;p=p+2){
	    	WM_toggle(p);
		}
		document.layers['container'].visibility = 'visible';
    } else if (document.all){
		for(i = 0; i < document.all('container').all.length; i++){
		    document.all('container').all[i].style.position = 'relative';
		    if(document.all('container').all[i].className == 'menu'){
			document.all('container').all[i].style.display = 'none';
		    }
		}
		document.all('container').style.visibility = 'visible';
    } else if (document.getElementsByTagName && document.getElementById){
		var contained = document.getElementById('container').getElementsByTagName('div');
		for(i = 0; i < contained.length; i++){
		    contained[i].style.position = 'relative';
		    if(contained[i].getAttribute('class') == 'menu'){
			contained[i].style.display = 'none';
		    }
		}
		document.getElementById('container').style.visibility = 'visible';
    }
}



function WM_imageToggle(daImage, src1, src2, netscape_container){
      var objStr,obj;
      // Check to make sure that images are supported in the DOM.
 	  myImage = document.images[daImage];
      if(document.layers){
          myImage = document.layers['container'].document.layers[netscape_container].document.images[daImage];
      }
      if(document.images){
        // Check to see whether you are using a name, number, or object
          if(myImage.src == src1){
   	  	myImage.src = src2;
          } else {
    	  	myImage.src = src1;
          }
      }
    }

// Add the selected items from the source to destination list
function addSrcToDestList(){
	destList = window.document.forms["custom"].destList;
	srcList = window.document.forms["custom"].srcList;
	var len = destList.length;
	for(var i = 0; i < srcList.length; i++){				
		if ((srcList.options[i] != null) && (srcList.options[i].selected)){
			//Check if this value already exist in the destList or not
			//if not then add it otherwise do not add it.
			var found = false;					
			if (srcList.options[i].text.substring(0,2) == "--") found = true;
					
			for(var count = 0; count < len; count++) {
				if (destList.options[count] != null) {
					if (srcList.options[i].text == destList.options[count].text) {
						found = true;
						break;
					}							
				}
			}
			if (found != true) {										
				destList.options[len] = new Option(srcList.options[i].text, srcList.options[i].value);						
				len++;
			}
		}
	}
}

// Deletes from the destination list.
function deleteFromDestList() {
	var destList  = window.document.forms["custom"].destList;
	var len = destList.options.length;
	for(var i = (len-1); i >= 0; i--) {
		if ((destList.options[i] != null) && (destList.options[i].selected == true)) destList.options[i] = null;
	}
}

function Moveup() {
	dbox = window.document.forms["custom"].destList;
	for(var i = 0; i < dbox.options.length; i++) {
		if (dbox.options[i].selected && dbox.options[i] != "" && dbox.options[i] != dbox.options[0]) {
			var tmpval = dbox.options[i].value;
			var tmpval2 = dbox.options[i].text;
			dbox.options[i].value = dbox.options[i - 1].value;
			dbox.options[i].text = dbox.options[i - 1].text
			dbox.options[i-1].value = tmpval;
			dbox.options[i-1].text = tmpval2;
			dbox.options[i-1].selected = "1";
			dbox.options[i].selected = "";
		}
	}
}

function Movedown() {
	var lastselected = 0; 
	ebox = window.document.forms["custom"].destList;

	for(var i = ebox.options.length-1; i > -1; i--) {
		if (ebox.options[i].selected && ebox.options[i] != "" && ebox.options[i+1] != ebox.options[ebox.options.length]) {			
			var tmpval = ebox.options[i].value;
			var tmpval2 = ebox.options[i].text;
			ebox.options[i].value = ebox.options[i+1].value;
			ebox.options[i].text = ebox.options[i+1].text
			ebox.options[i+1].value = tmpval;
			ebox.options[i+1].text = tmpval2;
			ebox.options[i+1].selected = "1";
			ebox.options[i].selected = "";
		}
	}

}
		
function SelectList() {
	ebox = window.document.forms[1].destList;
	for(var i = 0; i < ebox.length; i++) {	ebox.options[i].selected = "1";	}
}




function SetMyMWImage(location,imgindex) {	
	if(document.images && imgindex != "" ) 	{
		window.document.sdesc.src = location + "mymw" + imgindex + ".gif";
	} else {
		window.document.sdesc.src = location + "n.gif";
	}
}

function SetMyMWC(location) {	
	selbox = window.document.forms["mymw"].col;
	var imgindex = selbox.options[selbox.options.selectedIndex].value;
	SetMyMWImage(location,"c_" + imgindex);
}

function SetMyMWHelp(location) {	
	selbox = window.document.forms["mymw"].sid;
	var imgindex = selbox.options[selbox.options.selectedIndex].value;
	if(document.images && imgindex != "" ) {
		SetMyMWImage(location, "h_" + imgindex);
	} else {
		SetMyMWImage(location, "");
	}
}

function SetMyMWT(location,imgindex){ SetMyMWImage(location,"t_" + imgindex); }

// Add the selected item from the source to destination list
function mwaddSrcToDestList(srcList, destList) {
	var len = destList.length;
	for(var i = 0; i < srcList.length; i++)	{
		if ((srcList.options[i] != null) && (srcList.options[i].selected)) {
			// Check if this value already exist in the destList or not
			// if not then add it otherwise do not add it.
			var found = false;
			if (srcList.options[i].text.substring(0,2) == "--") found = true;

			for(var count = 0; count < len; count++) {
				if (destList.options[count] != null) {
					if (srcList.options[i].text == destList.options[count].text) {
						found = true;
						break;
					}
				}
			}
			if (found != true) {	//alert(srcList.options[i].value);
				destList.options[len] = new Option(srcList.options[i].text, srcList.options[i].value);
				len++;
			}
		}
	}
}

// Deletes from the destination list.
function mwdeleteFromDestList(destList)	{
	var len = destList.options.length;
	for(var i = (len-1); i >= 0; i--) {
		if ((destList.options[i] != null) && (destList.options[i].selected ==true)) {
			destList.options[i] = null;
		}
	}
}

function mwSelectList(strList1,strList2) {
	for(var i = 0; i < strList1.length; i++) { strList1.options[i].selected = "1"; }
	for(var i = 0; i < strList2.length; i++) { strList2.options[i].selected = "1"; }
}

function nuSetNA(type,value,vendor,device,freq) {
	if ((type.selectedIndex == 1)) 	{
		value.value='n/a';
	} else {
		vendor.selectedIndex = 0;			
		if (value.value == 'n/a') value.value='';
	}
	SetDefaults(device,freq);
}
	
function paSetNA(type,value) {
	if ((type.selectedIndex == 6) || (type.selectedIndex == 7) || (type.selectedIndex == 9)) {
		value.value='n/a';
	} else {
		if (value.value == 'n/a') value.value='';
	}
}

function SetDefaults(device, freq) {
	if (device.selectedIndex == 0) {
		device.selectedIndex = 1;
	}
	if (freq.selectedIndex == 0) {
		freq.selectedIndex = 6;
	}
}

function SetNewsDefaults(device) {
	if (device.selectedIndex == 0) device.selectedIndex = 1;
}

function SetPortfolio(portfolio) {
	if (portfolio.selectedIndex != 0) portfolio.selectedIndex = 0;
}				

function verifyselect(selectfield, selectform) {
	var idx = selectfield.selectedIndex;
	var val = selectfield.options[idx].value;
	if (val > 0) selectfield.form.submit();
}

function comparatortab(sTab) {
	window.document.forms["DisplaySearch"].sp.value=sTab;
	window.document.forms["DisplaySearch"].submit();
}   

function customsearchtab(sTab) {
	window.document.forms["frmReport"].grouptab.value=sTab;
	window.document.forms["frmReport"].submit();
}   

function checkpagesize() {
  if (navigator.appName.indexOf("Microsoft") != -1) {
    w_newWidth=document.body.clientWidth;
  }else{
    w_newWidth=window.innerWidth;
  }
  document.cookie = "pagewidth=" + w_newWidth;
}

function fnCountMultipleSelects(listID,DisplayElemId)
{
  var DisplayText = "";
  var ListItElem = document.getElementById(listID);
  var DisplayCountElem = document.getElementById(DisplayElemId);
  var count = 0; 
  var AllSelected = false;

  for (var i = 0; i < ListItElem.length; i++) { 
     if (ListItElem.options[i].selected) {
        if (i==0) {
            AllSelected = true;
            break;
        }
        count++;
     }
  }
  
  if (AllSelected != true) {
     if (count==0) {
        DisplayText = "No selections made";
     } else if(count==1) {
        DisplayText = "1 selection made";
     } else {
        DisplayText = count + " selections made";
     }
  } else {
     DisplayText  = "All classes selected";
  }
  DisplayCountElem.innerHTML = "<b>" + DisplayText + "</b>";
}

function fnShowMyMWMenu(oLink,iSectID) {
	var sOutput, oMenu, xPos, yPos, PageWidth;

	
	oMenu = new fnGetObj("MyMWMENUSEL");
	if (oMenu.style.visibility != "visible" || mymwLastSectID != iSectID) {
		mymwLastSectID = iSectID;

		sOutput = "&nbsp;<nobr><b>Remove Section?</b></nobr><br>";
		sOutput += "<a href='javascript:void(0);' onClick='fnMyMWRemove(" + iSectID + ");' class='MyMWMENU'  onMouseOver='fnMaintainMyMWMenu();' onMouseOut='fnClearMyMWMenu();'>Remove</a>";
		sOutput += "<a href='javascript:fnHideMyMWMenu();' class='MyMWMENU' onMouseOver='fnMaintainMyMWMenu();' onMouseOut='fnClearMyMWMenu();'>Cancel</a>";
		
		var aPosition = fnFindPosition(oLink);				
		oMenu.obj.innerHTML = sOutput;		
		oMenu.style.top = aPosition[1] + 13;		
		oMenu.style.left = aPosition[0] - 100;					
		oMenu.style.visibility = "visible";
	} else {
		oMenu.style.visibility = "hidden";		
	}
	if (mymwMenuTimer) clearTimeout(mymwMenuTimer);
	mymwMenuTimer = setTimeout("fnHideMyMWMenu()",2000);
}

function fnMaintainMyMWMenu() {
	if (mymwMenuTimer) clearTimeout(mymwMenuTimer);
}

function fnClearMyMWMenu() {
	if (mymwMenuTimer) clearTimeout(mymwMenuTimer);
	mymwMenuTimer = setTimeout("fnHideMyMWMenu()",600);
}

function fnHideMyMWMenu() {
	var oMenu = new fnGetObj("MyMWMENUSEL");
	oMenu.style.visibility = "hidden";
}

function fnMyMWRemove(iSectID) {
	fnHideMyMWMenu();
	var oSect = new fnGetObj("Item" + iSectID);
	oSect.style.display = "none";	
	fnLoadXMLSansCallback("m.w?lp=hmy&sp=m&a=dc&c=" + iSectID);
}

function fnHideShowMyMWSectionContents(oLink,isectID) {
	var oContents = document.getElementById("myMWContent"+ isectID);
	if (oContents.style.display == "none") {
		oLink.className ="myMWHI_ICN";
		oContents.style.display = "block";
		fnLoadXMLSansCallback("m.w?lp=my&sp=m&c=" + isectID + "&a=s");
	} else {
		oContents.style.display = "none";
		oLink.className ="myMWSH_ICN";
		fnLoadXMLSansCallback("m.w?lp=my&sp=m&c=" + isectID + "&a=h");
	}
}

function fnLoadXMLSansCallback(url) {
    url += "&slhhnf=t";
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.open("GET", url, true);
        req.send(null);
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.open("GET", url, true);
            req.send();
        }
    }
}

function fnGetObj(name) {   
  if (document.all)  {
	this.obj = document.all(name);
	this.style = document.all(name).style;
  } else if (document.getElementById) {	
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  } else  if (document.layers) {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function fnFindPosition( oLink ) {
  if( oLink.offsetParent ) {
    for( var posX = 0, posY = 0; oLink.offsetParent; oLink = oLink.offsetParent ) {
      posX += oLink.offsetLeft;
      posY += oLink.offsetTop;
    }
    return [ posX, posY ];
  } else {
    return [ oLink.x, oLink.y ];
  }
}

//SpeedView
var bpTID;
var bpNB;
var bpLH;
var bpY = 0;
var bpT=0;
var bpI = true;


function bpTrackMouse(e) {
	if (!e) var e = window.Event||window.event;
	if(e.pageY) bpY = e.pageY;
}

function bpShow(obj) {  
	if (bpTID) clearTimeout(bpTID);
	var xLoc = 0;
	var yLoc = 0;
	var ymouse = 0;
	var PageHeight;
	var PageWidth;
	var OverlapMargin = 0;
	var Rows = 0;
	var ScrollLeft=0;
	
	sHR = obj.href;	
	if (sHR.search("lp=S&qv=") > 0) {
		sID = sHR.substr(sHR.search("qv=")+3);
	}else if (sHR.search("lp=Search&ticker=") > 0) {	    
		sID = sHR.substr(sHR.search("ker=")+4);
	}else if (sHR.search("lp=GetStory&id") > 0) {	    
		sID = sHR.substr(sHR.search("id=")+3) + "&sp=n";
	}else if (sHR.search("lp=GetStory&NewsID") > 0) {	    
		sID = sHR.substr(sHR.search("ID=")+3) + "&sp=n";
	}else if (sHR.search("Ratings&qv=") > 0) {		    
		    sID = sHR.substr(sHR.search("qv=")+3);		    
	}else if (sHR.search("lp=mpp&Page=DC30") > 0) {	    
		sID = "3271";		
	}else if (sHR.search("lp=mpp&Page=DCSP") > 0) {	    
		sID = "3211";		
	}else if (sHR.search("lp=mpp&Page=DCNY") > 0) {	    
		sID = "3041";		
	}else if (sHR.search("lp=mpp&Page=DCAM") > 0) {	    
		sID = "62801";	
	}else if (sHR.search("lp=mpp&Page=DCNQ") > 0) {	    
		sID = "1051";		
	}
	if (sID != "") {
	  	var TT = new bpGetObj("bpln");
		TT.style.visibility = "hidden";
		var TTFrame = new bpGetObj("bplnf");
   		TTFrame.style.visibility = "hidden";
		TTFrame.style.display = "none";

		if (navigator.appName.indexOf("Microsoft") != -1) {
			PageWidth=document.body.clientWidth;
			ymouse = window.event.clientY; 
			OverlapMargin = 2;
		}else{
			PageWidth=window.innerWidth;
			if (bpY) ymouse = bpY;						
		}
		xLoc=bpFindPosX(obj);

		yLoc=bpFindPosY(obj);
		bpT = yLoc;
		bpLH = obj.offsetHeight;
		ScrollLeft = document.body.scrollLeft;		

		if ((ymouse>0) && ((ymouse-OverlapMargin) > yLoc + bpLH)) { 
			Rows = Math.ceil((ymouse-yLoc)/bpLH)-1;
			if (Rows < 1) Rows = 1;
			yLoc+=bpLH*Rows;
		}

		if (xLoc-ScrollLeft > PageWidth-312) xLoc=ScrollLeft+PageWidth-312;
		if (xLoc<5) xLox=5;
		TT.style.left = xLoc + "px";	
		TT.style.height="auto";
		

		TT.obj.innerHTML = "<table width=100% height=50><tr><th valign=center><font size=4><b>Loading...</b></font></th></tr></table>";
	
		if (navigator.appName.indexOf("Microsoft") != -1) {
			PageHeight=document.body.clientHeight;
		} else {
			PageHeight=window.innerHeight;
		}
		bpNB = yLoc;
		yLoc = bpGetTTTop(40,yLoc);

		if(yLoc < bpT ) yLoc-=10;
		TT.style.top = yLoc;
		bpTID = setTimeout("bpShowContents('m.w?lp=bp&id=" + sID + "&slhhnf=t')",600);	
	}
}

function bpShowContents(strURL) {  
  	var TT = new bpGetObj("bpln");
  	TT.style.visibility = "visible";
	TT.style.display = "block";
	bpLoadContent(strURL); 
}

function bpUpdateContents() {
    var nH=0;
    var nW=300;
    var nT=0;

    if (req.readyState == 4 && req.status == 200) {
	var TT = new bpGetObj("bpln");
	if (TT.style.visibility == "visible") {
		TT.style.visibility = "hidden";   
		TT.obj.innerHTML =  req.responseText;
		TT.style.width=300;
		TT.style.height="auto";
		if (document.all) {
        		nH = document.all['bpln'].offsetHeight;
		} else {
			nH = document.getElementById('bpln').offsetHeight;				
			nW=297;
		}

		nT = bpGetTTTop(nH,bpNB); 
		TT.style.top = nT + "px";	
		TT.style.visibility = "visible";
		TT.style.display = "block";
		if (bpI) {
			var TTFrame = new bpGetObj("bplnf");
			TTFrame.style.display = "block";
			TTFrame.style.top = TT.style.top = "px";
			TTFrame.style.left = TT.style.left + "px";
			TTFrame.style.width = nW + "px";
			TTFrame.style.height = (nH-5) + "px";				
			TTFrame.style.visibility = "visible";
		}
	}					
        
    }
}

function bpHide() {
   if (bpTID) clearTimeout(bpTID);
   var TT = new bpGetObj("bpln");
   TT.style.visibility = "hidden";   
   var TTFrame = new bpGetObj("bplnf");
   TTFrame.style.visibility = "hidden";
   TTFrame.style.display = "none";
}

function bpLoadContent(url) {
    bpTID=0;
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.onreadystatechange = bpUpdateContents;
        req.open("GET", url, true);
        req.send(null);
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = bpUpdateContents;
            req.open("GET", url, true);
            req.send();
        }
    }
}

function bpGetObj(name) { 
	  if (document.getElementById) {
	  	this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	  }
	  else if (document.all) {
		this.obj = document.all[name];
		this.style = document.all[name].style;
	  }
	  else if (document.layers) {
	   	this.obj = document.layers[name];
	   	this.style = document.layers[name];
	  }
}

function bpFindPosX(obj) {
	var cL = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			cL += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)	cL += obj.x;
	return cL;
}

function bpFindPosY(obj) {
	var cT = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			cT += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)	cT += obj.y;
	return cT;
}

function bpGetTTTop(TTHeight,TTTop) {
	var scrT=0;
	var winH=0;
	var Output=0;	
	if (window.innerHeight)	{
		scrT = window.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop) {
		scrT = document.documentElement.scrollTop;
	} else if (document.body) {
		scrT = document.body.scrollTop;
	}
	
	if (window.innerHeight) {
		winH=window.innerHeight;
	} else if (document.all) {
		winH=document.body.clientHeight;
	}
	
	if(((TTHeight + TTTop) > (scrT + winH))&&((TTTop) > (scrT + winH/2))) {
		Output = bpT-TTHeight-5;
	} else {
		Output = TTTop+bpLH;
	}	
	return(Output);
}

function bpListener() {
 var sHR="";
 var sID="";
 if ((window.XMLHttpRequest)||(window.ActiveXObject)) {
	 for (i=0; i < document.links.length; i++) {
	        sHR=document.links[i].href;
		if (sHR.search("lp=S&qv=") > 0) {
		    sID = sHR.substr(sHR.search("lp=S&qv=")+8);
		    if (sID.search("&") <= 0) {
			    document.links[i].onmouseover = function() {bpShow(this);}
			    document.links[i].onmouseout = function() {bpHide();}
	            }	
		}else if (sHR.search("lp=Search&ticker=") > 0) {	    
			document.links[i].onmouseover = function() {bpShow(this);}
			document.links[i].onmouseout = function() {bpHide();}
	        }else if (sHR.search("lp=GetStory") > 0) {	    
			document.links[i].onmouseover = function() {bpShow(this);}
			document.links[i].onmouseout = function() {bpHide();}
		}else if (sHR.search("Ratings&qv=") > 0) {		    
		    sID = sHR.substr(sHR.search("Ratings&qv=")+11);		    
		    if (sID.search("&") <= 0) {
			    document.links[i].onmouseover = function() {bpShow(this);}
			    document.links[i].onmouseout = function() {bpHide();}
	            }	
		}else if (sHR.search("lp=mpp&Page=DC30") > 0) {	    
			document.links[i].onmouseover = function() {bpShow(this);}
			document.links[i].onmouseout = function() {bpHide();}
		}else if (sHR.search("lp=mpp&Page=DCSP") > 0) {	    
			document.links[i].onmouseover = function() {bpShow(this);}
			document.links[i].onmouseout = function() {bpHide();}
		}else if (sHR.search("lp=mpp&Page=DCNY") > 0) {	    
			document.links[i].onmouseover = function() {bpShow(this);}
			document.links[i].onmouseout = function() {bpHide();}
		}else if (sHR.search("lp=mpp&Page=DCAM") > 0) {	    
			document.links[i].onmouseover = function() {bpShow(this);}
			document.links[i].onmouseout = function() {bpHide();}
		}else if (sHR.search("lp=mpp&Page=DCNQ") > 0) {	    
			document.links[i].onmouseover = function() {bpShow(this);}
			document.links[i].onmouseout = function() {bpHide();}
	        }
	 }
	if (navigator.appName.indexOf("Microsoft") == -1) {
		document.captureEvents(Event.MOUSEMOVE)
		document.onmousemove = bpTrackMouse;
	}

	version=0
	if (navigator.appVersion.indexOf("MSIE")!=-1){
		temp=navigator.appVersion.split("MSIE")
		version=parseFloat(temp[1])
		if (version<=5.5) bpI = false;
	}
  }
}

if (top!=self) top.location.replace(location.href); 

function bpTrapError(msg, URI, ln) {return true;}
window.onerror = bpTrapError;


function fnRefreshMyMWSection(isectID) {
    fnLoadRefreshXML("m.w?lp=my&sp=u&c=" + isectID + "&a=s");  
}

function fnRefreshGenMWSection(isectID) {
    fnLoadRefreshXML("m.w?lp=my&sp=u&a=s&gen=" + isectID);  
}

function fnLoadRefreshXML(url) {
    url += "&slhhnf=t";
    if (window.XMLHttpRequest) { // branch for native XMLHttpRequest object
        req = new XMLHttpRequest();
        req.onreadystatechange = fnReceiveRefreshStatus;
        req.open("GET", url, true);
        req.send(null);
    } 
    else if (window.ActiveXObject) { // branch for IE/Windows ActiveX version
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = fnReceiveRefreshStatus;
            req.open("GET", url, true);
            req.send();
        }
    }
}

function fnReceiveRefreshStatus() {
    if(req.readyState==4) {
      	if(req.status==200) {
         	strResult = req.responseText;	

		var delimPos = strResult.indexOf("|");
		var divId = strResult.substring(0,delimPos);
		var strContent = strResult.substring(delimPos + 1); 

 	 	var TargetedDiv = new fnGetObj(divId);
	 	TargetedDiv.obj.innerHTML = strContent; 
      	}	
    }
}

