function highlight(obj) {
	obj.style.backgroundColor = "white";
}
function unhighlight(obj) {
	obj.style.backgroundColor = "#4E7EAE";
}

function FP_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);
}

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);
}

/*function validateform(form) {
    var noerr = true;
    document.getElementById("name_err").innerHTML = "";
    document.getElementById("email_err").innerHTML = "";
    document.getElementById("phone_err").innerHTML = "";
    document.getElementById("allbids_err").innerHTML = "";
    if (form.allbids.value == "") {
        document.getElementById("allbids_err").innerHTML = "Enter your bid(s)."
        form.allbids.focus();
       noerr = false;
    }
    if (form.phone.value == "") {
        document.getElementById("phone_err").innerHTML = "Enter your telephone number."
        form.phone.focus();
       noerr = false;
    }
    if (form.email.value == "") {
        document.getElementById("email_err").innerHTML = "Enter your email address."
        form.email.focus();
        noerr = false;
    }
    if (form.name.value == "") {
        document.getElementById("name_err").innerHTML = "Enter your name."
        form.name.focus();
        noerr = false;
    }
    return noerr;
}
*/
function IsNumeric1(obj) {
/* onchange="IsNumeric1(this.id)" */
	if (obj.value !="" && isNaN(obj.value) ) {
		alert("Enter a number only.");
		obj.focus();
		obj.select();
	}
}

