Array.prototype.in_array_minus = function(search_term) {
  var i = this.length - 1;
  if (i >= 0) {
	 do {
		if (this[i] === search_term) {
		   return true;
		}
	 } while (i--);
  }
  return false;
}

function loadXMLDoc(dname) 
{
try //Internet Explorer
{
 xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); 
 xmlDoc.async=false; 
 xmlDoc.load(dname);
   return(xmlDoc);
}
catch(e)
{
 try //Firefox, Mozilla, Opera, etc.
 {
  xmlDoc=document.implementation.createDocument("","",null);
  xmlDoc.async=false;
  xmlDoc.load(dname);
  return(xmlDoc);
 }
 catch(e)
 {
  try //Google Chrome
  {
   var xmlhttp = new window.XMLHttpRequest();
   xmlhttp.open("GET",dname,false);
   xmlhttp.send(null);
   xmlDoc = xmlhttp.responseXML.documentElement;
   return(xmlDoc);
  }
  catch(e)
  {
   error=e.message;
  }
 }
}

}

