//General site JS functions

function GlosaryWindow(GlossaryTerm,relative_domain)
{
	url = relative_domain + "/tools/glossary.asp?term=" + GlossaryTerm;
	windowName = "GlossaryWindow";
	win1 =         window.open(url,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,copyhistory=0,width=" + 500 + ",height=" + 230 + "")
}
function PopUpWindow(NextPage) 
{
	url = NextPage;
	windowName = "FloatingWindow";
	win1 = window.open(url,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,copyhistory=0,width=" + 600 + ",height=" + 500 + "")
}

function getcookie(cookiename)
{
    var cookiestring=""+document.cookie;
    var index1=cookiestring.indexOf(cookiename);
    if (index1==-1 || cookiename=="") return ""; 
    var index2=cookiestring.indexOf(';',index1);
    if (index2==-1) index2=cookiestring.length; 
    return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}

//=================================================================================================
// Show the Disclaimer window
//=================================================================================================
function showDisclaimerWindow(index, term, relative_domain)
{
	showDisclaimerWindowSized(index, term, relative_domain, 500, 400);
}

//=================================================================================================
// Show the Disclaimer window
//=================================================================================================
function showDisclaimerWindowSized(index, term, relative_domain, width, height)
{
	url = relative_domain + "/tools/disclaimer.asp?index=" + index + "&term=" + term;
	windowName = "Disclaimer";
	win1 = window.open(url, windowName,"toolbar=0, location=0, directories=0, " + 
			   "status=0, menubar=0, scrollbars=yes, resizable=yes, " + 
			   "copyhistory=0,width=" + width + ",height=" + height + "");
}

