<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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 P7_Snap() { //v2.63 by PVII
 var x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,tw,q0,xx,yy,w1,pa='px',args=P7_Snap.arguments;a=parseInt(a);
 if(document.layers||window.opera){pa='';}for(k=0;k<(args.length);k+=4){
 if((g=MM_findObj(args[k]))!=null){if((el=MM_findObj(args[k+1]))!=null){
 a=parseInt(args[k+2]);b=parseInt(args[k+3]);x=0;y=0;ox=0;oy=0;p="";tx=1;
 da="document.all['"+args[k]+"']";if(document.getElementById){
 d="document.getElementsByName('"+args[k]+"')[0]";if(!eval(d)){
 d="document.getElementById('"+args[k]+"')";if(!eval(d)){d=da;}}
 }else if(document.all){d=da;}if(document.all||document.getElementById){while(tx==1){
 p+=".offsetParent";if(eval(d+p)){x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
 }else{tx=0;}}ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);tw=x+ox+y+oy;
 if(tw==0||(navigator.appVersion.indexOf("MSIE 4")>-1&&navigator.appVersion.indexOf("Mac")>-1)){
  ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);}else{
  w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;
  x=document.body.scrollLeft+event.clientX+bx;y=document.body.scrollTop+event.clientY;}}
 }else if(document.layers){x=g.x;y=g.y;q0=document.layers,dd="";for(var s=0;s<q0.length;s++){
  dd='document.'+q0[s].name;if(eval(dd+'.document.'+args[k])){x+=eval(dd+'.left');y+=eval(dd+'.top');
  break;}}}e=(document.layers)?el:el.style;xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);
 if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){
  xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);}
 e.left=xx+pa;e.top=yy+pa;}}}
}

function P7_hideDiv(evt) { //v1.3 by PVII
 var b,relT,mT=false; 
 if(document.layers){b=evt.target;if(b.p7aHide){
  b.visibility="hidden";}else{routeEvent(evt);}
 }else if(document.all&&!window.opera){b=event.srcElement;
  while(b!=null){if(b.tagName=="DIV" && b.p7ahD){mT=true;break;}b=b.parentElement;}
  if(!b.contains(event.toElement)){b.style.visibility="hidden";}
 }else if(document.getElementById){b=evt.currentTarget;relT=evt.relatedTarget;
  while(relT!=null){if(b==relT){mT=true;break;}
  relT=relT.parentNode;}if(!mT){b.style.visibility="hidden";}}
}

function P7_autoHide() { //v1.3 by PVII
 var i,g,args=P7_autoHide.arguments;
 for(i=0;i<args.length;i++){if((g=MM_findObj(args[i]))!=null){
  g.p7aHide=true;if(document.layers){
  g.captureEvents(Event.MOUSEOUT);}g.onmouseout=P7_hideDiv;g.p7ahD=true;}}
}

function P7_autoLayers() { //v1.4 by PVII
 var g,b,k,f,args=P7_autoLayers.arguments;
 a=parseInt(args[0]);if(isNaN(a))a=0;
 if(!document.p7setc){p7c=new Array();
 document.p7setc=true;
 for(var u=0;u<10;u++){
 p7c[u]=new Array();
 }}for(k=0;k<p7c[a].length;k++){if((g=MM_findObj(p7c[a][k]))!=null){
 b=(document.layers)?g:g.style;b.visibility="hidden";}}for(k=1;k<args.length;k++){
 if((g=MM_findObj(args[k]))!=null){b=(document.layers)?g:g.style;b.visibility="visible";f=false;
 for(var j=0;j<p7c[a].length;j++){if(args[k]==p7c[a][j]) {f=true;}}
 if(!f){p7c[a][p7c[a].length++]=args[k];}}}
}

function content(link, width, height)
{
	ContentWindow = window.open(link, "Menu",'toolbar=0,location=0,directories=0, status=0,menubar=0,scrollbars=0,resizable=0, width=' + width +',height=' + height + ',alwaysRaised');
}

