  if (top.location != self.location) {
    top.location.replace(self.location);           // pop to top
  }


function xmlhttpPost(strURL) {  
  
  // Set graphic  
  document.getElementById("contentMenu").innerHTML = '<img src="http://www.columbia.edu/cu/lweb/images/icons/searching.gif" alt="Searching..."/>';  
  
  var xmlHttpReq = false;  
  var self = this;  
  
  if (window.XMLHttpRequest) { // Mozilla/Safari  
    	self.xmlHttpReq = new XMLHttpRequest();  
  } // if mozilla  
  else if (window.ActiveXObject) { // IE  
    	self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");  
  } // if msie  
  
  try {  
    	self.xmlHttpReq.open("GET", strURL, true);  
  } // end try  
  
  catch (e) {  
    	alert(e);  
  } // end catch  
  
  self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');  
  
  self.xmlHttpReq.onreadystatechange = function() {  
    if (self.xmlHttpReq.readyState == 4) {  
       	// call function to update HTML page  
       	updatepage(self.xmlHttpReq.responseText);  
    } // if 4 / ready  
  } // onreadystatechange  
  
  // clear  
  self.xmlHttpReq.send(null);  
  
} // end FUNCTION xmlhttpPost  

function updatepage(str) {
	var responses = eval("(" + str + ")");
	alert(responses);
}

function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}
