function disableSubmit() {
  document.form.Submit.disabled = true;
  document.form.submit();
}

function validateUpgrade ()
{
if (document.form.first_name.value == "")
  {
  alert("Please enter your first_name.");
  document.form.first_name.focus();
  return false;
  }
if (document.form.last_name.value == "")
  {
  alert("Please enter your last_name.");
  document.form.last_name.focus();
  return false;
  }
if (document.form.m_type[1].checked == true && document.form.company.value == "")
  {
  alert("Please enter your company name.");
  document.form.company.focus();
  return false;
  }
// if (!document.form.email.value.match(/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i)){
if (!document.form.email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your Email or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.");
 document.form.email.focus();
	return false;
	}
if (document.form.email.value != document.form.email2.value)
  {
  alert("Please correct your email addresses.\n\nEmail and Confirm Email must match!");
  document.form.email.focus();
  return false;
  }
if (document.form.address1.value == "")
  {
  alert("Please enter your address.");
  document.form.address1.focus();
  return false;
  }
if (document.form.city.value == "")
  {
  alert("Please enter your city.");
  document.form.city.focus();
  return false;
  }
if (document.form.state.value == "")
  {
  alert("Please enter your state.");
  document.form.state.focus();
  return false;
  }
if (document.form.country.value == "")
  {
  alert("Please enter your country.");
  document.form.country.focus();
  return false;
  }
if (document.form.zip.value == "")
  {
  alert("Please enter your zip.");
  document.form.zip.focus();
  return false;
  }
if (document.form.phone_day.value == "")
  {
  alert("Please enter your day phone.");
  document.form.phone_day.focus();
  return false;
  }
if (document.form.phone_evening.value == "")
  {
  alert("Please enter your evening phone.");
  document.form.phone_evening.focus();
  return false;
  }
if (document.form.ssn.value == "" && document.form.country.value == "US")
  {
  alert("Please enter your SS# or Tax ID#.");
  document.form.ssn.focus();
  return false;
  }
if (document.form.paypal && document.form.paypal.value == "" && document.form.paytype[1].checked == 1)
  {
  alert("Please enter your Paypal email address.");
  document.form.paypal.focus();
  return false;
  }
if (document.form.cctype.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter your credit card type.");
  document.form.cctype.focus();
  return false;
  }
if (document.form.ccnumber.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter your credit card number.");
  document.form.ccnumber.focus();
  return false;
  }
if (document.form.cccvm.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter your CVM.");
  document.form.cccvm.focus();
  return false;
  }
if (document.form.ccmonth.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter your credit card expiration month.");
  document.form.ccmonth.focus();
  return false;
  }
if (document.form.ccyear.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter your credit card expiration year.");
  document.form.ccyear.focus();
  return false;
  }
if (document.form.ccname.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter the name on your credit card.");
  document.form.ccname.focus();
  return false;
  }
if (document.form.ccaddress1.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter your credit card address.");
  document.form.ccaddress1.focus();
  return false;
  }
if (document.form.cccity.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter your credit card city.");
  document.form.cccity.focus();
  return false;
  }
if (document.form.ccstate.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter your credit card state.");
  document.form.ccstate.focus();
  return false;
  }
if (document.form.cccountry.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter your credit card country.");
  document.form.cccountry.focus();
  return false;
  }
if (document.form.cczip.value == "" && document.form.paytype[0].checked == 1)
  {
  alert("Please enter your credit card zip.");
  document.form.cczip.focus();
  return false;
  }
if (!document.form.tos1.checked)
  {
  alert("You must read and agree to all Terms of Service.");
  document.form.tos1.focus();
  return false;
  }
if (!document.form.tos2.checked)
  {
  alert("You must read and agree to all Terms of Service.");
  document.form.tos2.focus();
  return false;
  }
}

