// JavaScript Document

var feeData = new Array(); 
var feePrice = new Array(); 
 
feeData[0]  = 'Uniform Residential Appraisal Report (FNMA 1004 or Freddie Mac Form 70)'
feeData[1]  = 'Manufactured Home Appraisal Report (FNMA 1004C)'
feeData[2]  = 'Individual Condo Unit Appraisal Report (FNMA Form 1073 or Freddie Mac 465)'
feeData[3]  = 'Exterior Only Inspection Residential Report (Form 2055)'
feeData[4]  = 'Multi-Family, 5+ Units, Appraisals (Prepared in the \'71-B\' format)'
feeData[5]  = 'Vacant Land Appraisal (FNMA form report)'
feeData[6]  = 'Single Family Comparable Rent Schedule (FMNA Form 1007 or Freddie Mac Form 1000)'
feeData[7]  = 'Single Family Comparable Rent Schedule w/Operating Income Statement (FNMA Form 216 or FM Form 998)'
feeData[8]  = 'Satisfactory Completion Certificate (FNMA Form 442)'
feeData[9]  = 'Condition and Marketability Report (FNMA Form 2075 or Freddie Mac Form 2070)'
feeData[10] = 'Reviews- Desk Review (FNMA 2002)'
feeData[11] = 'Reviews-1 Unit Residential Field Review (FNMA 2000)'
feeData[12]  = 'Reviews-2 to 4 Unit Residential Field Review (FNMA 2000A)'
feeData[13]  = 'Employee Relocation (ERC) Appraisal Report'
feeData[14]  = 'FHA Appraisal (Incl FHA Forms Addenda)'
feeData[15]  = 'Small Residential Income Property Appraisal Report (FNMA 1025)'




feePrice[0]  = '$10' 
feePrice[1]  = '$20' 
feePrice[2]  = '$30' 
feePrice[3]  = '$40' 
feePrice[4]  = '$50' 
feePrice[5]  = '$60' 
feePrice[6]  = '$70' 
feePrice[7]  = '$80' 
feePrice[8]  = '$90' 
feePrice[9]  = '$100' 
feePrice[10] = '$110' 
feePrice[11] = '$120'
feePrice[12] = '$100' 
 
function populateReportType(  ) 
{ 
 	select	= window.document.theForm.reportType; 
	count = 1;
 
	for ( i = 0; i < feeData.length; i++ ) { 
		select.options[count++] = new Option( feeData[i] );
	} 
} 
 
function populateFee( name ) 
{ 
 	select	= window.document.theForm.fee; 
 
	for ( i = 0; i < feeData.length; i++ ) { 
		if ( feeData[i] == name ) { 
			select.value = feePrice[i];
			return;
		} 
	}
	
	// If you make it here, no matching fee was found
	select.value = '';
} 

function populateCod( name )
{
    var codSelect = document.getElementById("cod");
	
	if ( name == "COD" )
		codSelect.style.visibility = "visible";
	else
		codSelect.style.visibility = "hidden";
}
 
function showDate()
{
	/*Current date in form credit: 
	JavaScript Kit (www.javascriptkit.com)
	Over 200+ free scripts here!
	*/
	var mydate=new Date()
	var theyear=mydate.getYear()
	if (theyear < 1000)
    	theyear+=1900
	var theday=mydate.getDay()
	var themonth=mydate.getMonth()+1
	if (themonth<10)
		themonth="0"+themonth
	var theday=mydate.getDate()
	if (theday<10)
		theday="0"+theday
	//////EDIT below three variable to customize the format of the date/////
	var displayfirst=themonth
	var displaysecond=theday
	var displaythird=theyear
	////////////////////////////////////
	var displaydate=displayfirst+"/"+displaysecond+"/"+displaythird;
	document.write(displaydate);
	document.theForm.currentdate.value=displaydate;
}

