function validate(frm)
{
	var completed = true;
	var confirmed = true;
	for(var i=0; i < frm.elements.length; i++)
	{
		if(frm.elements[i].value == '' && frm.elements[i].optional != 'true')
		{
			completed = false;
			frm.elements[i].style.backgroundColor = '#ff0000';
		}
		else if(frm.elements[i].name.substring(0,8) == 'confirm_')
		{
			if(frm.elements[i].value != frm.elements[frm.elements[i].name.substring(8)].value)
			{
				confirmed = false;
				frm.elements[i].style.backgroundColor = '#ff0000';
			}
			else
			{
				frm.elements[i].style.backgroundColor = '#ffffff';
			}
		}
		else
		{
			frm.elements[i].style.backgroundColor = '#ffffff';
		}
	}
	if(!completed && confirmed)
	{
		alert('Please complete the required fields in red.');
	}
	else if(completed && !confirmed)
	{
		alert('Please ensure that your email address is entered correctly twice.');
	}
	else if(!completed && !confirmed)
	{
		alert('Please complete the required fields in red and ensure that your email address is entered correctly twice.');
	}
	return completed && confirmed;
}


//Compressed CSS Styles
//document.write('<!--%%%%%%%%%%%% MyCSSMenu Styles [Keep in head for full validation!] %%%%%%%%%%%--><style type="text/css">/*!!!!!!!!!!! MyCSSMenu Core CSS [Do Not Modify!] !!!!!!!!!!!!!*/.qmmc .qmdivider{display:block;font-size:1px;border-width:0px;border-style:solid;position:relative;z-index:1;}.qmmc .qmdividery{float:left;width:0px;}.qmmc .qmtitle{display:block;cursor:default;white-space:nowrap;position:relative;z-index:1;}.qmclear {font-size:1px;height:0px;width:0px;clear:left;line-height:0px;display:block;float:none !important;}.qmmc {position:relative;zoom:1;z-index:10;}.qmmc a, .qmmc li {float:left;display:block;white-space:nowrap;position:relative;z-index:1;}.qmmc div a, .qmmc ul a, .qmmc ul li {float:none;}.qmsh div a {float:left;}.qmmc div{visibility:hidden;position:absolute;}/*!!!!!!!!!!! MyCSSMenu Styles [Please Modify!] !!!!!!!!!!!*//* MyCSSMenu 0 */#qm0{background-color:#ffffff;background-image:url(images/bg.gif);border-width:1px 0px;border-style:solid;border-color:#000000;}#qm0 a{padding:5px 20px 5px 8px;background-color:transparent;color:#ffffff;font-family:Arial;font-size:12px;text-decoration:none;border-width:0px 0px 0px 1px;border-style:solid;border-color:#000000;}#qm0 a:hover{background-color:#f4c60b;color:#000000;text-decoration:underline;}body #qm0 .qmactive, body #qm0 .qmactive:hover{background-color:#f4c60b;color:#000000;text-decoration:underline;}#qm0 div{padding:5px;margin:0px;background-color:#3a65aa;border-width:1px;border-style:solid;border-color:#333333;}#qm0 div a{padding:3px 30px 3px 5px;color:#333333;font-size:11px;border-width:0px 1px;border-style:solid;border-color:#d6dce2;}#qm0 div a:hover{background-color:#f4c60b;color:#000000;text-decoration:none;border-color:#666666;}body #qm0 div .qmactive, body #qm0 div .qmactive:hover{background-color:#eff4fa;color:#000000;text-decoration:underline;border-color:#666666;}#qm0 .qmritem span{border-color:#666666;background-color:#eeeeee;}#qm0 .qmritemcontent{padding:0px 0px 0px 4px;}#qm0 div .qmritem span{border-color:#666666;background-color:#eeeeee;}#qm0 div .qmritemcontent{padding:0px 0px 0px 4px;}</style>');

