// Rollover

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		sign_up_over = newImage("images/sign-up-over.gif");
		preloadFlag = true;
	}
}


// Validation

function form_Validator(theForm)
{
  if (theForm.FirstName.value == "")
  {
    alert("You are missing some required information.  Please enter your First Name.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.LastName.value == "")
  {
    alert("You are missing some required information.  Please enter your Last Name.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.From.value == "")
  {
    alert("You are missing some required information.  Please confirm your E-Mail Address.");
    theForm.From.focus();
    return (false);
  }

  if (theForm.Confirm.value == "")
  {
    alert("You are missing some required information.  Please confirm your E-Mail Address.");
    theForm.Confirm.focus();
    return (false);
  }
  
  if (theForm.From.value != theForm.Confirm.value)
  {
    alert("You are missing some required information.  Your E-Mail Address does not match.");
    theForm.Confirm.focus();
    return (false);
  }
 
  return (true);
}


// 2

function form2_Validator(theForm)
{
  if (theForm.Address.value == "")
  {
    alert("You are missing some required information.  Please enter your Address.");
    theForm.Address.focus();
    return (false);
  }

  if (theForm.City.value == "")
  {
    alert("You are missing some required information.  Please enter your City.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.State.value == "")
  {
    alert("You are missing some required information.  Please enter your State.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.Zip.value == "")
  {
    alert("You are missing some required information.  Please enter your Zip/Postal Code.");
    theForm.Zip.focus();
    return (false);
  }

  if (theForm.Country.value == "")
  {
    alert("You are missing some required information.  Please enter your Country.");
    theForm.Country.focus();
    return (false);
  }

  if (theForm.Company.value == "")
  {
    alert("You are missing some required information.  Please enter your Company.");
    theForm.Company.focus();
    return (false);
  }

  if (theForm.Phone.value == "")
  {
    alert("You are missing some required information.  Please enter your Phone Number.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.Ext.value == "")
  {
    alert("You are missing some required information.  Please enter your Extension.");
    theForm.Ext.focus();
    return (false);
  }
 
  return (true);
}

//popups
		
			function popWin(which) {
			
				var hwin=window.open(which, 'popup2', 'resizable=0,scrollbars=yes,status=no,width=600,height=800,location=no');
			
			}
		
		
//		</script>
