function swap(id, overimage)
{
	document.getElementById(id).src=overimage;
}

function ShowAdd(name)
{
	document.getElementById(name).className="vis";
}
function HideAdd(name)
{
	document.getElementById(name).className="hid";
}

<!--
function fncValidateHPForm(n_form) {
	var blnSuccess = true;
	blnSuccess = fncValidateFormField(blnSuccess, n_form.loan, 'select', true);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.fname, 'name', true);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.lname, 'name', true);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.address1, 'string', true);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.city, 'string', true);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.state, 'select', true);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.zip, 'numericstring', true, 5, 5);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.areacode, 'numericstring', true, 3, 3);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.phonenumber1, 'numericstring', true, 3, 3);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.phonenumber2, 'numericstring', true, 4, 4);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.eareacode, 'numericstring', true, 3, 3);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.ephonenumber1, 'numericstring', true, 3, 3);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.ephonenumber2, 'numericstring', true, 4, 4);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.email, 'email', true);
	blnfhome = fncValidateFormField(blnSuccess, n_form.foundhome, 'radio', true);
	if (blnfhome == false && blnSuccess == true)	{
		alert("Have you found a home yet?");
		blnSuccess = false;
	}
	if (n_form.foundhome[0].checked && blnSuccess == true) {
		blnscontract = fncValidateFormField(blnSuccess, n_form.signedcontract, 'radio', true);
		if (blnscontract == false)	{
		alert("Have you signed a contract yet?");
		blnSuccess = false;
		}
	}
	blnSuccess = fncValidateFormField(blnSuccess, n_form.ziprange1, 'numericstring', true, 5, 5);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.ziprange2, 'numericstring', false, 5, 5);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.ziprange3, 'numericstring', false, 5, 5);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.targetareacode, 'numericstring', true, 3, 3);
	blnorent = fncValidateFormField(blnSuccess, n_form.ownrent, 'radio', true);
	if (blnorent == false && blnSuccess == true)	{
		alert("Do you own or rent your home?");
		blnSuccess = false;
	}
	if (n_form.ownrent[1].checked && blnSuccess == true) {
		blnfhome = fncValidateFormField(blnSuccess, n_form.firsthome, 'radio', true);
		if (blnfhome == false)	{
		alert("Are you a first-time home buyer?");
		blnSuccess = false;
		}
	}
	blnSuccess = fncValidateFormField(blnSuccess, n_form.homevalue, 'select', true);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.loanamount, 'select', true);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.creditrating, 'select', true);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.purchasedate, 'select', true);
	blnSuccess = fncValidateFormField(blnSuccess, n_form.typeofhouse, 'select', true);
	blnnrealtor = fncValidateFormField(blnSuccess, n_form.needrealtor, 'radio', true);
	if (blnSuccess == true) {
		blnBR = fncValidateFormField(blnSuccess, n_form.numBR, 'select', true);
		if (blnBR == false)	{
		blnSuccess = false;
		}
	}
	if (blnSuccess == true) {
		blnBA = fncValidateFormField(blnSuccess, n_form.numBA, 'select', true);
		if (blnBA == false)	{
		blnSuccess = false;
		}
	}
	if (blnSuccess == true) {
		blnSF = fncValidateFormField(blnSuccess, n_form.numSF, 'select', true);
		if (blnSF == false)	{
		blnSuccess = false;
		}
	}
	blnSuccess = fncValidateFormField(blnSuccess, n_form.ssn, 'numericstring', false, 9, 9);
	if (blnSuccess == true)
	{
		if (parseInt(n_form.loanamount.value) < 100000)
		{
			fncWriteError(blnSuccess, " - Minimum Loan amount is $100,000.", n_form.loanamount);
			blnSuccess = false;
		}
		if (parseInt(n_form.homevalue.value) < 125000)
		{
			fncWriteError(blnSuccess, " - Minimum Purchase Price is $125,000.", n_form.homevalue);
			blnSuccess = false;
		}
		if (parseInt(n_form.loanamount.value) / parseInt(n_form.homevalue.value) > .9)
		{
			fncWriteError(blnSuccess, "We can offer the best loan if you request 90% or less of your current home value. Please change your requested Loan Amount.", n_form.loanamount);
			blnSuccess = false;
		}
	}
	return blnSuccess;
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