function optinCheck()
{

if (document.form.first_name.value == "")
  {
  alert("Please enter your First Name.");
  document.form.first_name.focus();
  return false;
  }
if (document.form.last_name.value == "")
  {
  alert("Please enter your Last Name.");
  document.form.last_name.focus();
  return false;
  }

if (!document.form.email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your Email or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.");
 document.form.email.focus();
	return false;
	}
if (document.form.phone_evening.value == "")
  {
  alert("Please enter your Evening Phone Number.");
  document.form.phone_evening.focus();
  return false;
  }
if (document.form.pwd.value == "")
  {
  alert("Please enter your Password.");
  document.form.pwd.focus();
  return false;
  }
if (document.form.pwd2.value == "")
  {
  alert("Please confirm your Password.");
  document.form.pwd2.focus();
  return false;
  }
if (document.form.pwd.value != document.form.pwd2.value)
  {
  alert("You passwords do not match.");
  document.form.pwd.value = "";
  document.form.pwd2.value = "";
  document.form.pwd.focus();
  return false;
  }
if (document.form.pwd.value.length < 6)
  {
  alert("Your password must contain at least 6 characters.");
  document.form.pwd.focus();
  return false;
  }
}

function optenCheck()
{

if (document.form.first.value == "")
  {
  alert("Please enter your First Name.");
  document.form.first.focus();
  return false;
  }
if (document.form.last.value == "")
  {
  alert("Please enter your Last Name.");
  document.form.last.focus();
  return false;
  }
if (document.form.phone.value == "")
  {
  alert("Please enter your Evening Phone Number.");
  document.form.phone.focus();
  return false;
  }
if (!document.form.email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your Email or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.");
 document.form.email.focus();
	return false;
	}
if (document.form.question.value == "")
  {
  alert("Please enter your Question.");
  document.form.question.focus();
  return false;
  }
}

function loginCheck()
{

if (document.form.userid.value == "")
  {
  alert("Please enter your NPI Member ID.");
  document.form.userid.focus();
  return false;
  }
if (document.form.pwd.value == "")
  {
  alert("Please enter your NPI Account Password.");
  document.form.pwd.focus();
  return false;
  }
}

