var Nwind=0;
var baseurl=document.location.href;
var tmp_long=0;
var tmp_string="";

if (baseurl.indexOf("ucs.orst.edu")>=0) {
	tmp_long=baseurl.indexOf("/~reeset");
	tmp_string=baseurl.substring(tmp_long + 8);
	document.location.href="http://www.onid.orst.edu/~reeset" +
tmp_string;
}

function GetPage(sURL, lwidth, lheight)
{
if (lwidth==null) {
   var wind= window.open(sURL, 'NewWindow', 'width=600,height=600,scrollbars=yes,resizable=yes');	
}
else {
    var wind= window.open(sURL, 'NewWindow', 'width=' + lwidth + ',height=' + lheight + ',scrollbars=yes, resizable=yes');
}
}

function openpage(sURL){

Nwind=0;
if (document.NavWin.C1.checked) {
	Nwind=1;
}
else {
	Nwind=0;
}


if (Nwind==1) {
   var wind= window.open(sURL, 'NewWindow', 'width=600,height=600,scrollbars=yes,resizable=yes');
   wind.focus();
   if (wind.opener == null){
         wind.opener = self;
   }
}
else {
    self.document.location.href=sURL;
    self.focus();
}

}

function SetNav(form) {
if (form.checked) {
   Nwind=1;
}
else {
   Nwind=0;
}
}



function NavRollOver(oTd) {

N   = (document.layers) ? true:false;                 // netscape 4
I   = (document.all) ? true:false;                    // ie4+
DOM = ((document.getElementById)&&(!I))?true:false;   // ns6 etc.

if (I) {
   if (!oTd.contains(event.fromElement)) {
	oTd.style.backgroundColor='#ffffcc';
	oTd.style.border='#999999 solid 1px';
   }
}
else if (DOM) {
    oTd.style.backgroundColor='#ffffcc';
    oTd.style.border='#999999 solid 1px';
}
}
function NavRollOut(oTd) {

N   = (document.layers) ? true:false;                 // netscape 4
I   = (document.all) ? true:false;                    // ie4+
DOM = ((document.getElementById)&&(!I))?true:false;   // ns6 etc.

if (I) {
   if (!oTd.contains(event.toElement)) {
	oTd.style.backgroundColor='#f1f1f1';
	oTd.style.border='#f1f1f1';
  }
}
else if (DOM) {
    oTd.style.backgroundColor='#f1f1f1';
    oTd.style.border='#f1f1f1';
}
}
