	var Host=location.hostname;
	var Path=location.pathname;

// pre-load the images
if (document.images)
{
var UpOff=new Image(65,57);
UpOff.src="images/up-orange.gif";

var UpOnGr=new Image(65,57);
UpOnGr.src="images/up-ltgreen.gif";
}

// make an array of images
var images=new Array
(
	"images/up-orange.gif",
	"images/up-ltgreen.gif"
)

function Swap(Name,Out)
{
	if (document.images)
	{
		document.images[Name].src=eval(Out + ".src");
	}
}

function swapImage(name,img)
{
	if (document.images)
	{
		document.images[name].src=images[img];
	}
}

function JumpTo(what)
{
//	alert('this form name is: ' + what.name); // Chooser
//	alert('number of elements in ' + what.name + ' is: ' + what.elements[0].options.length);
//	alert('this form type is: ' + what.elements[0].type);
//	for (var i=0; i < what.length; i++)
//	{
		//if (what.elements[i].type = "select")
//		{
//		alert('select box is called: ' + what.elements[0].name); // Topics
//		}
//	}

	//var i=document.forms.Associates.Associates.selectedIndex;
	var i = what.elements[0].selectedIndex;
//	alert ('i is: ' + i);
	for (var i=0; i < what.elements[0].options.length; i++)
	{
		if(what.elements[0].options[i].selected)
		{
			//alert('You chose: ' + what.elements[0].options[i].text);
			var gohere=i;
		}
	}
	
	if (i>0)
	{
		document.location=what.elements[0].options[gohere].value;
	}
}

function GoTo(what)
{
// opens a new window then locates there
	var theName = 'whatever';
	var NS4 = (document.layers)?1:0;
	var HEIGHT = 500;
	var WIDTH = 700;
	//var newY = (500-HEIGHT)/2;
	//var newX = (700-WIDTH)/2;

var w=700;
var h=500;

var newX=(screen.availWidth - w) / 2;
var newY=(screen.availHeight - h) / 2;
var whereTo="";

	//var i=document.forms.OUR.ASSOCIATES.selectedIndex;
	var i = what.elements[0].selectedIndex;
	if (i>0)
	{
		whereTo = what.elements[0].options[i].value;
	}
//	if (NS4)
//	   {
//			var theFeatures='screenX=' + newX + ',screenY=' + newY + ',';
//	   }
//	else
//	   {
//			var theFeatures='LEFT=' + newX + ',TOP=' + newY + ',';
//	   }
//	theFeatures=theFeatures + 'toolbar=0,location=1,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,copyhistory=0,width='+ WIDTH + ',height=' + HEIGHT;
//	theNewWindow=window.open(whereTo,theName,theFeatures);
	theNewWindow=window.open(whereTo,"result","toolbar=1,location=1,scrollbars,locationbar=1,menubar=1,resizable=1,width=screen.availWidth,height=screen.availHeight");
	//theNewWindow.moveTo(newX,newY);
	theNewWindow.moveTo(0,0);
}

///////////////////////////////////////////////
function ResetForms()
{
	for (var i=0;i<document.forms.length;i++)
	{
		document.forms[i].reset();
	}
}

///////////////////////////////////////////////
function MailToOld()
{
var MyWin;
var w=700;
var h=500;
var newx=(screen.availWidth - w) / 2;
var newy=(screen.availHeight - h) / 2;
	if (!MyWin || MyWin.closed)
	{
		MyWin=window.open("","feedback","scrollbars,width=700,height=500");
		MyWin.moveTo(newx,newy);
		MyWin.focus();
	var Message="<html>\n";
	Message += "<head>\n";
	Message += "<meta name='Content-Style' content='text/css'>\n";
	Message += "<link rel=stylesheet type='text/css' href='http://www.softouch.on.ca/rc/main.css'>\n";
	Message += "</head>\n";
	Message += "<body>\n";
	Message += "<title>Research Central Feedback</title>\n";
	Message += "<font face='verdana,arial,sans-serif' size='4'>\n";
	Message += "Please use this form for any questions or suggestions you may have ";
	Message += "about Research Central. Thank you.";
	Message += "<p>\n";
	Message += "<form name='Mailto' method='post' action='http://www.softouch.on.ca/cgi-bin/rc/feedback.pl'>\n";
	Message += "Your email address: <input type='text' name='email' value='' size='25' maxlength='60'><br>\n";
	Message += "Comments:<br>\n";
	Message += "<textarea name='feedback' rows='6' cols='30' wrap='physical'></textarea>\n";
	Message += "<p>\n";
	Message += "<input type='submit' value='Send' onClick='javascript:submit();'>\n";
	Message += "</form>\n";
	Message += "</font></body></html>\n";
	MyWin.document.write(Message);
	MyWin.document.close();
	}
	else
	{
		MyWin.focus();
	}
}

///////////////////////////////////////////////
function Feedback()
{
	var MyWin;
	var w=700;
	var h=500;
	var newx=(outerWidth - w) / 2;
	var newy=(outerHeight - h) / 2;
	MyWin=window.open("http://www.softouch.on.ca/cgi-bin/rc/feedback.pl","FeedBack","scrollbars='1',chrome='yes',width=700px,height=500px");
	//MyWin.moveTo(newx,newy);
	MyWin.centerscreen;
	MyWin.focus();
} // end Feedback