function update_echo (thisyear)
 {
 var month = document.form.month.selectedIndex;
 var day = document.form.day.selectedIndex;
 var year = document.form.year.selectedIndex + thisyear - 1;
 var dayofweek = "";
 var suffix = "";
 newDate = new Date(year,month - 1,day,0,1,0);
 dayofweek = newDate.getDay();
 if (dayofweek == 0) { theday = "Sunday"; }
 if (dayofweek == 1) { theday = "Monday"; }
 if (dayofweek == 2) { theday = "Tuesday"; }
 if (dayofweek == 3) { theday = "Wednesday"; }
 if (dayofweek == 4) { theday = "Thursday"; }
 if (dayofweek == 5) { theday = "Friday"; }
 if (dayofweek == 6) { theday = "Saturday"; }
 if (day == 1) { suffix = "st"; }
 if (day == 2) { suffix = "nd"; }
 if (day == 3) { suffix = "rd"; }
 if (day >= 4) { suffix = "th"; }
 var now=new Date();
 if (month-1 == 10 && day > 30)
  {
  alert("Invalid date.\n\nNovember has only 30 days.");
  document.form.day.focus();
  return false;
  }
 if (month-1 == 8 && day > 30)
  {
  alert("Invalid date.\n\nSeptember has only 30 days.");
  document.form.day.focus();
  return false;
  }
 if (month-1 == 5 && day > 30)
  {
  alert("Invalid date.\n\nJune has only 30 days.");
  document.form.day.focus();
  return false;
  }
 if (month-1 == 3 && day > 30)
  {
  alert("Invalid date.\n\nApril has only 30 days.");
  document.form.day.focus();
  return false;
  }
 if (month-1 == 1 && day > 29 && (year == 2004 || year == 2008))
  {
  alert("Invalid date.\n\nFebruary has only 29 days in the leap year.");
  document.form.day.focus();
  return false;
  }
 if (month-1 == 1 && day > 28 && year != 2004 && year != 2008)
  {
  alert("Invalid date.\n\nFebruary has only 28 days.");
  document.form.day.focus();
  return false;
  }
 if (newDate < now)
  {
  alert("Invalid date.\n\nThe Start Date must be in the future.");
  document.form.day.focus();
  return false;
  }
 document.form.freq.options[0].text = "Once on " + month + "\/" + day + "\/" + year;
 document.form.freq.options[1].text = "Weekly on " + theday;
 document.form.freq.options[2].text = "Monthly on the " + day + suffix;
 }

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 MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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 Start(page)
{
OpenWin = this.open(page, "id", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,height=325,width=315");
}

function OpenSmall(page)
{
OpenWin = this.open(page, "photo", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,height=230,width=150");
}

function OpenBannerSetup(page)
{
OpenWin = this.open(page, "setup", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,height=280,width=500");
}

var marked_row = new Array;
function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerColor, theMarkColor)
{
    var theCells = null;

    // 1. Pointer and mark feature are disabled or the browser can't get the
    //    row -> exits
    if ((thePointerColor == '' && theMarkColor == '')
        || typeof(theRow.style) == 'undefined') {
        return false;
    }

    // 2. Gets the current row and exits if the browser can't get it
    if (typeof(document.getElementsByTagName) != 'undefined') {
        theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        theCells = theRow.cells;
    }
    else {
        return false;
    }

    // 3. Gets the current color...
    var rowCellsCnt  = theCells.length;
    var domDetect    = null;
    var currentColor = null;
    var newColor     = null;
    // 3.1 ... with DOM compatible browsers except Opera that does not return
    //         valid values with "getAttribute"
    if (typeof(window.opera) == 'undefined'
        && typeof(theCells[0].getAttribute) != 'undefined') {
        currentColor = theCells[0].getAttribute('bgcolor');
        domDetect    = true;
    }
    // 3.2 ... with other browsers
    else {
        currentColor = theCells[0].style.backgroundColor;
        domDetect    = false;
    } // end 3

    // 4. Defines the new color
    // 4.1 Current color is the default one
    if (currentColor == ''
        || currentColor.toLowerCase() == theDefaultColor.toLowerCase()) {
        if (theAction == 'over' && thePointerColor != '') {
            newColor              = thePointerColor;
        }
        else if (theAction == 'click' && theMarkColor != '') {
            newColor              = theMarkColor;
        }
    }
    // 4.1.2 Current color is the pointer one
    else if (currentColor.toLowerCase() == thePointerColor.toLowerCase()
             && (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])) {
        if (theAction == 'out') {
            newColor              = theDefaultColor;
        }
        else if (theAction == 'click' && theMarkColor != '') {
            newColor              = theMarkColor;
            marked_row[theRowNum] = true;
        }
    }
    // 4.1.3 Current color is the marker one
    else if (currentColor.toLowerCase() == theMarkColor.toLowerCase()) {
        if (theAction == 'click') {
            newColor              = (thePointerColor != '')
                                  ? thePointerColor
                                  : theDefaultColor;
            marked_row[theRowNum] = (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])
                                  ? true
                                  : null;
        }
    } // end 4

    // 5. Sets the new color...
    if (newColor) {
        var c = null;
        // 5.1 ... with DOM compatible browsers except Opera
        if (domDetect) {
            for (c = 0; c < rowCellsCnt; c++) {
                theCells[c].setAttribute('bgcolor', newColor, 0);
            } // end for
        }
        // 5.2 ... with other browsers
        else {
            for (c = 0; c < rowCellsCnt; c++) {
                theCells[c].style.backgroundColor = newColor;
            }
        }
    } // end 5

    return true;
}
/*
function join1Check()
{

if (document.form.username.value == "")
  {
  alert("Please enter a user name.");
  document.form.username.focus();
  return false;
  }

if (document.form.pwd.value == "")
  {
  alert("Please enter a password.");
  document.form.pwd.focus();
  return false;
  }

if (document.form.pwd2.value == "")
  {
  alert("Please re-enter your password.");
  document.form.pwd2.focus();
  return false;
  }

if (document.form.pwd2.value != document.form.pwd.value)
  {
  alert("Your passwords do not match.");
  document.form.pwd.focus();
  return false;
  }

if (document.form.first_name.value == "")
  {
  alert("Please enter your first name.");
  document.form.first_name.focus();
  return false;
  }

if (document.form.last_name.value == "")
  {
  alert("Please enter your last name.");
  document.form.last_name.focus();
  return false;
  }

if (document.form.email.value.indexOf("@") == -1 ||
  document.form.email.value == "")
  {
  alert("Please enter a valid email address.");
		document.form.email.focus();
  return false;
  }

if (document.form.email.value != document.form.email2.value)
  {
  alert("Your email addresses do not match.");
		document.form.email.focus();
  return false;
  }

if (document.form.address1.value == "")
  {
  alert("Please enter your address.");
  document.form.address1.focus();
  return false;
  }

if (document.form.city.value == "")
  {
  alert("Please enter your city.");
  document.form.city.focus();
  return false;
  }

var myindex=document.form.state.selectedIndex;
if (myindex==0)
  {
  alert("Please select your state, province, or territory.  If none, select \"Not Applicable.\"");
		document.form.state.focus();
  return false;
  }

var myindex=document.form.country.selectedIndex;
if (myindex==0)
  {
  alert("Please select your country");
		document.form.country.focus();
  return false;
  }

if (document.form.zip.value == "")
  {
  alert("Please enter your postal code.");
  document.form.zip.focus();
  return false;
  }

if (document.form.phone_day.value == "")
  {
  alert("Please enter your daytime phone number.");
  document.form.phone_day.focus();
  return false;
  }

if (document.form.phone_evening.value == "")
  {
  alert("Please enter your evening phone number");
  document.form.phone_evening.focus();
  return false;
  }

if (document.form.c_id.value == "")
  {
  alert("Please enter your Concorde Group ID Number.");
  document.form.c_id.focus();
  return false;
  }
}

// End confirm for join1

function join2Check()
{
if (!document.form.tos1.checked)
  {
  alert("You must agree to all Terms of Service.");
  document.form.tos1.focus();
  return false;
  }
if (!document.form.tos2.checked)
  {
  alert("You must agree to all Terms of Service.");
  document.form.tos2.focus();
  return false;
  }
if (!document.form.tos3.checked)
  {
  alert("You must agree to all Terms of Service.");
  document.form.tos3.focus();
  return false;
  }
}

function join3Check()
{
var myindex=document.form.cctype.selectedIndex;
if (myindex==0)
  {
  alert("You must select a credit card type.");
  document.form.cctype.focus();
  return false;
  }
if (document.form.ccnumber.value == "")
  {
  alert("You must enter your credit card number.");
  document.form.ccnumber.focus();
  return false;
  }
if (document.form.cccvm.value == "")
  {
  alert("You must enter your three digit Verification Code located on the back of your card. Click the question mark image for more info.");
  document.form.cccvm.focus();
  return false;
  }
var myindex=document.form.ccmonth.selectedIndex;
if (myindex==0)
  {
  alert("You must select the expiration month of your credit card.");
  document.form.ccmonth.focus();
  return false;
  }
var myindex=document.form.ccyear.selectedIndex;
if (myindex==0)
  {
  alert("You must select the expiration year of your credit card.");
  document.form.ccyear.focus();
  return false;
  }
if (document.form.ccname.value == "")
  {
  alert("You must enter the name on your credit card.");
  document.form.ccname.focus();
  return false;
  }
if (document.form.ccaddress1.value == "")
  {
  alert("You must enter the billing address of your credit card.");
  document.form.ccaddress1.focus();
  return false;
  }
if (document.form.cccity.value == "")
  {
  alert("You must enter the billing city of your credit card.");
  document.form.cccity.focus();
  return false;
  }
var myindex=document.form.ccstate.selectedIndex;
if (myindex==0)
  {
  alert("You must enter the billing state of your credit card.");
  document.form.ccstate.focus();
  return false;
  }
var myindex=document.form.cccountry.selectedIndex;
if (myindex==0)
  {
  alert("You must enter the billing country of your credit card.");
  document.form.cccountry.focus();
  return false;
  }
if (document.form.cczip.value == "")
  {
  alert("You must enter the billing postal code of your credit card.");
  document.form.cczip.focus();
  return false;
  }
}
*/
function ccupCheck()
{

if (document.form.ccnumber.value == "")
  {
  alert("You must enter your NEW credit card number.");
  document.form.ccnumber.focus();
  return false;
  }

if (document.form.ccnumber_old.value == "")
  {
  alert("You must enter your OLD credit card number.");
  document.form.ccnumber_old.focus();
  return false;
  }

if (document.form.cccvm.value == "")
  {
  alert("You must enter your three digit Verification Code located on the back of your card. Click the question mark image for more info.");
  document.form.cccvm.focus();
  return false;
  }

var myindex=document.form.ccmonth.selectedIndex;
if (myindex==0)
  {
  alert("You must select the expiration month of your credit card.");
  document.form.ccmonth.focus();
  return false;
  }

var myindex=document.form.ccyear.selectedIndex;
if (myindex==0)
  {
  alert("You must select the expiration year of your credit card.");
  document.form.ccyear.focus();
  return false;
  }

if (document.form.ccname.value == "")
  {
  alert("You must enter the name on your credit card.");
  document.form.ccname.focus();
  return false;
  }

if (document.form.ccaddress1.value == "")
  {
  alert("You must enter the billing address of your credit card.");
  document.form.ccaddress1.focus();
  return false;
  }

if (document.form.cccity.value == "")
  {
  alert("You must enter the billing city of your credit card.");
  document.form.cccity.focus();
  return false;
  }

var myindex=document.form.ccstate.selectedIndex;
if (myindex==0)
  {
  alert("You must enter the billing state of your credit card.");
  document.form.ccstate.focus();
  return false;
  }

var myindex=document.form.cccountry.selectedIndex;
if (myindex==0)
  {
  alert("You must enter the billing country of your credit card.");
  document.form.cccountry.focus();
  return false;
  }

if (document.form.cczip.value == "")
  {
  alert("You must enter the billing postal code of your credit card.");
  document.form.cczip.focus();
  return false;
  }
}

