﻿/*
'--------------------------------------------------------------------------------------------------
' Title			: Bows/Products BROWSE JavaScript
' Description	: JavaScript functions and declarations for the products Browse sections
'--------------------------------------------------------------------------------------------------
' History
' 11/11/2008	: DPE - Created Page
'--------------------------------------------------------------------------------------------------
*/

// Replaces tradtional body onLoad="" functionality throughout the site
$(document).ready(
	function()
	{
		// Setup validation...
		$("#contactForm").validate(
		{
			debug:false,
			rules:{
				txtContactFirstName:"required",
				txtContactLastName:"required",
				txtContactAddress:"required",
				txtContactCity:"required",
				txtContactState:"required",
				txtContactZipCode:"required",
				txtContactCountry:"required",
				txtContactEmail:{
					email:true
				}
			},
			messages:{
				txtContactFirstName: "Please provide your First Name",
				txtContactLastName: "Please provide your Last Name",
				txtContactAddress: "Please provide your Address",
				txtContactCity: "Please provide your City",
				txtContactState: "Please select your State",
				txtContactZipCode: "Please provide your Zip/Postal Code",
				txtContactCountry: "Please select your Country",
				txtContactEmail:{
					email:"Email addresses must be in the format: &quot;name@domain.tld&quot;"
				}
			},
			onkeyup:false,
			wrapper:"p",
			errorClass:"errorText"
		})
	}
);


