/**
 * Title: Tigra Form Validator
 * URL: http://www.softcomplex.com/products/tigra_form_validator/
 * Version: 1.3
 * Date: 08/25/2005 (mm/dd/yyyy)
 * Notes: This script is free. Visit official site for further details.
*/
var a_fields = {

	/**
	*	form fields description structure	
	*	title': {
	*		'l': 'Title',		// label
	*		'r': true,			// required
	*		'f': 'alpha',		// format (alpha, integer, alphanum, email, phone)
	*		't': 't_title',		// id of the element to highlight if invalid entry
	*		'm': null,			// must match specified form field
	*		'mn': 2,			// minimum length
	*		'mx': 10			// maximum length
	*	},
	*/
	
	'companyName':{'l':'Location: Company Name ','r':true,'t':'companyName'},
	'street1':{'l':'Location Address','r':true,'t':'street1'},
	'companyCity':{'l':'Location City','r':true,'t':'companyCity'},
	'companyState':{'l':'Location State','r':true,'t':'companyState'},
	'companyZip':{'l':'Location Zip','r':true,'t':'companyZip'},
	'contactName':{'l':'Location Contact','r':true,'t':'contactName'},
	'contactEmail':{'l':'Contact Email','r':true,'f': 'email','t':'contactEmail'},
	'contactPhone':{'l':'Contact Phone','r':true,'mn':10,'t':'contactPhone'},

	'billCompany':{'l':'Bill To Company ','r':true,'t':'billCompany'},
	'billStreet1':{'l':'Billing Address','r':true,'t':'billStreet1'},
	'billCity':{'l':'Billing City','r':true,'t':'billCity'},
	'billState':{'l':'Billing State','r':true,'t':'billState'},
	'billZip':{'l':'Billing Zip','r':true,'t':'billZip'},
	'billContact':{'l':'Billing Contact','r':true,'t':'billContact'},
	'billEmail':{'l':'Billing Email Contact','r':true,'f': 'email',	't':'billEmail'},
	'billPhone':{'l':'Billing Phone','r':true,'mn':10,'t':'billPhone'},

	'aclogin':{'l':'Account User Name','r':true,'t':'aclogin'},
	'acpass':{'l':'Account Password','r':true,'mn':6,'t':'acpass'},
	'acpass2':{'l':'Confirm Password','r':true,'m':'acpass','t':'acpass2'}
	// no trailing comma on form field array's last item (PHP OK, JS No).
},

o_config = {
	'to_disable' : ['Submit', 'Reset'],
	'alert' : 1
}

// validator constructor call
var v = new validator('registration', a_fields, o_config);
