function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function open_window(theURL) { //v2.0
  window.open(theURL,"","toolbar=yes,scrollbars=yes,resizable=yes,width=700");
}

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];}}
}

function checkForm(form) {
if (!IsEmpty(form.first_name.value,"a First Name")) {
	if (!IsEmpty(form.last_name.value,"a Last Name")) {
		if (!IsEmpty(form.company_name.value,"a Company Name")) {
			if (!IsEmpty(form.business_phone.value,"a Business Phone Number")) {
				if (!IsEmpty(form.email.value,"an Email Address")) {
					var i = getSelectedButton(form.how)
					if (i==99) {
						alert("You must enter How to Receive your Demo")}
					else {	
						return true
					}
				}
			}
		}
	}
}

return false
}

function IsEmpty(inputstr,fieldname) {
if (inputstr==null || inputstr=="") {
	alert ("You must enter "+fieldname)
	return true
}
return false
}
function getSelectedButton(buttonGroup) {
for (var i = 0; i < buttonGroup.length; i++) {
 	if (buttonGroup[i].checked) {
		return i
	}
}
return 99 
}

function mmLoadMenus() {
  if (window.mm_menu_0901152005_0) return;
      window.mm_menu_0901152005_0 = new Menu("root",189,17,"Verdana, Arial, Helvetica, sans-serif",11,"#000000","#FFFFFF","#CCD7FF","#00005E","left","middle",3,0,300,-5,7,true,true,true,0,false,true);
  mm_menu_0901152005_0.addMenuItem("Mission","location='template.php?section=AM'");
  mm_menu_0901152005_0.addMenuItem("Fact&nbsp;Sheet","location='template.php?section=AF'");
  mm_menu_0901152005_0.addMenuItem("Industry&nbsp;Perspective","location='template.php?section=AI'");
  mm_menu_0901152005_0.addMenuItem("Current&nbsp;Customer&nbsp;Installations","location='template.php?section=AC'");
  mm_menu_0901152005_0.addMenuItem("FAQs","location='template.php?section=AQ'");
  mm_menu_0901152005_0.addMenuItem("Partners","location='template.php?section=AP'");
  mm_menu_0901152005_0.addMenuItem("Testimonials","location='template.php?section=AT'");
   mm_menu_0901152005_0.hideOnMouseOut=true;
   mm_menu_0901152005_0.bgColor='#555555';
   mm_menu_0901152005_0.menuBorder=1;
   mm_menu_0901152005_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0901152005_0.menuBorderBgColor='#777777';

    window.mm_menu_0523191129_0 = new Menu("root",92,17,"Verdana, Arial, Helvetica, sans-serif",11,"#000000","#FFFFFF","#CCD7FF","#00005E","left","middle",3,0,300,-5,7,true,true,true,0,true,true);
  mm_menu_0523191129_0.addMenuItem("By&nbsp;Feature","location='template.php?section=SF'");
  mm_menu_0523191129_0.addMenuItem("By&nbsp;Solution","location='template.php?section=SS'");
  mm_menu_0523191129_0.addMenuItem("By&nbsp;State","location='template.php?section=ST'");
   mm_menu_0523191129_0.hideOnMouseOut=true;
   mm_menu_0523191129_0.bgColor='#555555';
   mm_menu_0523191129_0.menuBorder=1;
   mm_menu_0523191129_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0523191129_0.menuBorderBgColor='#777777';

mm_menu_0523191129_0.writeMenus();
} 