	var ns4 = (document.layers);
	var ie4 = (document.all && !document.getElementById);
	var ie5 = (document.all && document.getElementById);
	var ns6 = (!document.all && document.getElementById);
	var tid;
	var dest,sandh,tot,str,temp;
	var msg;

	function checkProfile() {
		if (document.form1.donothing.value='1') {return true;}
		if (document.form1.fname.value=="" && document.form1.lname.value=="") {
			alert("Please enter at least a LAST NAME ...");document.form1.fname.focus();return false;
		}
		if (document.form1.uname.value=="") {alert("Please SELECT A USERNAME ...");document.form1.uname.focus();return false;}
		if (document.form1.pword.value=="") {alert("Please ENTER A PASSWORD ...");document.form1.pword.focus();return false;}
		if (document.form1.street.value=="") {alert("Please enter your STREET ADDRESS ...");document.form1.street.focus();return false;}
		if (document.form1.city.value=="") {alert("Please enter your CITY NAME ...");document.form1.city.focus();return false;}
		if (document.form1.zip.value=="") {alert("Please enter your POSTAL CODE ...");document.form1.zip.focus();return false;}
		if (document.form1.email.value=="") {alert("Please enter your E-MAIL ADDRESS ...");document.form1.email.focus();return false;}
		return true;
	}
	function help(what) {
		if (what=="confReg") {
			var msg="CONFERENCE REGISTRATION:\n";
			msg=msg+"Conference Registration is required to attend the Seminars.\n\n";
			msg=msg+"FOR EXAMPLE:\n";
			msg=msg+"Your spouse will accompany you to the Conference, but only you will attend the Seminars -\n";
			msg=msg+"in this case, only 1 Conference Registration is required.\n\n";
			msg=msg+"If you BOTH wish to attend one or more Seminars, 2 Conference Registrations are required.\n\n";
		}
		else if (what=="cart") {
			var msg="TO CHANGE A QUANTITY:\n";
			msg=msg+"Type the new Quantity in the box and click on 'Recalculate'.\n\n";
			msg=msg+"TO REMOVE AN ITEM:\n";
			msg=msg+"Type '0' as the new Quantity and click on 'Recalculate'.\n\n";
			msg=msg+"TO REMOVE ALL ITEMS:\n";
			msg=msg+"Click on 'Empty Cart'.\n\n";
		}
		else if (what="conLunch") {
			var msg="This is a lunch for those registered people who attend the Saturday Conference Session.\n\n";
		}
		else if (what="passports") {
			var msg="A valid Passport must be in the posession of every person entering Canada and,\n";
			msg=msg+"more importantly, RE-ENTERING THE UNITED STATES.  One person without a Passport\n";
			msg=msg+"at the border crossing into Canada will cause the entire group to be refused entrance.\n\n";
			msg=msg+"Please understand that we will not allow anyone without a Passport to board the\n";
			msg=msg+"bus in Buffalo, NY ...\n\n";
		}
		else if (what=="conreg") {
			var msg="This is the number of people who will be attending the SATURDAY CONFERENCE SESSIONS\n";
			msg=msg+"and the SUNDAY ROUND TABLE DISCUSSIONS ... it does not include additional people\n";
			msg=msg+"in your party who may attend other events on the schedule - spouses, children, etc.\n\n";
			msg=msg+"For example, if you and your companion are coming to Buffalo, and you will be attending\n";
			msg=msg+"the Saturday and Sunday Conference Sessions, while your companion goes on the Erie Canal\n";
			msg=msg+"tour, you would select 1 Conference Registration and 1 Spouse Tour Erie Canal -- your\n";
			msg=msg+"companion DOES NOT HAVE TO REGISTER ...\n\n";
		}
		else if (what=="login") {
			var msg="Certain pages of our web site are For Members Only.\n\n";
			msg=msg+"If you're already a Member, you can log in as follows:\n";
			msg=msg+"> USERNAME: Enter your e-mail address\n";
			msg=msg+"> PASSWORD: Enter your Membership Number (look on your JOURNAL mailing label).\n\n";
			msg=msg+"Once logged in, you can EDIT YOUR PROFILE to change your Password.\n\n";
			msg=msg+"If you have trouble logging in, please e-mail Webmaster@TheNRG.org for assistance.\n";
		}
		else if (what=="number") {
			var msg="Please enter JUST the numbers - no spaces or dashes ...";
		}
		else if (what=="email") {
			var msg="Our web site has the ability to forward e-mails to you from other\n";
			msg=msg+"Members ... your personal e-mail address is never shown, even to\n";
			msg=msg+"the sender - we forward the messages securely offline. And this\n";
			msg=msg+"option is restricted to fellow Members of the NRG who are logged in.\n";
		}
		alert(msg);
		return;
	}
	function findPosX(obj) {
		var curleft = 0;
		if (obj.offsetParent) {
			while (obj.offsetParent) {
				curleft += obj.offsetLeft
				obj = obj.offsetParent;
			}
		}
		else if (obj.x) {curleft += obj.x;}
		return curleft;
	}
	
	function findPosY(obj) {
		var curtop = 0;
		if (obj.offsetParent) {
			while (obj.offsetParent) {
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y) {curtop += obj.y;}
		return curtop;
	}

	function hideall() {
		clearTimeout(tid);
		var len = childrenNames.length;
		for (i=0;i<childrenNames.length;i++) {
			hide(childrenNames[i]);
		}
	}
	
	function reveal(id,button) {
		var o;
		childoffset_x = 10;
		childoffset_y = -100;
		if (document.getElementById) {
			   o = document.getElementById(button);
		}
		else if (document.all) {
			   o = document.all[button];
		}
		else if (document.layers) {
			if (document.layers[button]) {
				o = document.layers[button];
			}
			else {
			    o = document.layers.testP.layers[button];
			}
		}
		if(ns4)				{	// Netscape 4
			document.layers[id].left       = findPosX(o)+childoffset_x;
			document.layers[id].top        = findPosY(o)+childoffset_y;
			document.layers[id].height     = childheight;
			document.layers[id].visibility = "show";
		}
		else if(ie4)		{	// Explorer 4
			document.all[id].style.left       = findPosfindPosX(o)+childoffset_x;
			document.all[id].style.top        = findPosY(o)+childoffset_y;
			document.all[id].style.height     = childheight;
			document.all[id].style.visibility = "visible";
		}
		else if(ie5 || ns6) {	// Explorer 5+ and Netscape 6+
			document.getElementById(id).style.left       = findPosX(o)+childoffset_x;
			document.getElementById(id).style.top        = findPosY(o)+childoffset_y;
			document.getElementById(id).style.height     = childheight;
			document.getElementById(id).style.visibility = "visible";
		}
	}

	function hide(id){
		if(ns4)				{document.layers[id].visibility = "hide";}					// Netscape 4
		else if(ie4)		{document.all[id].style.visibility = "hidden";}				// Explorer 4
		else if(ie5 || ns6)	{document.getElementById(id).style.visibility = "hidden";}	// Explorer 5+ and Netscape 6+
	}

	function FP_swapImg() {//v1.0 
		var doc=document,args=arguments,elm,n;
		doc.$imgSwaps=new Array();
		for(n=2; n<args.length;n+=2) {
			elm=FP_getObjectByID(args[n]);
			if(elm) {
				doc.$imgSwaps[doc.$imgSwaps.length]=elm;
				elm.$src=elm.src; elm.src=args[n+1];
			}
		}
	}
	
	function FP_preloadImgs() {//v1.0 
		var d=document,a=arguments;
		if(!d.FP_imgs) {d.FP_imgs=new Array();}
		for(var i=0; i<a.length; i++) {
			d.FP_imgs[i]=new Image;
			d.FP_imgs[i].src=a[i];
		}
	}
	
	function FP_getObjectByID(id,o) {//v1.0 
	 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
	 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
	 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
	 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
	 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
	 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
	 return null;
	}
	
	function FP_changeProp() {//v1.0 
	 var args=arguments,d=document,i,j,id=args[0],o=FP_getObjectByID(id),s,ao,v,x;
	 d.$cpe=new Array(); if(o) for(i=2; i<args.length; i+=2) { v=args[i+1]; s="o"; 
	 ao=args[i].split("."); for(j=0; j<ao.length; j++) { s+="."+ao[j]; if(null==eval(s)) { 
	  s=null; break; } } x=new Object; x.o=o; x.n=new Array(); x.v=new Array();
	 x.n[x.n.length]=s; eval("x.v[x.v.length]="+s); d.$cpe[d.$cpe.length]=x;
	 if(s) eval(s+"=v"); }
	}
	
	function loader() {
		FP_preloadImgs(
			'graphics/button2A.jpg',
			'graphics/button2E.jpg',
			'graphics/button15.jpg',
			'graphics/button1E.jpg',
			'graphics/button83.jpg',
			'graphics/button44.jpg',
			'graphics/button3E.jpg',
			'graphics/button5E.jpg',
			'graphics/buttonReadingRmOff.jpg',
			'graphics/button4B1.jpg',
			'graphics/button55.jpg',
			'graphics/button59.jpg',
			'graphics/button57.jpg'
		);
	}
	
