// JavaScript Document

function popup_call(callsign){
   xmlHttp = GetXmlHttpObject(); // create instance of xmlHttp object
   var url = "/javascript/callsignpopup.php?callsign="+callsign;
   xmlHttp.onreadystatechange= function(){
    if(xmlHttp.readyState==4) { 

     document.getElementById('callsignpopup_info').innerHTML = xmlHttp.responseText;
	 TagToTip('callsignpopup_info', BALLOON, true, ABOVE, true, FADEIN, 500, OPACITY, 90, CENTERMOUSE, true, FOLLOWMOUSE, false, CLICKCLOSE, true, DURATION, 5000);

    return;
	}
   }
   xmlHttp.open("GET",url,true);
   xmlHttp.send(null);
 }

function closeTip(){
 UnTip();
 document.getElementById('callsignpopup_info').innerHTML = "";
 }

var xmlHttp; //declare variable to be used in this function

function GetXmlHttpObject(){
  var xmlHttp=null;
  try{
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
  }
  catch (e){
    // Internet Explorer
    try{
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e){
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}// end of function to create ajax object