// ------------------------------------------------------
//Title: checkObject.js
//Author: Pia Klein, PEKAN Solution
//copyright2003, Cologne
//You are free to use this script, but please ...
// leave it unchanged and leave this header as it is

//THANK you and goed luck

//this is: 
//  checkWhatYouLikeForm.js 
//  to define the object new ValidForm()
//  and its methods and properties 
//-------------------------------------------------------
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//-------------FEEL FREE TO TEST THE OPTIONS------------!
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!




	contactForm=new ValidForm();
	
	//elementIndex=elements(index,"alertText")
	//make one someForm.elementIndex(index,alertText) for each
	// element of your form name ="thisForm" you want to be validated
	// index = thisForm.elements[index]
	// alertText is the text shown, when the element is validated false

	nachname=contactForm.elementIndex('Nachname',"Geben Sie bitte Ihren Namen an.");
	telefon=contactForm.elementIndex('Telefon',"Geben Sie bitte Ihre Telefonnummer an.");
	email=contactForm.elementIndex('Email',"Geben Sie bitte Ihre Emailadresse an. \nHalten Sie sich dabei an das folgende Format: \nxx@xxxx.xx");


		contactForm.minLength(nachname,1);	
		contactForm.minLength(telefon,1);	

		contactForm.minLength(email,5);	
		contactForm.mandatoryChars(email,"@.","mandatory")
		
