function highlight(obj) {
/*	obj.style.backgroundColor = "#4E7EAE";*/
	obj.style.backgroundColor = "#84c663";
}
function unhighlight(obj) {
	obj.style.backgroundColor = "#003366";
}

function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,id,url) {//v1.0
 var windowProperties=''; 
 if(nav==false) windowProperties+='toolbar=no,'; 
 	else windowProperties+='toolbar=yes,'; 
 if(loc==false) windowProperties+='location=no,'; 
 	else windowProperties+='location=yes,'; 
 if(sts==false) windowProperties+='status=no,';
 	else windowProperties+='status=yes,'; 
 if(menu==false) windowProperties+='menubar=no,';
 	else windowProperties+='menubar=yes,'; 
 if(scroll==false) windowProperties+='scrollbars=no,';
 	else windowProperties+='scrollbars=yes,'; 
 if(resize==false) windowProperties+='resizable=no,';
 	else windowProperties+='resizable=yes,'; 
 if(w!="") windowProperties+='width='+w+',';
 if(h!="") windowProperties+='height='+h; 
 if(windowProperties!="") 
 	{ 
 	if( windowProperties.charAt(windowProperties.length-1)==',') windowProperties=windowProperties.substring(0,windowProperties.length-1);
	} 	
 }
 
function openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
var windowProperties=''; 
if(nav==false) windowProperties+='toolbar=no,'; 
	else windowProperties+='toolbar=yes,'; 
if(loc==false) windowProperties+='location=no,'; 
	else windowProperties+='location=yes,'; 
 if(sts==false) windowProperties+='status=no,';
 	else windowProperties+='status=yes,'; 
 if(menu==false) windowProperties+='menubar=no,';
 	else windowProperties+='menubar=yes,'; 
 if(scroll==false) windowProperties+='scrollbars=no,';
 	else windowProperties+='scrollbars=yes,'; 
 if(resize==false) windowProperties+='resizable=no,';
 	else windowProperties+='resizable=yes,'; 
 if(w!="") windowProperties+='width='+w+',';
 if(h!="") windowProperties+='height='+h; 
 if(windowProperties!="") 
    { 
     if( windowProperties.charAt(windowProperties.length-1)==',') windowProperties=windowProperties.substring(0,windowProperties.length-1); 
     window.open(url,name,windowProperties);
    }
    window.open(url,id,windowProperties);
}

function newWin(w,h,name,url) {
	alert(w+' '+h+'  '+name+'  '+url);
	var winProps = "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h;
	window.open(url,name,winProps);
}

function toggleText(obj1) 
{
    if (document.getElementById(obj1).style.display == '') 
    {
    //document.getElementById(obj2).innerHTML="&nbsp;+&nbsp;";
    document.getElementById(obj1).style.display = 'none';
    return true;
    }
    else 
    {
    //document.getElementById(obj2).innerHTML="&nbsp;&#0150;&nbsp;";
    document.getElementById(obj1).style.display = '';
    return true;
    }
}

function toggleText2(obj1) 
{
    if (document.getElementById(obj1).style.display == 'inline') 
    {
    //document.getElementById(obj2).innerHTML="&nbsp;+&nbsp;";
    document.getElementById(obj1).style.display = 'none';
    return true;
    }
    else 
    {
    //document.getElementById(obj2).innerHTML="&nbsp;&#0150;&nbsp;";
    document.getElementById(obj1).style.display = 'inline';
    return true;
    }
}

function change(spanID,divID) {
	if (document.getElementById(divID).style.display == "none") {
	document.getElementById(divID).style.display = "block";
	document.getElementById(spanID).innerHTML = "&#150;";
	} else {
	document.getElementById(divID).style.display = "none";
	document.getElementById(spanID).innerHTML = "+";
	}
}

function hideDIV(obj) {
document.getElementById(obj).style.display = 'none';
}

function concatCmts()  //used to provide PayPal with donor's choices 
{
//   document.all.item_name.value = "ALIVE! Inc.: " + document.all.item_name2.value + " (referred by " + document.all.source1.value + ")";
//getElementsByName method is needed for Firefox:
    document.getElementsByName("item_name")[0].value = "ALIVE! Inc.: "+document.getElementsByName("item_name2")[0].value+" (referred by "+document.getElementsByName("source1")[0].value+")";
}

function newWin(w,h,name,url) {
	alert(w+' '+h+'  '+name+'  '+url);
	var winProps = "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h;
	window.open(url,name,winProps);
}

function trim1(str) {
	str.replace(/^\s+|\s+$/g, '') ;
}

function breadcrumbs(){
//script adapted from http://www.webreference.com/js/scripts/breadcrumbs/ 
  sURL = new String;
  bits = new Object;
  var x = 0;
  var stop = 0;
  var output = "<a href=\"/\">Home</a> &nbsp;&#187;&nbsp; ";
  sURL = location.href;
  sURL = sURL.slice(8,sURL.length);
  xStart = sURL.indexOf("/");
  sURL = sURL.slice(xStart+1,sURL.length)
  while(!stop){
    xStart = sURL.indexOf("/");
    if (xStart != -1){
      bits[x] = sURL.slice(0,xStart)
      sURL = sURL.slice(xStart+1,sURL.length);
    }else{
      stop = 1;
    }
    x++;
  }
  for(var i in bits){
    output += "<a href=\"";
    for(y=1;y<x-i;y++){
      output += "../";
    }
    output += bits[i] + "/\">" + bits[i] + "</a> &nbsp;&#187;&nbsp; ";
  }
  document.write(output + document.title);
}

/*
//http://www.somacon.com/p355.php
String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}
function ltrim(str) { 
	for(var k = 0; k < str.length && isWhitespace(str.charAt(k)); k++);
	return str.substring(k, str.length);
}
function rtrim(str) {
	for(var j=str.length-1; j>=0 && isWhitespace(str.charAt(j)) ; j--) ;
	return str.substring(0,j+1);
}
function trim(str) {
	return ltrim(rtrim(str));
}
*/