function cancelCheck()
{
if (document.form.pwd.value == "")
  {
  alert("Please enter your password.");
  document.form.pwd.focus();
  return false;
  }

if (document.form.ccnumber_old.value == "")
  {
  alert("Please enter the Credit Card Number we have on file for your account. This is required for cancellation authorization.");
  document.form.ccnumber_old.focus();
  return false;
  }

if (document.form.cancel_reason.value == "")
  {
  alert("Please enter your Reason for Cancellation.");
  document.form.cancel_reason.focus();
  return false;
  }
}

function pmtCheck()
{
if (document.form.card_holder.value == "")
  {
  alert("Please enter your the name on your credit card.");
  document.form.card_holder.focus();
  return false;
  }

if (document.form.card_number.value == "")
  {
  alert("Please enter your credit card number.");
  document.form.card_number.focus();
  return false;
  }
}

var submitted = false;
function submitCheck(){
		if (submitted) {
			alert("You have already submitted this form. Please wait....");
			return false;
		}
		else {
			submitted = true;
			return true;
		}
}

function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}
setTimeout('alert("Your form has been submitted!")', 2000);
return true;
}
else {
alert("The form has been submitted.  But, since you're not using IE 4+ or NS 6, the submit button was not disabled on form submission.");
return false;
   }
}

