<!--

function confirm(form)

{
form.subject.value = '';
var decal = form.Decal_Number.value;
var license = form.Vehicle_License_Number.value;
var ID = form.ASU_ID_Number.value;
var name = form.Appellant_Name.value;
var street = form.Appellant_Street.value;
var city = form.Appellant_City.value;
var zip = form.Appellant_Zip.value;
var email = form.Appellant_Email.value;
var email_at = email.indexOf('@');
var email_dot = email.indexOf('.');
var phone = form.Appellant_Phone_Number.value;
var citation = form.Row_1_Citation_Number.value;
var date = form.Date1.value;
var code = form.Violation_Code1.value;
var location = form.Location1.value;
var time = form.Time1.value;
var subject = 'Online Parking Citation Appeal from mailto:' + email;

if(!license)
	{
		window.status='Try again.';alert('Enter your vehicle license number.');
		return false;
	}

else if(!name)
	{
		window.status='Try again.';alert('Enter the appellant name.');
		return false;
	}

else if(!street)
	{
		window.status='Try again.';alert('Street address is required.');
		return false;
	}

else if(!city)
	{
		window.status='Try again.';alert('Enter the city that you live in.');
		return false;
	}

else if(!zip || zip.length <= 4)
	{
		window.status='Try again.';alert('Enter a valid Zip code.');
		return false;
	}

else if(!email)
	{
		window.status='Try again.';alert('Enter a valid e-mail address.');
		return false;
	}	

else if(!phone || phone.length < 10)
	{
		window.status='Try again.';alert('Enter your phone number.\nPlease include area code.');
		return false;
	}

else if(!citation)
	{
		window.status='Try again.';alert('Enter at least one citation number.');
		return false;
	}

else if(!date)
	{
		window.status='Try again.';alert('Enter the citation date.');
		return false;
	}

else if(!code)
	{
		window.status='Try again.';alert('Enter the citation code.');
		return false;
	}

else if(!location)
	{
		window.status='Try again.';alert('Where did the citation occur?');
		return false;
	}
	
else if(!time)
	{
		window.status='Try again.';alert('Enter the time the citation was given.');
		return false;
	}
else
	{
		window.status='Your appeal has been submitted.';
		alert('Your appeal has been submitted.\nClick OK to continue.');
		form.subject.value = subject;
		return true;
		
	}

}

//-->
