<!-- Begin 
//Javascript for D3 PHP Mailer Version 1.5
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;
}

function submit_form() {
  if (checkrequired(document.frmMail)) {
    document.frmMail.submitted.value = 'yes';
    document.frmMail.submit();
  }
}

function OpenWindowWH(WinURL,w,h) {
	var w;
	this.name="parentwindow";
	w = window.open(WinURL, "add", "width="+w+",height="+h+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
	w.focus();
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=685,height=600,left = 635,top = 300');");
}


function popUpparts(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=860,height=250,left = 635,top = 475');");
}

function popUpbody(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=500,left = 635,top = 475');");
}



<!-- HOMEPAGE PHOTO SLIDER 
var photos=new Array();
var photoslink=new Array();
var which=0;

//define images. You can have as many as you want:
photos[0]="images/slides/home01.jpg";
photos[1]="images/slides/home02.jpg";
photos[2]="images/slides/home03.jpg";
photos[3]="images/slides/home04.jpg";
photos[4]="images/slides/home05.jpg";
photos[5]="images/slides/home06.jpg";
photos[6]="images/slides/home07.jpg";
photos[7]="images/slides/home08.jpg";
photos[8]="images/slides/home09.jpg";
photos[9]="images/slides/home10.jpg";

//Specify whether images should be linked or not (1=linked)
var linkornot=0;

//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]="";
photoslink[1]="";
photoslink[2]="";
photoslink[3]="";
photoslink[4]="";
photoslink[5]="";
photoslink[6]="";
photoslink[7]="";
photoslink[8]="";
photoslink[9]="";

//do NOT edit pass this line

var preloadedimages=new Array();
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image();
preloadedimages[i].src=photos[i];
}




function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length;
}


function backward(){
if (which>0){
which--;
document.images.photoslider.src=photos[which];
keeptrack();
}
}

function forward(){
if (which<photos.length-1){
which++;
document.images.photoslider.src=photos[which];
keeptrack();
}
}

function transport(){
window.location=photoslink[which];
}
// End -->

// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);');
writeln('width=300-(document.body.clientWidth-document.images[0].width);');
writeln('height=300-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}






/***********************************************
THIS IS THE POP OUT SCRIPT FOR SEARCHING THE SITE
***********************************************/

function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobjstr, opt_position) {
  if (document.getElementById) {
	var subobj=document.getElementById(subobjstr)
	subobj.style.display=(subobj.style.display!="block")? "block" : "none"
	var xpos=getposOffset(curobj, "right")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 
	var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
	subobj.style.left=xpos+"px"
	subobj.style.top=ypos+"px"
	return false
  } else
	return true
}

function overlayclose(subobj) {
  document.getElementById(subobj).style.display="none"
}
