//////AJAX FUNCTIONS//////////////
var bLoc = true;
function ajaxinclude(url, bReturnText) 
{
	var now = new Date();
	var srchpre = url.indexOf("?")>-1 ? "&" : "?"; 
	if(!bLoc)
		url += srchpre + "time=" + now.getTime();
	var page_request = null;
	if (window.XMLHttpRequest && navigator.appName.toLowerCase().indexOf("microsoft") == -1) // if Mozilla, Safari etc
		page_request = new XMLHttpRequest();
	else if (window.ActiveXObject)
	{ // if IE
		try {page_request = new ActiveXObject("Msxml2.XMLHTTP");} 
		catch (e){try {page_request = new ActiveXObject("Microsoft.XMLHTTP");}catch (e){}}
	}
	else return "";
	try {page_request.open('GET', url, false);page_request.send(null);}
	catch(e) {return "";}
	return page_request.responseText;
}
///////SCRIPTS FROM PREVIOUS VERSION//////////

<!--
function donothing() {}
function gotosite(site) {
            if (site != "") {
                           parent.top.location=site;
                    } }

// -->
// javascript for Header Navigation Bar Include 
// Created Dec 3, 2001
// Start of javascript for Header Navigation Bar Include 
// Load the images into the array


function on(pic)
{
	if (document.images)
	{
		document.images[pic].src= eval(pic + "On.src"); return true;
	}
}
function off(pic)
{
	if (document.images)
	{
		document.images[pic].src= eval(pic + "Off.src"); return true;
	}
}

function highlight(id, turnOn) 
{
	var tdElement = document.getElementById(id+"TD");
	var aElement = document.getElementById(id+"A");
	if (turnOn) 
	{
		tdElement.className = "menubarcolor_hi";
		aElement.className = "topmenu_hi";
	}
	else 
	{
		tdElement.className = "menubarcolor";
		aElement.className = "topmenu";
	}
}

// End javascript for Header Navigation Bar Include
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function newWin0(){
	msgWindow= window.open("http://www.aaa.com/travelchallenge/popup04video.html","form","height=250,width=325,screenX=150,screenY=120,left=150,top=50,scrollbars=yes");
}

function launchWindow() {
    try {
      var nav=navigator.userAgent.toLowerCase();
      if (navigator.appVersion.indexOf("mac")!=-1) 
        window.open('http://www.aaa.biz/q4/open.dll?SESSION=4113015420004006&NAME=Guest&GROUP=Guest', 'Practice_Test', 'resizable=yes,hotkeys=no,menubar=no,status=no,scrollbars=yes,toolbar=no,width=575,height=350');
      else if (nav.indexOf("firefox/1.5") != -1 || nav.indexOf("firefox/2.0") != -1)
        window.open('http://www.aaa.biz/q4/open.dll?SESSION=0431319630280562&NAME=Guest&GROUP=Guest', 'Practice_Test', 'resizable=yes,hotkeys=no,menubar=no,status=no,scrollbars=yes,toolbar=no,width=575,height=350');
      else if (nav.indexOf("msie") != -1)
        window.open('http://www.aaa.biz/q4/open.dll?SESSION=0431319630280562&NAME=Guest&GROUP=Guest', 'Practice_Test', 'resizable=yes,hotkeys=no,menubar=no,status=no,scrollbars=yes,toolbar=no,width=575,height=350');
      else
        window.open('http://www.aaa.biz/q4/open.dll?SESSION=4113015420004006&NAME=Guest&GROUP=Guest', 'Practice_Test', 'resizable=yes,hotkeys=no,menubar=no,status=no,scrollbars=yes,toolbar=no,width=575,height=350');
    } catch (err) {
        window.open('http://www.aaa.biz/q4/open.dll?SESSION=4113015420004006&NAME=Guest&GROUP=Guest', 'Practice_Test', 'resizable=yes,hotkeys=no,menubar=no,status=no,scrollbars=yes,toolbar=no,width=575,height=350');
    }
}

///////END SCRIPTS FROM PREVIOUS VERSION//////////