function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

<!-- Begin
function StartWide(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,height=451,width=600");
}// End -->

<!-- Begin
function StartTall(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,height=601,width=450");
}// End -->

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

app = navigator.appName; ver = navigator.appVersion; mac = ver.indexOf("Macintosh") > 0; win = ver.indexOf("Win") > 0; vnum = parseFloat(ver);         
mook = (((app == "Netscape") && (vnum >= 3 )) || ((mac) && (app == "Microsoft Internet Explorer") && (vnum >= 3.01 )) || ((win) && (app == "Microsoft Internet Explorer") && (vnum >= 4 ))) 
if (mook) {
	toc1on = new Image(); toc1on.src = "images/on_.gif";
	toc2on = new Image(); toc2on.src = "images/on_.gif";
	toc3on = new Image(); toc3on.src = "images/on_.gif";
	toc4on = new Image(); toc4on.src = "images/on_.gif";
	toc5on = new Image(); toc5on.src = "images/on_.gif";
	toc6on = new Image(); toc6on.src = "images/on_.gif";
	toc7on = new Image(); toc7on.src = "images/on_.gif";
	toc8on = new Image(); toc8on.src = "images/on_.gif";
	toc9on = new Image(); toc9on.src = "images/on_.gif";
	toc10on = new Image(); toc10on.src = "images/on_.gif";

	toc1off = new Image(); toc1off.src = "images/off_.gif";
	toc2off = new Image(); toc2off.src = "images/off_.gif";
	toc3off = new Image(); toc3off.src = "images/off_.gif";
	toc4off = new Image(); toc4off.src = "images/off_.gif";
	toc5off = new Image(); toc5off.src = "images/off_.gif";
	toc6off = new Image(); toc6off.src = "images/off_.gif";
	toc7off = new Image(); toc7off.src = "images/off_.gif";
	toc8off = new Image(); toc8off.src = "images/off_.gif";
	toc9off = new Image(); toc9off.src = "images/off_.gif";
	toc10off = new Image(); toc10off.src = "images/off_.gif";
}
function img_act(imgName) {if (mook) {imgOn = eval(imgName + "on.src"); document [imgName].src = imgOn;}}
function img_inact(imgName) {if (mook) {imgOff = eval(imgName + "off.src"); document [imgName].src = imgOff;}}
// -->

function popUp(url,width,height,scrollbars,resizable,querystring,windowname) {
	/*
	Ultimate Pop Up Script
	Simple Example <a href="javascript:void(0);" onclick="popUp('test.php')">Pop Up</a>
	Normal Example <a href="javascript:void(0);" onclick="popUp('test.php','200','300')">Test</a>
	Full Example   <a href="javascript:void(0);" onclick="popUp('test.php','200','300', 0, 1,'?cid=1', 'popup1')">Test 2</a>
	
	To use default just use null in t place of the variable
	  IE: <a href="javascript:void(0);" onclick="popUp('test.php','200','300', null, null,'?cid=1', 'popup1')">Test 2</a>
	  This uses the default variable for scrollbars and resizable
	*/ 
	if(typeof width == "undefined" || width == null)	var width	= 500;
	if(typeof height == "undefined" || height == null)	var height	= 400;
	
	if(typeof scrollbars == "undefined" || scrollbars == null)		var scrollbars	= 0;
	if(typeof resizable == "undefined" || resizable == null)		var resizable	= 0;
	if(typeof querystring == "undefined" || querystring == null)	var querystring	= '';
	if(typeof windowname == "windowname" || windowname == null)		var windowname	= 'popup';
	
	var full_url = url + querystring;

	var w;
	w = window.open(full_url, windowname, "width="+width+",height="+height+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scrollbars+",resizable="+resizable);
	w.focus();
}



<!-- Begin 
//Javascript for D3 PHP Mailer Version 1.0
function checkrequired(which) {
  var pass=true; 
  if (document.images) {
    for (i=0;i<which.length;i++) {
      var tempobj=which.elements[i];
      if (tempobj.name.substring(0,8)=="required") {
        if (((tempobj.type=="text"||tempobj.type=="textarea") && tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==0)) {
		  pass=false;
		  break;
        }
      }
    }
  }

  if (!pass) {
	shortFieldName=tempobj.name.substring(8,30);
	alert("Please make sure the '"+shortFieldName+"' field was properly completed.");
	tempobj.focus();
	return false;
  } else
	return true;
}
//  End -->
