
	function validateAddress(incoming) {
		var emailstring = incoming;
		var ampIndex = emailstring.indexOf("@");
		var afterAmp = emailstring.substring((ampIndex + 1), emailstring.length);
			// find a dot in the portion of the string after the ampersand only
		var dotIndex = afterAmp.indexOf(".");
			// determine dot position in entire string (not just after amp portion)
		dotIndex = dotIndex + ampIndex + 1;
			// afterAmp will be portion of string from ampersand to dot
		afterAmp = emailstring.substring((ampIndex + 1), dotIndex);
			// afterDot will be portion of string from dot to end of string
		var afterDot = emailstring.substring((dotIndex + 1), emailstring.length);
		var beforeAmp = emailstring.substring(0,(ampIndex));
			//old regex did not allow subdomains and dots in names
			//var email_regex = /^[\w\d\!\#\$\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~]+(\.[\w\d\!\#\$\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~])*\@(((\w+[\w\d\-]*[\w\d]\.)+(\w+[\w\d\-]*[\w\d]))|((\d{1,3}\.){3}\d{1,3}))$/;
		var email_regex = /^\w(?:\w|-|\.(?!\.|@))*@\w(?:\w|-|\.(?!\.))*\.\w{2,3}/ 
			// index of -1 means "not found"
		if ((emailstring.indexOf("@") != "-1") &&
			(emailstring.length > 5) &&
			(afterAmp.length > 0) &&
			(beforeAmp.length > 1) &&
			(afterDot.length > 1) &&
			(email_regex.test(emailstring)) ) {
			  return true;
		} else {
				alert("Invalid email address. Please try again.");
				return false;
		}
	}

/* Functions that handle preload. */
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];}}
}

// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
 if (document.images)
 {var imglist = new Array (
  "Http://207.67.138.24/assets/images/btn_radioShow_f2.gif"
,
 "Http://207.67.138.24/assets/images/btn_workshops_f2.gif"
,
 "Http://207.67.138.24/assets/images/btn_1031exchange_f2.gif"
,
 "Http://207.67.138.24/assets/images/btn_findAdvisor_f2.gif"
,
 "Http://207.67.138.24/assets/images/btn_investments_f2.gif"
,
 "Http://207.67.138.24/assets/images/btn_newsletter_f2.gif"
,
 "Http://207.67.138.24/assets/images/btn_links_f2.gif"
,
 "Http://207.67.138.24/assets/images/btn_aboutus_f2.gif"
 );
 var imgs = new Array(); var count;
 for (count=0; count<imglist.length; count++)
 {imgs[count]=new Image(); imgs[count].src=imglist[count];}
 }
 function hilite(name,m)
 {if (document.images)
 {imgswap(name, imgs[m])}
 }
 function imgswap(i1,i2)
 {if (document.images)
 {var temp = i1.src; i1.src=i2.src; i2.src=temp;}
 }
 
window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS4 = (bName == "Netscape" && bVer >= 4);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 var menuActive = 0
 var menuOn = 0
 var onLayer
 var timeOn = null// LAYER SWITCHING CODE
if (NS4 || IE4) {
 if (navigator.appName == "Netscape") {
 layerStyleRef="layer.";
 layerRef="document.layers";
 styleSwitch="";
 }else{
 layerStyleRef="layer.style.";
 layerRef="document.all";
 styleSwitch=".style";
 }
}
 
// SHOW MENU
function showLayer(layerName){
if (NS4 || IE4) {
 if (timeOn != null) {
 clearTimeout(timeOn)
 hideLayer(onLayer)
 }
 //if (NS4 || IE4) {
 //eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
 //} 
 if(document.getElementById){ //IE 5 and NS 6
document.getElementById(layerName).style.visibility = 'visible';
} else if (document.layers) { // NS4
eval("document.container.document."+layerName+".visibility = 'visible'");
} else if (document.all) { // MSIE
eval("document.all."+layerName+".style.visibility = 'visible'");
}
 onLayer = layerName
 }
}// HIDE MENU
function hideLayer(layerName){
 if (menuActive == 0) {
 //if (NS4 || IE4) {
 //eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
 //}
  if(document.getElementById){ //IE 5 and NS 6
document.getElementById(layerName).style.visibility = 'hidden';
} else if (document.layers) { // NS4
eval("document.container.document."+layerName+".visibility = 'hidden'");
} else if (document.all) { // MSIE
eval("document.all."+layerName+".style.visibility = 'hidden'");
}
 }
}// TIMER FOR BUTTON MOUSE OUT
function btnTimer() {
 timeOn = setTimeout("btnOut()",1000)
}// BUTTON MOUSE OUT
function btnOut(layerName) {
 if (menuActive == 0) {
 hideLayer(onLayer)
 }
}// MENU MOUSE OVER 
function menuOver(itemName) {
 clearTimeout(timeOn)
 menuActive = 1
}// MENU MOUSE OUT 
function menuOut(itemName) {
 menuActive = 0 
 timeOn = setTimeout("hideLayer(onLayer)", 400)
 }