function getXMLHTTP2() { 
		var xmlhttp=false;	
		try{
			xmlhttp=new XMLHttpRequest();
		}
		catch(e)	{		
			try{			
				xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
				try{
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch(e1){
					xmlhttp=false;
				}
			}
		}
		 	
		return xmlhttp;
    }

function estraetab(tb) {		
	
	var strURL="/home3/xtab.php?tb="+tb;
	var req = getXMLHTTP2();
	if (req) {
		
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				// only if "OK"
				if (req.status == 200) {
				document.getElementById('mtab').innerHTML=req.responseText;						
				} else {
					alert("There was a problem while using XMLHTTP:" + req.statusText + req.status);
				}
			}				
		}			
		req.open("GET", strURL, true);
		req.send(null);
	}		
}
function statab(box) {		
	
	var strURL="/home3/xbox.php?b="+box;
	var req = getXMLHTTP2();
	if (req) {
		
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				// only if "OK"
				if (req.status == 200) {						
				document.getElementById('stabox').innerHTML=req.responseText;						
				} else {
					alert("There was a problem while using XMLHTTP:" + req.statusText + req.status);
				}
			}				
		}			
		req.open("GET", strURL, true);
		req.send(null);
	}		
}
function MM_openBrWindow(theURL,winName) { 
  window.open(theURL,winName,"left=200,top=200,width=600,height=360,toolbar=no, location=no,status=yes,menubar=no,scrollbars=no,resizable=no");}

function MM_openBrWindow2(theURL,winName) { 
  window.open(theURL,winName,"left=200,top=200,width=545,height=545,toolbar=no, location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes");}

