
<!-- 

function validateForm()
{
	var cuFirstName = document.theForm.cuFirstName.value;
	if ( cuFirstName == '' )
	{
		alert('-First Name is required-\n\n Please fill it out to continue.\n\n Thank you.');
		document.theForm.cuFirstName.focus();
		return false;
	}
	var cuLastName = document.theForm.cuLastName.value;
	if ( cuLastName == '' )
	{
		alert('-Last Name is required-\n\n Please fill it out to continue.\n\n Thank you.');
		document.theForm.cuLastName.focus();
		return false;
	}
	var cuPhone = document.theForm.cuPhone.value;
	if ( cuPhone == '' )
	{
		alert('-Phone is required-\n\n Please fill it out to continue.\n\n Thank you.');
		document.theForm.cuPhone.focus();
		return false;
	}
	var cuEmail = document.theForm.cuEmail.value;
	if ( cuEmail == '' )
	{
		alert('-Email is required-\n\n Please fill it out to continue.\n\n Thank you.');
		document.theForm.cuEmail.focus();
		return false;
	}
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(cuEmail))
	{
		alert('-Email must be in a proper format.-');
		document.theForm.cuEmail.focus();
		return false;
	}
	var cuAddress1 = document.theForm.cuAddress1.value;
	if ( cuAddress1 == '' )
	{
		alert('-Address 1 is required-\n\n Please fill it out to continue.\n\n Thank you.');
		document.theForm.cuAddress1.focus();
		return false;
	}
	var cuCity = document.theForm.cuCity.value;
	if ( cuCity == '' )
	{
		alert('-City is required-\n\n Please fill it out to continue.\n\n Thank you.');
		document.theForm.cuCity.focus();
		return false;
	}
	
	var cuCountryID = document.theForm.cuCountryID.selectedIndex;
	
	if ( document.theForm.cuCountryID.options(cuCountryID).value == 'U.S.A.' )
	{
		var cuStateID = document.theForm.cuStateID.selectedIndex;
		if ( cuStateID == 0 )
		{
			alert('-State is required-\n\n Please fill it out to continue.\n\n Thank you.');
			document.theForm.cuStateID.focus();
			return false;
		}	
		var cuZIP = document.theForm.cuZIP.value;
		if ( cuZIP == '' )
		{
			alert('-ZIP is required-\n\n Please fill it out to continue.\n\n Thank you.');
			document.theForm.cuZIP.focus();
			return false;
		}
	}
	return true;
}

function capitalizeMe(obj) 
{
        val = obj.value;
        newVal = '';
        val = val.split(' ');
        for(var c=0; c < val.length; c++) {
                newVal += val[c].substring(0,1).toUpperCase() + val[c].substring(1,val[c].length) + ' ';
        }
        obj.value = newVal;
}

-->