function checkFirst(msg) {
	if (confirm(msg))
  {
		return true;
	 } else {
  return false;
  }
}


function updateCheck()
{

if (document.form.first_name.value == "")
  {
  alert("Please enter your first name.");
  document.form.first_name.focus();
  return false;
  }

if (document.form.last_name.value == "")
  {
  alert("Please enter your last name.");
  document.form.last_name.focus();
  return false;
  }

if (document.form.email.value.indexOf("@") == -1 ||
  document.form.email.value == "")
  {
  alert("Please enter a valid email address.");
		document.form.email.focus();
  return false;
  }

if (document.form.email.value != document.form.email2.value)
  {
  alert("Your email addresses do not match.");
		document.form.email.focus();
  return false;
  }

if (document.form.address1.value == "")
  {
  alert("Please enter your address.");
  document.form.address1.focus();
  return false;
  }

if (document.form.city.value == "")
  {
  alert("Please enter your city.");
  document.form.city.focus();
  return false;
  }

if (document.form.zip.value == "")
  {
  alert("Please enter your postal code.");
  document.form.zip.focus();
  return false;
  }

if (document.form.phone_day.value == "")
  {
  alert("Please enter your daytime phone number.");
  document.form.phone_day.focus();
  return false;
  }

if (document.form.phone_evening.value == "")
  {
  alert("Please enter your evening phone number");
  document.form.phone_evening.focus();
  return false;
  }

if (document.form.c_id.value == "")
  {
  alert("Please enter your Concorde Group ID Number.");
  document.form.c_id.focus();
  return false;
  }
}

