/* begin Google Analytics tracking */
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-5474978-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
/* end Google Analytics tracking */
  
function ClearSearchBox(ThisElement,InitialValue){
//This function checks if the value of the element is that of the initial value. If so it sets the value to blank

	if (ThisElement.value == InitialValue)		
		ThisElement.value = "";
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function open_bte(url) {
	mywin = window.open(url,"win",'toolbar=1,location=0,directories=1,status=0,menubar=1,scrollbars=1,resizable=1,width=650,height=550');
}


 function xmlOpen(method, url, toSend, responseHandler)
 { 	 	
     if (window.XMLHttpRequest)
     {
         // browser has native support for XMLHttpRequest object
         req = new XMLHttpRequest();
     }
     else if (window.ActiveXObject)
     {
         // try XMLHTTP ActiveX (Internet Explorer) version
         req = new ActiveXObject("Microsoft.XMLHTTP");
     }
     
     if(req)
     {	 	
         req.onreadystatechange = responseHandler;
         req.open(method, url, true);
         req.setRequestHeader("content-type","application/x-www-form-urlencoded");
         req.send(toSend);
     }
     else
     {
         alert('Your browser does not seem to support XMLHttpRequest.');
     }
 } 
