// retrieves the HTML source code from a page having a div with id:"dataToEmail"
function getSource() {
	var html = document.getElementById("dataToEmail").innerHTML;
	document.reportForm.pageData.value = html;
	document.reportForm.submit();
}

function populate() {
	var html = document.getElementById("dataToEmail").innerHTML;
	document.reportForm.pageData.value = html;
}

// opens a popup window
function saveFile(path){
	var subpop;
	subpop=window.open(path,'subpop','toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width=660,height=400');
}

function openWindow(path) {
	saveFile(path);
}

function resetTVAPForm() {
	document.tvapForm.evvaValueTVAPManual.value = '';
	document.tvapForm.totalStaffSalaryTVAP.value = '';
	document.tvapForm.benefitsValueTVAP.value = '';
	document.tvapForm.benefitsPaidToStaffTVAP.value = '';
}


function resetFYJEForm() {
	document.fyjeForm.volunteerHoursFYJE.value = '';
	document.fyjeForm.staffWeekHrsFYJE.value = '';
	document.fyjeForm.numWeeksWorkFYJE.value = '';
}


function resetPPVEForm() {
	document.ppveForm.evvaValuePPVE.value = '';
	document.ppveForm.tvapValuePPVE.value = '';
	document.ppveForm.totalStaffSalaryPPVE.value = '';
}


function resetOVIRForm() {
	document.ovirForm.evvaValueOVIR.value = '';
	document.ovirForm.tvapValueOVIR.value = '';
	document.ovirForm.orgFinancialInvestment.value = '';
}

function resetVPSRForm() {
	document.vpsrForm.evvaValueVPSRManual.value = '';
	document.vpsrForm.numVolunteersVPSR.value = '';
}

function resetVCCForm() {
	document.vccForm.volunteerExpenses.value = '';
	document.vccForm.amtReimbursedToVolunteers.value = '';
	document.vccForm.amtDonatedByVolunteers.value = '';
}

function resetCIRForm() {
	document.cirForm.evvaValueCIR.value = '';
	document.cirForm.totalStaffSalaryCIR.value = '';
	document.cirForm.tvapValueCIR.value = '';
}

function resetOrgForm() {
	document.OrgInfo.orgName.value = '';
	document.OrgInfo.city.value = '';
	document.OrgInfo.address.value = '';
	document.OrgInfo.email.value = '';
	document.OrgInfo.period.value = '';
	document.OrgInfo.author.value = '';
	document.OrgInfo.phone.value = '';
	document.OrgInfo.fax.value = '';
}