//Core MyCSSMenu Code
var qm_si,qm_li,qm_lo,qm_tt,qm_th,qm_ts,qm_la,qm_ic,qm_ib;var qp="parentNode";var qc="className";var qm_t=navigator.userAgent;var qm_o=qm_t.indexOf("Opera")+1;var qm_s=qm_t.indexOf("afari")+1;var qm_s2=qm_s&&qm_t.indexOf("ersion/2")+1;var qm_s3=qm_s&&qm_t.indexOf("ersion/3")+1;var qm_n=qm_t.indexOf("Netscape")+1;var qm_v=parseFloat(navigator.vendorSub);;function qm_create(sd,v,ts,th,oc,rl,sh,fl,ft,aux,l){var w="onmouseover";var ww=w;var e="onclick";if(oc){if(oc=="all"||(oc=="lev2"&&l>=2)){w=e;ts=0;}if(oc=="all"||oc=="main"){ww=e;th=0;}}if(!l){l=1;qm_th=th;sd=document.getElementById("qm"+sd);if(window.qm_pure)sd=qm_pure(sd);sd[w]=function(e){qm_kille(e)};document[ww]=qm_bo;if(oc=="main"){qm_ib=true;sd[e]=function(event){qm_ic=true;qm_oo(new Object(),qm_la,1);qm_kille(event)};document.onmouseover=function(){qm_la=null;clearTimeout(qm_tt);qm_tt=null;};}sd.style.zoom=1;if(sh)x2("qmsh",sd,1);if(!v)sd.ch=1;}else  if(sh)sd.ch=1;if(oc)sd.oc=oc;if(sh)sd.sh=1;if(fl)sd.fl=1;if(ft)sd.ft=1;if(rl)sd.rl=1;sd.style.zIndex=l+""+1;var lsp;var sp=sd.childNodes;for(var i=0;i<sp.length;i++){var b=sp[i];if(b.tagName=="A"){lsp=b;b[w]=qm_oo;if(w==e)b.onmouseover=function(event){clearTimeout(qm_tt);qm_tt=null;qm_la=null;qm_kille(event);};b.qmts=ts;if(l==1&&v){b.style.styleFloat="none";b.style.cssFloat="none";}}else  if(b.tagName=="DIV"){if(window.showHelp&&!window.XMLHttpRequest)sp[i].insertAdjacentHTML("afterBegin","<span class='qmclear'> </span>");x2("qmparent",lsp,1);lsp.cdiv=b;b.idiv=lsp;if(qm_n&&qm_v<8&&!b.style.width)b.style.width=b.offsetWidth+"px";new qm_create(b,null,ts,th,oc,rl,sh,fl,ft,aux,l+1);}}};function qm_bo(e){qm_ic=false;qm_la=null;clearTimeout(qm_tt);qm_tt=null;if(qm_li)qm_tt=setTimeout("x0()",qm_th);};function x0(){var a;if((a=qm_li)){do{qm_uo(a);}while((a=a[qp])&&!qm_a(a))}qm_li=null;};function qm_a(a){if(a[qc].indexOf("qmmc")+1)return 1;};function qm_uo(a,go){if(!go&&a.qmtree)return;if(window.qmad&&qmad.bhide)eval(qmad.bhide);a.style.visibility="";x2("qmactive",a.idiv);};;function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-(parseInt(b/2)*2)));};function qm_oo(e,o,nt){if(!o)o=this;if(qm_la==o&&!nt)return;if(window.qmv_a&&!nt)qmv_a(o);if(window.qmwait){qm_kille(e);return;}clearTimeout(qm_tt);qm_tt=null;qm_la=o;if(!nt&&o.qmts){qm_si=o;qm_tt=setTimeout("qm_oo(new Object(),qm_si,1)",o.qmts);return;}var a=o;if(a[qp].isrun){qm_kille(e);return;}if(qm_ib&&!qm_ic)return;var go=true;while((a=a[qp])&&!qm_a(a)){if(a==qm_li)go=false;}if(qm_li&&go){a=o;if((!a.cdiv)||(a.cdiv&&a.cdiv!=qm_li))qm_uo(qm_li);a=qm_li;while((a=a[qp])&&!qm_a(a)){if(a!=o[qp]&&a!=o.cdiv)qm_uo(a);else break;}}var b=o;var c=o.cdiv;if(b.cdiv){var aw=b.offsetWidth;var ah=b.offsetHeight;var ax=b.offsetLeft;var ay=b.offsetTop;if(c[qp].ch){aw=0;if(c.fl)ax=0;}else {if(c.ft)ay=0;if(c.rl){ax=ax-c.offsetWidth;aw=0;}ah=0;}if(qm_o){ax-=b[qp].clientLeft;ay-=b[qp].clientTop;}if(qm_s2&&!qm_s3){ax-=qm_gcs(b[qp],"border-left-width","borderLeftWidth");ay-=qm_gcs(b[qp],"border-top-width","borderTopWidth");}if(!c.ismove){c.style.left=(ax+aw)+"px";c.style.top=(ay+ah)+"px";}x2("qmactive",o,1);if(window.qmad&&qmad.bvis)eval(qmad.bvis);c.style.visibility="inherit";qm_li=c;}else  if(!qm_a(b[qp]))qm_li=b[qp];else qm_li=null;qm_kille(e);};function qm_gcs(obj,sname,jname){var v;if(document.defaultView&&document.defaultView.getComputedStyle)v=document.defaultView.getComputedStyle(obj,null).getPropertyValue(sname);else  if(obj.currentStyle)v=obj.currentStyle[jname];if(v&&!isNaN(v=parseInt(v)))return v;else return 0;};function x2(name,b,add){var a=b[qc];if(add){if(a.indexOf(name)==-1)b[qc]+=(a?' ':'')+name;}else {b[qc]=a.replace(" "+name,"");b[qc]=b[qc].replace(name,"");}};function qm_kille(e){if(!e)e=event;e.cancelBubble=true;if(e.stopPropagation&&!(qm_s&&e.type=="click"))e.stopPropagation();}