function addToList(form) {
   strClass = form.class_name.value;
   //alert(strClass);

      var len = form.dates.length++; // Increase the size of list and return the size
	  //alert(len);

	//Remove previous dates from dates list
	if (len >= 0) {
         var replaceTextArray = new Array(form.dates.length);
         var replaceValueArray = new Array(form.dates.length);
		 for (var i = 0; i < form.dates.length; i++) {
            // Put everything except the selected one into the array
            replaceTextArray[i] = form.dates.options[i].text;
         }
         form.dates.length = replaceTextArray.length;  // Shorten the input list
         for (i = 0; i < form.dates.length; i++) { // Put the array back into the list
            form.dates.options[i].value = "";
            form.dates.options[i].text = "";
		 }
		 form.dates.length=0;
	}
	
      var len = form.dates.length++; // Increase the size of list and return the size

	  form.dates.options[len].value = "Please select date";
	  form.dates.options[len].text = "Please select date";
      var len = form.dates.length++; // Increase the size of list and return the size
   	  switch(strClass) {
	 			case "Aftermarket Parts for Insurers":
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "April 15, 2008 - Aftermarket Parts - 9am - 12pm - Corporate";
			 // form.dates.options[len].text = "April 15, 2008 - Aftermarket Parts - 9am - 12pm - Corporate";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "May 13, 2008 - Aftermarket Parts - 9am - 12pm - Euless";
			  //form.dates.options[len].text = "May 13, 2008 - Aftermarket Parts - 9am - 12pm - Euless";
			   //var len = form.dates.length++; // Increase the size of list and return the size
			   //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Dec 2, 2008 - Aftermarket Parts - 9am - 12pm - Euless";
			  //form.dates.options[len].text = "Dec 2, 2008 - Aftermarket Parts - 9am - 12pm - Euless";
			  //form.dates.options[len].value = "May 5, 2009 - Aftermarket Parts - 9am - 12pm - Richardson";
			// form.dates.options[len].text = "May 5, 2009 - Aftermarket Parts - 9am - 12pm - Richardson";
			   //var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "No additional dates scheduled yet for this class";
			 form.dates.options[len].text = "No additional dates scheduled yet for this class";
		 //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			   	  	break;
					case "Auto Theft & Fraud for Insurers":
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Jan 8, 2008 - Auto Theft & Fraud - 1pm - 3pm - Corporate";
			  //form.dates.options[len].text = "Jan 8, 2008 - Auto Theft & Fraud - 1pm - 3pm - Corporate";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "June 10, 2008 - Auto Theft & Fraud - 1pm - 3pm - Grand Prairie";
			  //form.dates.options[len].text = "June 10, 2008 - Auto Theft & Fraud - 1pm - 3pm - Grand Prairie";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Oct 14, 2008 - Auto Theft & Fraud - 1pm - 3pm - Richardson";
			  //form.dates.options[len].text = "Oct 14, 2008 - Auto Theft & Fraud - 1pm - 3pm - Richardson";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Feb 10, 2009 - Auto Theft & Fraud - 1pm - 3pm - W. Ft. Worth";
			  //form.dates.options[len].text = "Feb 10, 2009 - Auto Theft & Fraud - 1pm - 3pm - W. Ft. Worth";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "June 9, 2009 - Auto Theft & Fraud - 1pm - 3pm - W. Ft. Worth";
			  form.dates.options[len].text = "June 9, 2009 - Auto Theft & Fraud - 1pm - 3pm - W. Ft. Worth";
			  var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "August 11, 2009 - Auto Theft & Fraud - 1pm - 3pm - Grand Prairie";
			  form.dates.options[len].text = "August 11, 2009 - Auto Theft & Fraud - 1pm - 3pm - Grand Prairie";
			  var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "Sept 8, 2009 - Auto Theft & Fraud - 1pm - 3pm - Euless";
			  form.dates.options[len].text = "Sept 8, 2009 - Auto Theft & Fraud - 1pm - 3pm - Euless";
			  var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "Nov 17, 2009 - Auto Theft & Fraud - 1pm - 3pm - Corporate";
			  form.dates.options[len].text = "Nov 17, 2009 - Auto Theft & Fraud - 1pm - 3pm - Corporate";
			  //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			
			break;
		case "Airbag & Restraint Systems for Insurers":
			  //form.dates.options[len].value = "Aug 14, 2007 - Airbag & Restraint Systems - 9am - 12pm - Grand Prairie";
			  //form.dates.options[len].text = "Aug 14, 2007 - Airbag & Restraint Systems - 9am - 12pm - Grand Prairie";
		      //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Oct 9, 2007 -  Airbag & Restraint Systems - 1pm - 3pm - Corporate";
			  //form.dates.options[len].text = "Oct 9, 2007 -  Airbag & Restraint Systems - 1pm - 3pm - Corporate";
		      //var len = form.dates.length++; // Increase the size of list and return the size
			 //form.dates.options[len].value = "Dec 11, 2007 - Airbag & Restraint Systems - 9am - 12pm - Euless";
			  //form.dates.options[len].text = "Dec 11, 2007 - Airbag & Restraint Systems - 9am - 12pm - Euless";
			  //form.dates.options[len].value = "No Remaining 2007 Dates for this Class";
			  //form.dates.options[len].text = "No Remaining 2007 Dates for this Class";
			  //form.dates.options[len].value = "July 8, 2008 -  Airbag & Restraint Systems - 9am - 12pm - Corporate";
			  //form.dates.options[len].text = "July 8, 2008 -  Airbag & Restraint Systems - 9am - 12pm - Corporate";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Jan 20, 2009 -  Airbag & Restraint Systems - 9am - 12pm - Richardson";
			 // form.dates.options[len].text = "Jan 20, 2009 -  Airbag & Restraint Systems - 9am - 12pm - Richardson";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "No additional dates scheduled yet for this class";
			 //form.dates.options[len].text = "No additional dates scheduled yet for this class";
			 form.dates.options[len].value = "Sept 8, 2009 - Airbag & Restraint Systems - 9am - 12pm - Euless";
			  form.dates.options[len].text = "Sept 8, 2009 - Airbag & Restraint Systems - 9am - 12pm - Euless";
			  //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
						break;
					
			case "Collision Repair for Insurers":
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "No Remaining 2007 Dates for this Class";
			  //form.dates.options[len].text = "No Remaining 2007 Dates for this Class";
		      //var len = form.dates.length++; // Increase the size of list and return the size
			  // form.dates.options[len].value = "February 12, 2008 - Collision Repair - 9am - 12pm - Euless ";
			  //form.dates.options[len].text = "February 12, 2008 - Collision Repair - 9am - 12pm - Euless ";
			   form.dates.options[len].value = "June 9, 2009 - Collision Repair - 9am - 12pm - W. Ft. Worth";
			  form.dates.options[len].text = "June 9, 2009 - Collision Repair - 9am - 12pm - W. Ft. Worth";
			  //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			break;
	  	case "Ethics for Insurers":
			  //form.dates.options[len].value = "CLASS FULL - April 18, 2006 - Ethics - 9am- 12pm - Corporate";
			  //form.dates.options[len].text = "April 18, 2006 - Ethics - 9am- 12pm - Corporate";
		      //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Jan 8, 2008 - Ethics - 9am - 12pm - Corporate";
			  //form.dates.options[len].text = "Jan 8, 2008 - Ethics - 9am - 12pm - Corporate";
		      //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "June 10, 2008 - Ethics - 9am - 12pm - Grand Prairie";
			  //form.dates.options[len].text = "June 10, 2008 - Ethics - 9am - 12pm - Grand Prairie";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Oct 14, 2008 - Ethics - 9am - 12pm - Richardson";
			 //form.dates.options[len].text = "Oct 14, 2008 - Ethics - 9am - 12pm - Richardson";
			 // form.dates.options[len].value = "March 10, 2009 - Ethics - 9am - 12pm - Grand Prairie";
			 // form.dates.options[len].text = "March 10, 2009 - Ethics - 9am - 12pm - Grand Prairie";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "No additional dates scheduled yet for this class";
			 form.dates.options[len].text = "No additional dates scheduled yet for this class";
			  //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			break;
			case "Ethical Case Studies for Insurers":
			 form.dates.options[len].value = "July 14, 2009 - Ethical Case Studies - 9am - 12pm - Corporate";
			  form.dates.options[len].text = "July 14, 2009 - Ethical Case Studies - 9am - 12pm - Corporate";
			  var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "Aug 11, 2009 - Ethical Case Studies - 9am - 12pm - Grand Prairie";
			  form.dates.options[len].text = "Aug 11, 2009 - Ethical Case Studies - 9am - 12pm - Grand Prairie";
			  var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "Oct 13, 2009 - Ethical Case Studies - 9am - 12pm - W. Ft. Worth";
			  form.dates.options[len].text = "Oct 13, 2009 - Ethical Case Studies - 9am - 12pm - W. Ft. Worth";
			 //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			
			 
			 break;
			case "Frame & Structural Damage Issues for Insurers":
			 form.dates.options[len].value = "Nov 17, 2009 - Frame & Structural Damage Issues - 9am - 12pm - Corporate";
			  form.dates.options[len].text = "Nov 17, 2009 - Frame & Structural Damage Issues - 9am - 12pm - Corporate";
			  var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "Dec 8, 2009 - Frame & Structural Damage Issues - 9am - 12pm - W. Ft. Worth";
			  form.dates.options[len].text = "Dec 8, 2009 - Frame & Structural Damage Issues - 9am - 12pm - W. Ft. Worth";
			 //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			
			break;
			case "Loss Control & Windshield Repair for Insurers":
			  //form.dates.options[len].value = "Feb 12, 2008 - Loss Control - 1pm - 3pm - Euless";
			  //form.dates.options[len].text = "Feb 12, 2008 - Loss Control - 1pm - 3pm - Euless";
		      //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "July 8, 2008 - Loss Control - 1pm - 3pm - Richardson";
			  //form.dates.options[len].text = "July 8, 2008 - Loss Control - 1pm - 3pm - Richardson";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Nov 4, 2008 - Loss Control - 1pm - 3pm - Grand Prairie";
			  //form.dates.options[len].text = "Nov 4, 2008 - Loss Control - 1pm - 3pm - Grand Prairie";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			   //form.dates.options[len].value = "April 7, 2009 - Loss Control - 1pm - 3pm - Euless";
			  //form.dates.options[len].text = "April 7, 2009 - Loss Control - 1pm - 3pm - Euless";
			   //var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "No additional dates scheduled yet for this class";
			 form.dates.options[len].text = "No additional dates scheduled yet for this class";
			  //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			break;
			
			case "Salvage Parts for Insurers":
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "March 11, 2008 - Salvage Parts - 9am - 12pm - Grand Prairie";
			  //form.dates.options[len].text = "March 11, 2008 - Salvage Parts - 9am - 12pm - Grand Prairie";
			 //var len = form.dates.length++; // Increase the size of list and return the size
			 //form.dates.options[len].value = "Nov 4, 2008 - Salvage Parts - 9am - 12pm - Grand Prairie";
			  //form.dates.options[len].text = "Nov 4, 2008 - Salvage Parts - 9am - 12pm - Grand Prairie";
			  //form.dates.options[len].value = "- CLASS FULL - April 7, 2009 - Salvage Parts - 9am - 12pm - Euless";
			  //form.dates.options[len].text = "- CLASS FULL - April 7, 2009 - Salvage Parts - 9am - 12pm - Euless";
			   //var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "No additional dates scheduled yet for this class";
			 form.dates.options[len].text = "No additional dates scheduled yet for this class";
			  //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			break;
	  	
	  	case "Paintless Dent Repair for Insurers":
			  //form.dates.options[len].value = "March 11, 2008 - PDR - 1pm - 3pm - Grand Prairie ";
			  //form.dates.options[len].text = "March 11, 2008 - PDR - 1pm - 3pm - Grand Prairie ";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "April 15, 2008 -  PDR - 1pm - 3pm - Corporate";
			  //form.dates.options[len].text = "April 15, 2008 -  PDR - 1pm - 3pm - Corporate";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "August 5, 2008 - PDR - 1pm - 3pm - Grand Prairie";
			 // form.dates.options[len].text = "August 5, 2008 - PDR - 1pm - 3pm - Grand Prairie";
		      //var len = form.dates.length++; // Increase the size of list and return the size
			   //form.dates.options[len].value = "Dec 2, 2008 - PDR - 1pm - 3pm - Euless";
			  //form.dates.options[len].text = "Dec 2, 2008 - PDR - 1pm - 3pm - Euless";
			  //form.dates.options[len].value = "March 10, 2009 - PDR - 1pm - 3pm - Grand Prairie";
			// form.dates.options[len].text = "March 10, 2009 - PDR - 1pm - 3pm - Grand Prairie";
			 //var len = form.dates.length++; // Increase the size of list and return the size
			   form.dates.options[len].value = "Dec 8, 2009 - PDR - 1pm - 3pm - W. Ft. Worth";
			  form.dates.options[len].text = "Dec 8, 2009 - PDR - 1pm - 3pm - W. Ft. Worth";
			  //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			
			break;
	  	case "Vehicle Inspection for Insurers":
			  //form.dates.options[len].value = "August 14, 2007 - Vehicle Inspection - 1pm -3pm - Grand Prairie";
			  //form.dates.options[len].text = "August 14, 2007 - Vehicle Inspection - 1pm -3pm - Grand Prairie";
		      //form.dates.options[len].value = "Dec 11, 2007 - Vehicle Inspection - 1pm -3pm - Euless";
			  //form.dates.options[len].text = "Dec 11, 2007 - Vehicle Inspection - 1pm -3pm - Euless";
			   //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "May 13, 2008 - Vehicle Inspection - 1pm -3pm - Euless";
			  //form.dates.options[len].text = "May 13, 2008 - Vehicle Inspection - 1pm -3pm - Euless";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Sept 23, 2008 - Vehicle Inspection - 1pm -3pm - Euless";
			 // form.dates.options[len].text = "Sept 23, 2008 - Vehicle Inspection - 1pm -3pm - Euless";
			 //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "Jan 20, 2009 - Vehicle Inspection - 1pm -3pm - Richardson";
			 //form.dates.options[len].text = "Jan 20, 2009 - Vehicle Inspection - 1pm -3pm - Richardson";
			  //var len = form.dates.length++; // Increase the size of list and return the size
			  //form.dates.options[len].value = "May 5, 2009 - Vehicle Inspection - 1pm -3pm - Richardson";
			// form.dates.options[len].text = "May 5, 2009 - Vehicle Inspection - 1pm -3pm - Richardson";
			//var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "July 14, 2009 - Vehicle Inspection - 1pm -3pm - Corporate";
			form.dates.options[len].text = "July 14, 2009 - Vehicle Inspection - 1pm -3pm - Corporate";
			  var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "Oct 13, 2009 - Vehicle Inspection - 1pm -3pm - W. Ft. Worth";
			form.dates.options[len].text = "Oct 13, 2009 - Vehicle Inspection - 1pm -3pm - W. Ft. Worth";
			  //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			  
			break;
		case "Hybrid & Alternative Power Vehicles for Insurers":
			  //form.dates.options[len].text = "No Remaining 2007 Dates for this Class";
			  //form.dates.options[len].text = "Aug 5, 2008 - Hybrid & Alternative Power Vehicles - 9am - 12pm - Grand Prairie";
			  //form.dates.options[len].text = "Aug 5, 2008 - Hybrid & Alternative Power Vehicles - 9am - 12pm - Grand Prairie";
			  //form.dates.options[len].text = "Feb 10, 2009 - Hybrid & Alternative Power Vehicles - 9am - 12pm - W. Ft. Worth";
			  //form.dates.options[len].text = "Feb 10, 2009 - Hybrid & Alternative Power Vehicles - 9am - 12pm - W. Ft. Worth";
			  //form.dates.selectedIndex = len; // Highlight the one just entered (shows the user that it was entered)
			   //var len = form.dates.length++; // Increase the size of list and return the size
			  form.dates.options[len].value = "No additional dates scheduled yet for this class";
			 form.dates.options[len].text = "No additional dates scheduled yet for this class";
				break;
		
	  }

}


