<!--

//var strCurrentfileName = location.pathname.substring(location.pathname.lastIndexOf('/')+1)

// Function to pop up a window
// Arguments:   page = Page to open (e.g. "./maleavepop.asp")

strCurrentfileName = location.pathname.substring(location.pathname.lastIndexOf('/')+1)

function blowCookies()
{
  var theCookies = document.cookie.split(";");
  var cookDic = new Array();
  for (cookie in theCookies)
  {
   theCookie = theCookies[cookie].split("=");
   key = (theCookie[0].charAt(0) == " ") ? theCookie[0].substr(1).toLowerCase() : theCookie[0].toLowerCase();
   cookDic[key] = theCookie[1];
  }
 return cookDic;
}

function leavepop(strPopPage,strDropOutPage,strChannel,intPreQueryid,intAggregationQueryID,intChannelID ) {
    var windowprops = "width=10,height=10,top=5000,left=5000,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizeable=no";
    var cookiedic = blowCookies();
  	
    //var popupdislikers = new Array("is"); //If anyone else doesn't want the pop up, add them here....
    //var showPopUp = true;
    //for (f=0; f< popupdislikers.length; f++)
     //  showPopUp = (cookiedic["source"].toLowerCase() == popupdislikers[f].toLowerCase()) ? false : showPopUp;
      

    //if (showPopUp)
	//{
		
		strURL = strTempURL + "?GotoPage=" + strPopPage + "&DropOut=" + strDropOutPage + "&ChannelID=" + intChannelID + "&Channel=" + strChannel + "&PreQueryID=" + intPreQueryid + "&AggregationQueryID=" + intAggregationQueryID;
		CheckClosedPopup = window.open(strURL,'checker','width=10,height=10,top=5000,left=5000,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizeable=no');
		//CheckClosedPopup = window.open(strURL,'checker','')
    //}
}

function resetPopVars() {
    leftOK = true;
}

//-->
