		function chkInstRegistration(theForm)
		{
		  if (theForm.cboPrefixID.selectedIndex < 0) {
		    alert("Please select one of the \"Prefix\" options.");
		    theForm.cboPrefixID.focus();
		    return (false);
		  }
		  if (theForm.cboPrefixID.selectedIndex == 0) {
		    alert("The first \"Prefix\" option is not a valid selection.  Please choose one of the other options.");
		    theForm.cboPrefixID.focus();
		    return (false);
		  }
		  if (theForm.txtFirstname.value == "")  {
		    alert("Please enter a value for the \"First Name\" field.");
		    theForm.txtFirstname.focus();
		    return (false);
		  }
		  if (theForm.txtFirstname.value.length > 20) {
		    alert("Please enter at most 20 characters in the \"First Name\" field.");
		    theForm.txtFirstname.focus();
		    return (false);
		  }
		  if (theForm.txtLastname.value == "") {
		    alert("Please enter a value for the \"Last Name\" field.");
		    theForm.txtLastname.focus();
		    return (false);
		  }
		  if (theForm.txtLastname.value.length > 20) {
		    alert("Please enter at most 20 characters in the \"Last Name\" field.");
		    theForm.txtLastname.focus();
		    return (false);
		  }
		  if (theForm.txtAddress.value == "") {
		    alert("Please enter a value for the \"Address\" field.");
		    theForm.txtAddress.focus();
		    return (false);
		  }
		  if (theForm.txtAddress.value.length > 40) {
		    alert("Please enter at most 40 characters in the \"Address\" field.");
		    theForm.txtAddress.focus();
		    return (false);
		  }
		  if (theForm.txtCity.value == "") {
		    alert("Please enter a value for the \"City\" field.");
		    theForm.txtCity.focus();
		    return (false);
		  }
		  if (theForm.txtCity.value.length > 40) {
		    alert("Please enter at most 40 characters in the \"City\" field.");
		    theForm.txtCity.focus();
		    return (false);
		  }
		  if (theForm.txtState.value == "") {
		    alert("Please enter a value for the \"State/County\" field.");
		    theForm.txtState.focus();
		    return (false);
		  }
		  if (theForm.txtState.value.length > 40) {
		    alert("Please enter amaximun of 40 characters in the \"State/County\" field.");
		    theForm.txtState.focus();
		    return (false);
		  }
		  if (theForm.txtZipcode.value == "") {
		    alert("Please enter a value for the \"Zip/Postal Code\" field.");
		    theForm.txtZipcode.focus();
		    return (false);
		  }
		  if (theForm.txtZipcode.value.length < 5) {
		    alert("Please enter at least 5 characters in the \"Zip/Postal Code\" field.");
		    theForm.txtZipcode.focus();
		    return (false);
		  }
		  if (theForm.txtZipcode.value.length > 10) {
		    alert("Please enter at most 10 characters in the \"Zip/Postal Code\" field.");
		    theForm.txtZipcode.focus();
		    return (false);
		  }
		  if (theForm.cboCountryID.selectedIndex < 0) {
		    alert("Please select one of the \"Country\" options.");
		    theForm.cboCountryID.focus();
		    return (false);
		  }
		  if (theForm.cboCountryID.selectedIndex == 0) {
		    alert("The first \"Country\" option is not a valid selection.  Please choose one of the other options.");
		    theForm.cboCountryID.focus();
		    return (false);
		  }
		  if (theForm.txtPhone.value == "") {
		    alert("Please enter a value for the \"Phone\" field.");
		    theForm.txtPhone.focus();
		    return (false);
		  }
		  if (theForm.txtPhone.value.length < 7) {
		    alert("Please enter at least 7 characters in the \"Phone\" field.");
		    theForm.txtPhone.focus();
		    return (false);
		  }
		  if (theForm.txtPhone.value.length > 16) {
		    alert("Please enter at most 16 characters in the \"Phone\" field.");
		    theForm.txtPhone.focus();
		    return (false);
		  }

		  var checkOK = "0123456789-/-() \t\r\n\f";
		  var checkStr = theForm.txtPhone.value;
		  var allValid = true;
		  for (i = 0;  i < checkStr.length;  i++)
		  {
		    ch = checkStr.charAt(i);
		    for (j = 0;  j < checkOK.length;  j++)
		      if (ch == checkOK.charAt(j))
		        break;
		    if (j == checkOK.length)
		    {
		      allValid = false;
		      break;
		    }
		  }
		  if (!allValid)
		  {
		    alert("Please enter only digit, whitespace and \"/-()\" characters in the \"Phone\" field.");
		    theForm.txtPhone.focus();
		    return (false);
		  }

		  var checkOK = "0123456789-/-() \t\r\n\f";
		  var checkStr = theForm.txtFax.value;
		  var allValid = true;
		  for (i = 0;  i < checkStr.length;  i++)
		  {
		    ch = checkStr.charAt(i);
		    for (j = 0;  j < checkOK.length;  j++)
		      if (ch == checkOK.charAt(j))
		        break;
		    if (j == checkOK.length)
		    {
		      allValid = false;
		      break;
		    }
		  }
		  if (!allValid)
		  {
		    alert("Please enter only digit, whitespace and \"/-()\" characters in the \"Fax\" field.");
		    theForm.txtFax.focus();
		    return (false);
		  }

		  if (theForm.txtEmail.value == "") {
		    alert("Please enter a value for the \"E-Mail\" field.");
		    theForm.txtEmail.focus();
		    return (false);
		  }
		  if (test(theForm.txtEmail.value) == false) {
			alert("Please enter a valid email address");
		    theForm.txtEmail.focus();
		    return (false);
		  }
		  if (theForm.txtEmail.value.length > 100) {
		    alert("Please enter at most 50 characters in the \"E-Mail\" field.");
		    theForm.txtEmail.focus();
		    return (false);
		  }
		  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-_@-.";
		  var checkStr = theForm.txtEmail.value;
		  var allValid = true;
		  for (i = 0;  i < checkStr.length;  i++) {
		    ch = checkStr.charAt(i);
		    for (j = 0;  j < checkOK.length;  j++)
		      if (ch == checkOK.charAt(j))
		        break;
		    if (j == checkOK.length)
		    {
		      allValid = false;
		      break;
		    }
		  }
		  if (!allValid) {
		    alert("Please enter only letter, digit and \"_@-.\" characters in the \"E-Mail\" field.");
		    theForm.txtEmail.focus();
		    return (false);
		  }
      /*
		  if( CheckCreditCardInfo(theForm) == false ) {
		    return( false );
		  }
		  if (theForm.txtBillingAddress.value == "") {
		    alert("Please enter a value for the \"Billing Address\" field.");
		    theForm.txtBillingAddress.focus();
		    return (false);
		  }
		  if (theForm.txtBillingAddress.value.length > 40) {
		    alert("Please enter at most 40 characters in the \"Billing Address\" field.");
		    theForm.txtBillingAddress.focus();
		    return (false);
		  }
		  if (theForm.txtBillingCity.value == "") {
		    alert("Please enter a value for the \"Billing City\" field.");
		    theForm.txtBillingCity.focus();
		    return (false);
		  }
		  if (theForm.txtBillingCity.value.length > 40) {
		    alert("Please enter at most 40 characters in the \"Billing City\" field.");
		    theForm.txtBillingCity.focus();
		    return (false);
		  }
		  if (theForm.txtBillingState.value == "") {
		    alert("Please enter a value for the \"Billing State/County\" field.");
		    theForm.txtBillingState.focus();
		    return (false);
		  }
		  if (theForm.txtBillingState.value.length > 40) {
		    alert("Please enter amaximun of 40 characters in the \"Billing State/County\" field.");
		    theForm.txtBillingState.focus();
		    return (false);
		  }
		  if (theForm.txtBillingZipcode.value == "") {
		    alert("Please enter a value for the \"Billing Zip/Postal Code\" field.");
		    theForm.txtBillingZipcode.focus();
		    return (false);
		  }
		  if (theForm.txtBillingZipcode.value.length < 5) {
		    alert("Please enter at least 5 characters in the \"Billing Zip/Postal Code\" field.");
		    theForm.txtBillingZipcode.focus();
		    return (false);
		  }
		  if (theForm.txtBillingZipcode.value.length > 10) {
		    alert("Please enter at most 10 characters in the \"Billing Zip/Postal Code\" field.");
		    theForm.txtBillingZipcode.focus();
		    return (false);
		  }
		  if (theForm.cboBillingCountryID.selectedIndex < 0) {
		    alert("Please select one of the \"Billing Country\" options.");
		    theForm.cboBillingCountryID.focus();
		    return (false);
		  }
		  if (theForm.chkAgree.checked != true){
			alert("Please indicate you have read and agree to the Accreditation Statement and Disclosures ");
		 	return (false);	
		  }
      */
		  return (true);
		}