function removeFromList(form) {
   if ( form.dates.length == -1) {  // If the list is empty
      alert("There are no values which can be removed!");
   } else {
      var selected = listField.selectedIndex;
      if (selected == -1) {
         alert("You must select an entry to be removed!");
      } else {  // Build arrays with the text and values to remain
         var replaceTextArray = new Array(listField.length-1);
         var replaceValueArray = new Array(listField.length-1);
         for (var i = 0; i < listField.length; i++) {
            // Put everything except the selected one into the array
            if ( i < selected) { replaceTextArray[i] = listField.options[i].text; }
            if ( i > selected ) { replaceTextArray[i-1] = listField.options[i].text; }
            if ( i < selected) { replaceValueArray[i] = listField.options[i].value; }
            if ( i > selected ) { replaceValueArray[i-1] = listField.options[i].value; }
         }
         listField.length = replaceTextArray.length;  // Shorten the input list
         for (i = 0; i < replaceTextArray.length; i++) { // Put the array back into the list
            listField.options[i].value = replaceValueArray[i];
            listField.options[i].text = replaceTextArray[i];
         }
      } // Ends the check to make sure something was selected
   } // Ends the check for there being none in the list
}


function getdirections(form)
{
	//alert(form.name);
	var strAddress = form.origin.value;
	var strCity = form.citystate.value;
	var str = strAddress + ' ' + strCity;
	//str = str.replace(' ', '%20');
	//alert(str);

	switch(form.name){
		case 'getmap0':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 808 S Central Expressway Richardson TX';
			break;
		case 'getmap11':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 4205 SW Plano Pkwy Plano TX';
			break;
		case 'getmap1':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 3504 Marvin D Love Frwy Dallas TX';
			break;
		case 'getmap2':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 2300 W Pioneer Pkwy, Pantego, Tarrant, Texas 76013';
			break;
		case 'getmap3':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 4036 W I-30 Mesquite TX';
			break;
		case 'getmap5':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 2309 Midway Road Carrollton TX';
			break;
		case 'getmap6':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 3910 W Airport Frwy Irving TX';
			break;
		case 'getmap7':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 4001 N Central Expressway Plano TX';
			break;
		case 'getmap8':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 2129 S Stemmons Frwy Lewisville TX';
			break;
		case 'getmap9':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 10841 Estate Lane Dallas TX';
			break;
		case 'getmap10':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 5900 Rufe Snow North Richland Hills TX';
			break;
		case 'getmap12':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 8661 Main St Frisco TX';
			break;
		case 'getmap13':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 3060 I-20 W, Grand Prairie, Tarrant, Texas 75052, United States';
			break;
		case 'getmap14':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 11565 Reeder Rd Dallas TX';
			break;
		case 'getmap15':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 1751 W Airport Frwy Euless TX';
			break;
		case 'getmap16':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 810 S Central Expressway Richardson TX';
			break;
		case 'getmap18':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 2727 S Central Expressway McKinney TX';
			break;
		case 'getmap19':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 5115 Lemmon Ave Dallas TX';
			break;
		case 'getmap20':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 2601 WIlliam D Tate Ave Grapevine TX 76051';
			break;
		case 'getmap21':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 8653 S Hampton Rd. Dallas, TX 75232';
			break;
		case 'getmap22':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 9601 S I-35W Fort Worth, TX 76140';
			break;
		case 'getmap_golf':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 4111 La Prada Mesquite TX 75150';
			break;
		case 'getmap23':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 10720 N Central Expressway Dallas, TX 75231';
			break;
		case 'getmap24':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 2951 W Loop 820 South Fort Worth, TX 76116';
			break;
		case 'getmap_copperfield':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 7924 North Highway 6 Houston TX 77095';
			break;
		case 'getmap_spring':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 23530 I-45  Spring TX 77373';
			break;
		case 'getmap_humble':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 450 FM 1960 Bypass Rd E Humble TX 77338';
			break;
		case 'getmap_kingwood':
			form.action ='http://maps.google.com/maps?q=' + str + ' to 22500 Highway 59 N Kingwood TX 77339';
			break;
	}
	
	return true;

}

  function VerifyForm(obForm,szFields)
    {
      var fields = szFields.split(",")
      var szMissing= new Array();
      for (x=0;x<fields.length;x++) {
        if (obForm.elements[fields[x]].value.length==0) {
			  szMissing[szMissing.length]=new String(fields[x]);

			  if (szMissing.length) {
				alert("Pleas fill-out all required fields and try again.");
				//alert("The field"+((szMissing.length>1)?"s ":" ")+szMissing.join(",")+" must be filled in first");
				return false
			  }
        }
      }
      return true;
    }



//-->