<!--
	function searchTextClick(f) {
		if (f.value=="Search here") f.value="";
		return true;
	}
	
	function searchSubmit(f) {
		f.submit();
		return true;
	}

	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];}}
	}
	
	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_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_openBrWindow(theURL,winName,features,theWidth,theHeight) {
			if (document.all)
					var xMax = screen.width, yMax = screen.height;
			else
					if (document.layers)
							var xMax = window.outerWidth, yMax = window.outerHeight;
					else
							var xMax = 640, yMax=480;
			var xOffset = (xMax - theWidth)/2, yOffset = (yMax - theHeight)/2;
		window.open(theURL,winName,features+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
	}
	
  function popup(n,w,h,options){
		if (document.all)
			 var xMax = screen.width, yMax = screen.height;
		else
			 if (document.layers)
				 var xMax = window.outerWidth, yMax = window.outerHeight;
			 else
				 var xMax = 640, yMax=480;
		var xOffset = (xMax - w)/2, yOffset = (yMax - h)/2;
		var popupHandle=window.open('',n,'width='+w+',height='+h+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',resizable=1,'+options);
	}
	
  function popupURL(url,n,w,h,options){
		if (document.all)
			 var xMax = screen.width, yMax = screen.height;
		else
			 if (document.layers)
				 var xMax = window.outerWidth, yMax = window.outerHeight;
			 else
				 var xMax = 640, yMax=480;
		var xOffset = (xMax - w)/2, yOffset = (yMax - h)/2;
		var popupHandle=window.open(url,n,'width='+w+',height='+h+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',resizable=1,'+options);
	}
	
	function displayBanner(banner,w,h,img,alt) {
  	var protocol=document.location.protocol;
  	if ((banner.indexOf(".swf")>=0)) {
			document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write('  codebase="'+protocol+'//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
			document.write('ID="'+banner+'" WIDTH="'+w+'" HEIGHT="'+h+'" border="0" align="top">');
			document.write(' <PARAM NAME=movie VALUE="'+banner+'"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
			document.write(' <EMBED src="'+banner+'" menu=false quality=high bgcolor=#FFFFFF');
			document.write(' swLiveConnect=FALSE WIDTH="'+w+'" HEIGHT="'+h+'" NAME="'+banner+'" ALIGN="top" border="0" hspace="0" vspace="0"');
			document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="'+protocol+'//www.macromedia.com/go/getflashplayer">');
			document.write(' <\/EMBED>');
			document.write(' <\/OBJECT>');
		}
		else
			document.write('<IMG SRC="'+banner+'" WIDTH="'+w+'" HEIGHT="'+h+'" border="0" ALT="'+alt+'" hspace=0 vspace=0>');
		return true
	}
	
	// nothing critical, so it's the Satay method.
	function satayBanner(flash,w,h,img,alt) {
		document.write('<object type="application/x-shockwave-flash" data="'+flash+'" width="'+w+'" height="'+h+'" title="'+alt+'">');
		document.write('<param name="movie" value="'+flash+'" />');
		if (img=="") 
			document.write('<img src="'+img+'" width="'+w+'" height="'+h+'" alt="'+alt+'" border=0/>')
		else
			document.write('<span>'+Alt+'<\/span>&nbsp;<span>(Flash Required)<\/span>')
		document.write('<\/object>');
		return true;
	}	
	
  // checks for a valid date.  Let the date object do all teh work, no need for crazy leap year calculations, etc
	function validDate(dMonth,dDay,dYear) {
		// js oddity - months 0..11 
		dMonth--;
    var dDate=new Date(dYear,dMonth,dDay);
		return (dMonth==dDate.getMonth()) && (dDay==dDate.getDate()) && (dYear==dDate.getFullYear()) 
	}
	
	function radioChecked(radio)
	{
	  var checked=false;
		// single radio button
		if ((radio.type) && (radio.type=="radio")) {
		  if (radio.checked) checked=true;
		}
		// multiple radio buttons
		if (radio.length) {
  		for(var i=0; i<radio.length; i++) {
        if ((radio[i].type) && (radio[i].type=="radio"))
				  if (radio[i].checked) checked=true;
      }
		}		
  	return checked;
	}
	
		// js oddity - no pass by ref.
	function validateField(validated,comparison,field,msg)
	{
		// if the form is still validated, check this field
	  if ((validated) && (comparison)) 
		{
		  if (field.focus) field.focus();
		  alert(msg);
			return false;
		}
		return validated;	
	}
	
//-->
