//Real Estate Agent info
function clearAgentBox() {
	document.QContact.fakenoagent.checked=0;
	document.QContact.Agent_Name.style.background="#ffffff";
	document.QContact.Agent_Company.style.background="#ffffff";
	document.QContact.Agent_Phone.style.background="#ffffff";
	document.QContact.Agent_Email.style.background="#ffffff";
	document.QContact.MLS.style.background="#ffffff";
	document.QContact.noagent.value="yup"
}
function agentinfo() {
var agentchecked = document.QContact.fakenoagent.checked;
if (agentchecked==1) {
	document.QContact.noagent.value="nope"
	//Agent Name
	document.QContact.Agent_Name.value="";
	document.QContact.Agent_Name.style.background="#cccccc";
	//Agent Company
	document.QContact.Agent_Company.value="";
	document.QContact.Agent_Company.style.background="#cccccc";
	//Agent Phone
	document.QContact.Agent_Phone.value="";
	document.QContact.Agent_Phone.style.background="#cccccc";
	//Agent Email
	document.QContact.Agent_Email.value="";
	document.QContact.Agent_Email.style.background="#cccccc";
	//MLS
	document.QContact.MLS.value="";
	document.QContact.MLS.style.background="#cccccc";
}
else {
	//Agent Name
	document.QContact.noagent.value="yup"
	document.QContact.Agent_Name.disabled=0;
	document.QContact.Agent_Name.style.background="#ffffff";
	//Agent Company
	document.QContact.Agent_Company.disabled=0;
	document.QContact.Agent_Company.style.background="#ffffff";
	//Agent Phone
	document.QContact.Agent_Phone.disabled=0;
	document.QContact.Agent_Phone.style.background="#ffffff";
	//Agent Email
	document.QContact.Agent_Email.disabled=0;
	document.QContact.Agent_Email.style.background="#ffffff";
	//MLS
	//document.QContact.MLS.disabled=0;
	//document.QContact.MLS.style.background="#ffffff";
}
}

//Preferred Time
function preftime() {
	document.QContact.Preferred_Time_Other.value="";
	document.QContact.Preferred_Time_Other.style.background="#cccccc";
}

function preftimeother() {
	document.QContact.Preferred_Time_Other.style.background="#ffffff";
}

//Alt Time 1
function alttime1() {
	document.QContact.Alt_Time_Other_1.value="";
	document.QContact.Alt_Time_Other_1.style.background="#cccccc";
}

function alttimeother1() {
	document.QContact.Alt_Time_Other_1.style.background="#ffffff";
}

//Alt Time 2
function alttime2() {
	document.QContact.Alt_Time_Other_2.value="";
	document.QContact.Alt_Time_Other_2.style.background="#cccccc";
}

function alttimeother2() {
	document.QContact.Alt_Time_Other_2.style.background="#ffffff";
}