//Add-On Core Code (Remove when not using any add-on's)
document.write('<style type="text/css">.qmfv{visibility:visible !important;}.qmfh{visibility:hidden !important;}</style><script type="text/JavaScript">var qmad = new Object();qmad.bvis="";qmad.bhide="";</script>');


	/*******  Menu 0 Add-On Settings *******/
	var a = qmad.qm0 = new Object();

	// Drop Shadow Add On
	a.shadow_offset = 3;


//Add-On Code: Drop Shadow
qmad.shadow=new Object();if(qmad.bvis.indexOf("qm_drop_shadow(b.cdiv);")==-1)qmad.bvis+="qm_drop_shadow(b.cdiv);";if(qmad.bhide.indexOf("qm_drop_shadow(a,1);")==-1)qmad.bhide+="qm_drop_shadow(a,1);";;function qm_drop_shadow(a,hide,force){var z;if(!hide&&((z=window.qmv)&&(z=z.addons)&&(z=z.drop_shadow)&&!z["on"+qm_index(a)]))return;if((!hide&&!a.hasshadow)||force){var ss;if(!a.settingsid){var v=a;while((v=v.parentNode)){if(v.className.indexOf("qmmc")+1){a.settingsid=v.id;break;}}}ss=qmad[a.settingsid];if(!ss)return;if(isNaN(ss.shadow_offset))return;qmad.shadow.offset=ss.shadow_offset;var f=document.createElement("SPAN");x2("qmshadow",f,1);var fs=f.style;fs.position="absolute";fs.display="block";fs.backgroundColor="#999999";fs.visibility="inherit";var sh;if((sh=ss.shadow_opacity)){f.style.opacity=sh;f.style.filter="alpha(opacity="+(sh*100)+")";}if((sh=ss.shadow_color))f.style.backgroundColor=sh;f=a.parentNode.appendChild(f);a.hasshadow=f;}var c=qmad.shadow.offset;var b=a.hasshadow;if(b){if(hide)b.style.visibility="hidden";else {b.style.width=a.offsetWidth+"px";b.style.height=a.offsetHeight+"px";var ft=0;var fl=0;if(qm_o){ft=b[qp].clientTop;fl=b[qp].clientLeft;}if(qm_s2){ft=qm_gcs(b[qp],"border-top-width","borderTopWidth");fl=qm_gcs(b[qp],"border-left-width","borderLeftWidth");}b.style.top=a.offsetTop+c-ft+"px";b.style.left=a.offsetLeft+c-fl+"px";b.style.visibility="inherit";}}}

//Compressed Menu Structure
//document.write('<div id="qm0" class="qmmc"><a href="javascript:void(0)">Company</a><div><a href="buy_now.html">Purchase Software</a><a href="contact.html">Customer Service</a><a href="contact.html">Tech. Support</a><a href="specs.html">Product Comparison</a><a href="javascript:void(0)">Product Overviews</a><div style="width:7em;"><a href="im_overview.html">Infnite Menus</a><a href="qm_overview.html">MyCSSMenu</a></div><a href="javascript:void(0)">Our Customers</a><div style="width:7em;"><a href="http://www.fedex.com/us/">Fex-Ex</a><a href="http://www.tyco.com">Tyco</a><a href="http://www.bestbuy.com">Best Buy</a><a href="http://www.kofax.com/">Kofax</a><a href="http://www.rayovac.com/">Rayovac</a><a href="http://www.bea.com/">BEA</a><a href="http://www.polycom.com/">Polycom</a><a href="http://www.act.com/">Act</a><a href="http://www.delta.com/">Delta</a></div><a href="who_we_are.html">Who We Are</a></div><a href="javascript:void(0)">Customers</a><div><a href="http://www.fedex.com/us/">Fex-Ex</a><a href="http://www.tyco.com">Tyco</a><a href="http://www.bestbuy.com">Best Buy</a><a href="http://www.kofax.com/">Kofax</a><a href="http://www.rayovac.com/">Rayovac</a><a href="http://www.bea.com/">BEA</a><a href="http://www.polycom.com/">Polycom</a><a href="http://www.act.com/">Act</a><a href="http://www.delta.com/">Delta</a></div><a href="javascript:void(0)">MyCSSMenu</a><div><a href="qm_overview.html">Overview</a><a href="specs.html">Specifications</a><a href="specs.html">Browser Support</a><a href="qm_overview.html">Sample Menus</a><a href="download.html">Download</a></div><a href="javascript:void(0)">Infinite Menus</a><div><a href="im_overview.html">Overview</a><a href="specs.html">Specifications</a><a href="specs.html">Browser Support</a><a href="im_overview.html">Screen Shots</a><a href="download.html">Download</a></div><a href="buy_now.html">Buy Now!</a><span class="qmclear"> </span></div><script type="text/javascript">qm_create(0,false,0,500,false,false,false,false,false);</script>');
