function onCell(cell, newcolor) {
	if (!cell.contains(event.fromElement)) {
		cell.bgColor = newcolor;
	}
}
function offCell(cell, newcolor) {
	if (!cell.contains(event.toElement)) {
		cell.bgColor = newcolor;
	}
}
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}


//DHTML Window script- Copyright Dynamic Drive (http://www.dynamicdrive.com)
//modifications by Darwin Wheeler

var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all

function iecompattest(){
	return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function loadwindow(url,width,height){
if (!ie5&&!ns6)
	window.open(url,"","width=width,height=height,scrollbars=0")
else{
	document.getElementById("popwindow").style.display=''
	document.getElementById("popwindow").style.width=initialwidth=width+"px"
	document.getElementById("popwindow").style.height=initialheight=height+"px"
	document.getElementById("popwindow").style.left="600px"
	document.getElementById("popwindow").style.top=ns6? window.pageYOffset*1+105+"px" : iecompattest().scrollTop*1+105+"px"
	document.getElementById("contentframe").src=url
	//document.getElementById("contentframe").style.border=''
	}
}

function closeit(){
	document.getElementById("popwindow").style.display="none"
}
	



//function right(e) {
//if (navigator.appName == 'Netscape' && 
//(e.which == 3 || e.which == 2))
//return false;
//else if (navigator.appName == 'Microsoft Internet Explorer' && 
//(event.button == 2 || event.button == 3)) {
//alert("Sorry, you can't right click. To view the source code select 'view source' from your browser menu.");
//return false;
//}
//return true;
//}
//document.onmousedown=right;
//document.onmouseup=right;
//if (document.layers) window.captureEvents(Event.MOUSEDOWN);
//if (document.layers) window.captureEvents(Event.MOUSEUP);
//window.onmousedown=right;
//window.onmouseup=right;