<!--
var browser = 0;
	agent = navigator.userAgent;
		if (agent.substring(0,7) == "Mozilla"){if (parseInt(agent.substring(8,9)) >= 4) {browser=4}
	}

var flashtest = 0
function MM_checkPlugin(plugin,IEGoesToURL) { //v2.0
  if ((navigator.plugins && navigator.plugins[plugin] && 
	 navigator.appName.indexOf('Microsoft') != -1 ) || 
      (IEGoesToURL &&  
       navigator.appName.indexOf('Microsoft') != -1 &&
       navigator.appVersion.indexOf('Mac') == -1 &&
       navigator.appVersion.indexOf('3.1') == -1)) {
    flashtest = 1;
  } else {
    flashtest = 0;
  }
  document.MM_returnValue = false;
}

MM_checkPlugin('Shockwave Flash',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_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 open_photo( url )
{
	photowin = window.open( url, 'photowin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=1,copyhistory=no,width=650,height=550' );
	photowin.focus();
}


function PreloadNav() {
	MM_preloadImages('images/m_dgbusiness_on.gif','images/m_about_on.gif','images/m_join_off.gif','images/m_confer_on.gif','images/m_pro_on.gif','images/m_news_on.gif','images/m_mem_on.gif');
}

function PreloadSubNavAbout() {
	MM_preloadImages('images/pagemenu/p2_back_on.gif','images/pagemenu/p2_how_on.gif','images/pagemenu/p2_mem_on.gif','images/pagemenu/p2_board_on.gif','images/pagemenu/p2_met_on.gif')
	
}

function open_listwin( url )
{
	listwin = window.open( url, 'listwin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=1,copyhistory=no,width=475,height=500' );
	listwin.focus();
}

function open_mapwin( url )
{
	mapwin = window.open( url, 'mapwin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=1,copyhistory=no,width=580,height=560' );
	mapwin.focus();
}

//Fuctions to mimmick LTrim,  RTrim, and Trim...
//==================================================================
//LTrim(string) : Returns a copy of a string without leading spaces.
//==================================================================
function LTrim(str)
/*
        PURPOSE: Remove leading blanks from our string.
        IN: str - the string we want to LTrim
*/
{
        var whitespace = new String(" \t\n\r");

        var s = new String(str);

        if (whitespace.indexOf(s.charAt(0)) != -1) {
            // We have a string with leading blank(s)...

            var j=0, i = s.length;

            // Iterate from the far left of string until we
            // don't have any more whitespace...
            while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
                j++;


            // Get the substring from the first non-whitespace
            // character to the end of the string...
            s = s.substring(j, i);
        }

        return s;
}

//==================================================================
//RTrim(string) : Returns a copy of a string without trailing spaces.
//=================================================================//=
function RTrim(str)
/*
        PURPOSE: Remove trailing blanks from our string.
        IN: str - the string we want to RTrim

*/
{
        // We don't want to trip JUST spaces, but also tabs,
        // line feeds, etc.  Add anything else you want to
        // "trim" here in Whitespace
        var whitespace = new String(" \t\n\r");

        var s = new String(str);

        if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {
            // We have a string with trailing blank(s)...

            var i = s.length - 1;       // Get length of string

            // Iterate from the far right of string until we
            // don't have any more whitespace...
            while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
                i--;


            // Get the substring from the front of the string to
            // where the last non-whitespace character is...
            s = s.substring(0, i+1);
        }

        return s;
}


//=============================================================
//Trim(string) : Returns a copy of a string without leading or trailing spaces
//=============================================================
function Trim(str)
        /*
                PURPOSE: Remove trailing and leading blanks from our string.
                IN: str - the string we want to Trim

                RETVAL: A Trimmed string!
        */
        {
                return RTrim(LTrim(str));
        }


function validEmail(email) {
	 invalidChars = " /:,;"
	
	if (email == "") {	// cannot be empty
	    //alert("Please enter your email address.");
	    return false
         }
	for (i=0; i<invalidChars.length; i++) {	// does it contain any invalid characters?
	badChar = invalidChars.charAt(i)
	if (email.indexOf(badChar,0) > -1) {
	   return false
	}
      }
      atPos = email.indexOf("@",1)	// there must be one "@" symbol
      if (atPos == -1) {
	 return false
      }
      if (email.indexOf("@",atPos+1) != -1) {	// and only one "@" symbol
	  return false
      }
      periodPos = email.indexOf(".",atPos)
      if (periodPos == -1) {			// and at least one "." after the "@"
	 return false
      }
      if (periodPos+3 > email.length)	{ // must be at least 2 characters after the "."
	 return false
      }
      return true
}

function CheckPresenterForm()
 {
	
	if (document.prop.required_name.value.length=="")
	 {
		alert("Please enter your name.");
		document.prop.required_name.focus();
		return false
		} 

	if (document.prop.required_pro.options[5].selected) {
		if(document.prop.pro_other.value.length=="") {
			alert('Please indicate your professional designation.');
			document.prop.pro_other.focus();
			return false;
			}
		}

	if (document.prop.required_title.options[5].selected) {
		if(document.prop.title_other.value.length=="") {
			alert('Please indicate your title.');
			document.prop.title_other.focus();
			return false;
			}
		}


	if (document.prop.required_company.value.length=="")
	 {
		alert("Please enter your company name.");
		document.prop.required_company.focus();
		return false
		} 

	if (document.prop.required_address.value.length=="")
	 {
		alert("Please enter your address.");
		document.prop.required_address.focus();
		return false
		} 

	if (document.prop.required_phone.value.length=="")
	 {
		alert("Please enter your phone number.");
		document.prop.required_phone.focus();
		return false
		} 

	if (document.prop.required_fax.value.length=="")
	 {
		alert("Please enter your fax number.");
		document.prop.required_fax.focus();
		return false
		} 

	if (document.prop.required_email.value.length=="")
	 {
		alert("Please enter your email address.");
		document.prop.required_email.focus();
		return false
		}

	if (document.prop.required_website.value.length=="")
	 {
		alert("Please enter your web site address.");
		document.prop.required_website.focus();
		return false;
		}
		
	radiochecked = -1
	for (i=0; i<prop.required_co.length; i++) {
		if (prop.required_co[i].checked) {
		radiochecked = i;
		}
	}
	if (radiochecked == -1) {
		alert("Please indicate if you have a co-presenter.");
		return false;
	}
	if (radiochecked == 0) {
		if (document.prop.co_name.value.length==""){
		alert("Please enter co-presenter name.");
		document.prop.co_name.focus();
		return false
		}
		if (document.prop.co_title.value.length==""){
		alert("Please enter co-presenter title.");
		document.prop.co_title.focus();
		return false
		}
		if (document.prop.co_company.value.length==""){
		alert("Please enter co-presenter company name.");
		document.prop.co_company.focus();
		return false
		}
		if (document.prop.co_address.value.length==""){
		alert("Please enter co-presenter company name.");
		document.prop.co_address.focus();
		return false
		}
		if (document.prop.co_phone.value.length==""){
		alert("Please enter co-presenter phone number.");
		document.prop.co_phone.focus();
		return false
		}
		if (document.prop.co_fax.value.length==""){
		alert("Please enter co-presenter fax number.");
		document.prop.co_fax.focus();
		return false
		}
		if (document.prop.co_email.value.length==""){
		alert("Please enter co-presenter email address.");
		document.prop.co_email.focus();
		return false
		}
		if (document.prop.co_web.value.length==""){
		alert("Please enter co-presenter web site address.");
		document.prop.co_web.focus();
		return false
		}
	}

	if (document.prop.required_sessiontitle.value.length=="")
	 {
		alert("Please enter your session title.");
		document.prop.required_sessiontitle.focus();
		return false
		}

	if (document.prop.required_sessionsummary.value.length=="")
	 {
		alert("Please enter your session summary.");
		document.prop.required_sessionsummary.focus();
		return false
		}

	if (document.prop.required_sessionobj.value.length=="")
	 {
		alert("Please briefly describe the learning objectives of your session.");
		document.prop.required_sessionobj.focus();
		return false
		}

	//radiochecked = -1
	//for (i=0; i<prop.required_best.length; i++) {
		//if (prop.required_best[i].checked) {
		//radiochecked = i;
		//}
	//}
	//if (radiochecked == -1) {
		//alert("Please make a selection of the process and style you will use.");
		//return false;
	//}

	radiochecked = -1
	for (i=0; i<prop.required_theme.length; i++) {
		if (prop.required_theme[i].checked) {
		radiochecked = i;
		}
	}
	if (radiochecked == -1) {
		alert("Please make a selection of the theme of your session.");
		return false;
	}

	if (document.prop.required_bio.value.length=="")
	 {
		alert("Please provide a biographical sketch.");
		document.prop.required_bio.focus();
		return false
		}
		
	 if (document.prop.photo.value.length != "")
	 {
		filename = document.prop.photo.value;
		filenamelength = document.prop.photo.value.length;
		validfilename = false;
		if (filenamelength > 4) {
		fileextention = filename.charAt(filenamelength-4) + filename.charAt(filenamelength-3) + filename.charAt(filenamelength-2) + filename.charAt(filenamelength-1) 
			if (fileextention.toLowerCase() == ".jpg") {
				validfilename = true;
			}
		}
		if (validfilename == false) {
			alert("The photo you upload must be a JPEG file, i.e., a .JPG file.");
			document.prop.photo.focus();
			return false;
		}
		
		}

	if (document.prop.required_ref1name.value.length=="")
	 {
		alert("Please enter the name of your first reference.");
		document.prop.required_ref1name.focus();
		return false
		}

	if (document.prop.required_ref1org.value.length=="")
	 {
		alert("Please enter the organization name of your first reference.");
		document.prop.required_ref1org.focus();
		return false
		}

	if (document.prop.required_ref1phone.value.length=="")
	 {
		alert("Please enter the phone number of your first reference.");
		document.prop.required_ref1phone.focus();
		return false
		}

	if (document.prop.required_ref1email.value.length=="")
	 {
		alert("Please enter the email address of your first reference.");
		document.prop.required_ref1email.focus();
		return false
		}

	if (document.prop.required_ref2name.value.length=="")
	 {
		alert("Please enter the name of your second reference.");
		document.prop.required_ref2name.focus();
		return false
		}

	if (document.prop.required_ref2org.value.length=="")
	 {
		alert("Please enter the organization name of your second reference.");
		document.prop.required_ref2org.focus();
		return false
		}

	if (document.prop.required_ref2phone.value.length=="")
	 {
		alert("Please enter the phone number of your second reference.");
		document.prop.required_ref2phone.focus();
		return false
		}

	if (document.prop.required_ref2email.value.length=="")
	 {
		alert("Please enter the email address of your second reference.");
		document.prop.required_ref2email.focus();
		return false
		}

	if (document.prop.required_ref3name.value.length=="")
	 {
		alert("Please enter the name of your third reference.");
		document.prop.required_ref3name.focus();
		return false
		}

	if (document.prop.required_ref3org.value.length=="")
	 {
		alert("Please enter the organization name of your third reference.");
		document.prop.required_ref3org.focus();
		return false
		}

	if (document.prop.required_ref3phone.value.length=="")
	 {
		alert("Please enter the phone number of your third reference.");
		document.prop.required_ref3phone.focus();
		return false
		}

	if (document.prop.required_ref3email.value.length=="")
	 {
		alert("Please enter the email address of your third reference.");
		document.prop.required_ref3email.focus();
		return false
		}

	radiochecked = -1
	for (i=0; i<prop.required_accept.length; i++) {
		if (prop.required_accept[i].checked) {
		radiochecked = i;
		}
	}
	if (radiochecked !== 0) {
		alert("You must accept the terms.");
		return false;
	}

}

function CheckVendorForm()
 {
	if (document.regiform.name.value.length=="")
	 {
		alert("Please enter your name.");
		document.regiform.name.focus();
		return false
		}
	if (document.regiform.title.value.length=="")
	 {
		alert("Please enter your title.");
		document.regiform.title.focus();
		return false
		}
	if (document.regiform.companyname.value.length=="")
	 {
		alert("Please enter your company name.");
		document.regiform.companyname.focus();
		return false
		}
	if (document.regiform.address.value.length=="")
	 {
		alert("Please enter your address.");
		document.regiform.address.focus();
		return false
		}
    if (document.regiform.city.value.length=="")
	 {
		alert("Please enter your city.");
		document.regiform.city.focus();
		return false
   		}
	if (document.regiform.state.value.length=="")
	 {
		alert("Please enter your state.");
		document.regiform.state.focus();
		return false
   		}
    if (document.regiform.zipcode.value.length=="")
    {
		alert("Please enter your zip code.");
		document.regiform.zipcode.focus();
		return false
		}
   // if (document.registration.email.value.length=="")
   // {
	//	alert("Please enter your email address.");
	//	document.registration.email.focus();
	//	return false
	//	}
    if (document.regiform.country.value.length=="")
    {
		alert("Please enter your country.");
		document.regiform.country.focus();
		return false
		}
	if (document.regiform.telephone.value.length =="")
	 {
		alert("Please enter your telephone number.");
		document.regiform.telephone.focus();
		return false
   		}
   	if (document.regiform.fax.value.length =="")
	 {
		alert("Please enter your fax number.");
		document.regiform.fax.focus();
		return false
   		}
   if (!validEmail(document.regiform.email.value)) 
    {
		alert("Please enter a valid email address.")
		document.regiform.email.focus()
		document.regiform.email.select()
		return false
		}
}

function CheckRegiForm()
 {
	if (Trim(document.regiform.name.value).length=="")
	 {
		alert("Please enter your name.");
		document.regiform.name.focus();
		return false
		} 
		
	if (document.regiform.title.options[0].selected) {
		if(document.regiform.title_other.value.length=="") {
			alert('Please indicate your title.');
			document.regiform.title.focus();
			return false;
			}
		}
	
	if (document.regiform.title.options[6].selected) {
		if(document.regiform.title_other.value.length=="") {
			alert('Please indicate your title.');
			document.regiform.title_other.focus();
			return false;
			}
		}

	if (Trim(document.regiform.company.value).length=="")
	 {
		alert("Please enter your company name.");
		document.regiform.company.focus();
		return false
		} 

	if (Trim(document.regiform.address.value).length=="")
	 {
		alert("Please enter your address.");
		document.regiform.address.focus();
		return false
		}
		
	if (Trim(document.regiform.city.value).length=="")
	 {
		alert("Please enter your city.");
		document.regiform.city.focus();
		return false
		}  
	
	if (Trim(document.regiform.state.value).length=="")
	 {
		alert("Please enter your state.");
		document.regiform.state.focus();
		return false
		} 
		
	if (Trim(document.regiform.zip.value).length=="")
	 {
		alert("Please enter your zip.");
		document.regiform.zip.focus();
		return false
		} 
		
	if (Trim(document.regiform.country.value).length=="")
	 {
		alert("Please enter your country.");
		document.regiform.country.focus();
		return false
		} 

	if (Trim(document.regiform.telephone.value).length=="")
	 {
		alert("Please enter your phone number.");
		document.regiform.telephone.focus();
		return false
		} 

	if (validEmail(document.regiform.email.value)== false)
	 {
		alert("Please enter a valid email address.");
		document.regiform.email.focus();
		return false
		}
	
	radiochecked = -1
	for (i=0; i<document.regiform.regioption.length; i++) {
		if (document.regiform.regioption[i].checked) {
		radiochecked = i;
			}
		}
		
	if (radiochecked == -1) {
		alert("Please select a registration option.");
		return false;
		}
	
	radiochecked = -1
	for (i=0; i<document.regiform.payment.length; i++) {
		if (document.regiform.payment[i].checked) {
		radiochecked = i;
			}
		}
	if (radiochecked == -1) {
		alert("Please select a payment option.");
		return false;
		}
	
	if (Trim(document.regiform.accountno.value).length=="")
	 {
		alert("Please enter your account number.");
		document.regiform.accountno.focus();
		return false
		} 
		
	if (Trim(document.regiform.expirationdate.value).length=="")
	 {
		alert("Please enter credit card expiration date.");
		document.regiform.expirationdate.focus();
		return false
		}
		
	if (Trim(document.regiform.nameoncard.value).length=="")
	 {
		alert("Please enter the name on the credit card.");
		document.regiform.nameoncard.focus();
		return false
		}
		
	radiochecked = -1
	for (i=0; i<document.regiform.sessions.length; i++) {
		if (document.regiform.sessions[i].checked) {
		radiochecked = i;
			}
		}
	if (radiochecked == -1) {
		alert("Please check the sessions you want to attend.");
		return false;
		}
}

function CheckEmailForm()
 {
	if (!validEmail(document.registration.email.value)) {
				alert("Please enter a valid email address.")
				document.registration.email.focus()
				document.registration.email.select()
				return false
			}

	if (Trim(document.registration.name.value)=="")
	 {
		alert("Please enter your name.");
		document.registration.name.focus();
		return false
		}

	
	if (Trim(document.registration.organization.value)=="")
	{
		alert("Please enter your organization.");
		document.registration.organization.focus();
		return false
   	}

	if (Trim(document.registration.address1.value)=="")
	{
		alert("Please enter your address.");
		document.registration.address1.focus();
		return false
   	}

	if (Trim(document.registration.city.value)=="")
	{
		alert("Please enter your city.");
		document.registration.city.focus();
		return false
   	}
	
	if (Trim(document.registration.state.value)=="")
	{
		alert("Please enter your state.");
		document.registration.state.focus();
		return false
   	}
	
	if (Trim(document.registration.zip.value)=="")
	{
		alert("Please enter your zip code.");
		document.registration.zip.focus();
		return false
   	}

}

function CheckEmailFormShort()
 {
	if (!validEmail(document.registration.email.value)) {
				alert("Please enter a valid email address.")
				document.registration.email.focus()
				document.registration.email.select()
				return false
			}
}

//-->
