// Functions.js

// Initializes forms
function init() {
	if(document.searchInputForm) {
	document.searchInputForm.citationNumber.value = "";
	document.searchInputForm.lastName.value = "";
	document.searchInputForm.birthMonth.value = "";
	document.searchInputForm.birthDay.value = "";
	document.searchInputForm.birthYear.value = "";
	
	document.searchInputForm.citationNumber.focus();
	}
}
// Submit order to Certified Payments
function submitOrder() {
	var emailAddress = document.emailForm.emailAddress.value;
	var newURL = document.emailForm.forwardURL.value + "&email=" + emailAddress;
	var sameURL = document.emailForm.originalURL;
	self.location=newURL;
}
// Opens the RVI document
function openDocument() {
	var rvidocument = document.openDocumentForm.rviDoc;
	alert(rvidocument); 
}

//Get today's date
function today() {
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
document.write(month + "/" + day + "/" + year)
}