function addCheck()
{

if (document.form.l_level.value == "")
  {
  alert("Please select the TYPE of record.");
  document.form.l_level.focus();
  return false;
  }

if (document.form.l_first.value == "")
  {
  alert("Please enter a FIRST NAME for the record.");
  document.form.l_first.focus();
  return false;
  }

if (document.form.l_last.value == "")
  {
  alert("Please enter a LAST NAME for the record.");
  document.form.l_last.focus();
  return false;
  }

if (document.form.l_phone.value == "")
  {
  alert("Please enter a PHONE NUMBER for the record.");
  document.form.l_phone.focus();
  return false;
  }

if (document.form.l_email.value == "")
  {
  alert("Please enter an E-MAIL ADDRESS for the record.");
  document.form.l_email.focus();
  return false;
  }

var myindex=document.form.l_level.selectedIndex;
if (myindex==1)
 {
var myindex2=document.form.l_income.selectedIndex;
if (myindex2==0)
  {
  alert("Please select an INCOME LEVEL for the new Pre-Enrollee record.");
  document.form.l_income.focus();
  return false;
  }
 }

if (document.form.l_cid.value == "")
  {
  alert("Please enter a CONCORDE ID# for the record.");
  document.form.l_cid.focus();
  return false;
  }

if (document.form.l_passwd.value == "")
  {
  alert("Please enter a PASSWORD for the record. If unknown, enter temp97578");
  document.form.l_passwd.focus();
  return false;
  }
}

function idCheck(member_id)
{
if (member_id < 100000)
 {
 alert("The URL you used to access this page is incomplete.\n\nPlease verify it in the unsubscribe portion of the email and load again.");
 return false;
 }
}

function emailCheck ()
{
if (document.form.email.value.indexOf("incomebuddy.com") == 1)
  {
  
  alert("You must enter an email address on a domain other than incomebuddy.com.");
  document.form.email.focus();
  return false;
  }
}

function ticketCheck()
{

if (document.form.subject.value == "")
  {
  alert("Please select type of inquiry.");
  document.form.subject.focus();
  return false;
  }

if (document.form.message.value == "")
  {
  alert("Please enter your question or comment.");
  document.form.message.focus();
  return false;
  }
}

function testdriveCheck()
{

if (document.form.l_email.value == "")
  {
  alert("Please enter your E-MAIL ADDRESS.");
  document.form.l_email.focus();
  return false;
  }

if (document.form.l_first_name.value == "")
  {
  alert("Please enter your FIRST NAME.");
  document.form.l_first_name.focus();
  return false;
  }
}

function ticketCheck2()
{

if (document.form.name.value == "")
  {
  alert("Please enter your FIRST and LAST NAME.");
  document.form.name.focus();
  return false;
  }

if (document.form.email.value.indexOf("@") == -1 ||
  document.form.email.value == "")
  {
  alert("Please enter a valid e-mail address.");
		document.form.email.focus();
  return false;
  }

if (document.form.email.value != document.form.custom1.value)
  {
  alert("Your e-mail addresses do not match.");
		document.form.email.focus();
  return false;
  }

if (document.form.custom2.value == "")
  {
  alert("Please enter your DAYTIME PHONE NUMBER.");
  document.form.custom2.focus();
  return false;
  }

if (document.form.custom3.value == "")
  {
  alert("Please enter your EVENING PHONE NUMBER.");
  document.form.custom3.focus();
  return false;
  }

if (document.form.custom4.value == "")
  {
  alert("Are you an active member of IncomeBuddy.com?");
  document.form.custom4.focus();
  return false;
  }

if (document.form.subject.value == "")
  {
  alert("Please select TYPE OF INQUIRY.");
  document.form.subject.focus();
  return false;
  }

if (document.form.message.value == "")
  {
  alert("Please enter your QUESTION or COMMENT.");
  document.form.message.focus();
  return false;
  }
}
