function mailto(optObj){
	var t = new Array();
	t[t.length] = '<div style="text-align:center;"><span style="font-size:14px;font-weight:bold;border-bottom:1px solid black;">Request More Information</span></div>';
	t[t.length] = '<div style="font-size:10px;padding-bottom:12px;text-align:center;font-style:italic">Items marked with <span style="color:red;font-weight:bold;">*</span> are Required</div>';
	t[t.length] = '<table cellspacing=0 style="font-family:Verdana,Arial;font-size:11px;vertical-align:top;">';
	t[t.length] = '<tr><td></td><td>To:</td><td id="requestFormAgentName">'+optObj.agentName+'</td></tr>';
	t[t.length] = '<tr><td style="color:red;font-weight:bold;">*</td><td>Your Name:</td><td><input id="requestFormNameInput" size="37" maxlength="50"></td></tr>';
	t[t.length] = '<tr><td style="color:red;font-weight:bold;">*</td><td>Your Email:</td><td><input id="requestFormEmailInput" size="37" maxlength="50"" ></td></tr>';
	t[t.length] = '<tr><td style="color:red;font-weight:bold;">*</td><td>Confirm Email:</td><td><input id="requestFormEmailConfirmInput" size="37" maxlength="50"></td></tr>';
	t[t.length] = '<tr><td></td><td>Your Phone:</td><td><input id="requestFormPhoneInput" size="37" maxlength="30"></td></tr>';
	t[t.length] = '<tr><td></td><td>Best Time To Call:</td><td><input id="requestFormBestTime" size="37" maxlength="30"></td></tr>';
	t[t.length] = '<tr><td></td><td colspan=2><input type="checkbox" id="requestFormHaveAgent" onclick="toggleAgentName();"><label >I am currently working with a real estate agent.</label> </td></tr>';
	t[t.length] = '<tr id="agRow" style="display:none"><td></td><td>Agent Name:</td><td><input type="text" id="requestFormHaveAgentName" size="37" maxlength="50"> </td></tr>';
	t[t.length] = '<tr><td></td><td>Subject:</td><td id="requestFormAddress">'+optObj.address+'</td></tr>';
	t[t.length] = '<tr><td style="color:red;font-weight:bold;vertical-align:top">*</td><td colspan="2"><textarea rows="5" cols="40" id="requestFormMessage"></textarea></td></tr>';
	t[t.length] = '</td></tr></table>';
	
	
	if(!window.iraSuite.requestPropertyInfoBox){
		iraSuite.requestPropertyInfo({innerHTML: t.join(''), email:optObj.email, search:document.location.search, pathName:document.location.pathname, did:did, agentId:optObj.agentId, classid:optObj.classid, shadowWidth:0});
	}
	else{
		iraSuite.requestPropertyInfoBox.close();
		iraSuite.requestPropertyInfoBox.remove();
		iraSuite.requestPropertyInfoBox = undefined;
		iraSuite.requestPropertyInfo({innerHTML: t.join(''), email:optObj.email, search:document.location.search, pathName:document.location.pathname, did:did, agentId:optObj.agentId, classid:optObj.classid, shadowWidth:0});
	}
	
	 toggleAgentName();
}
function toggleAgentName(){
	if($('requestFormHaveAgent').checked){
		$('agRow').show();
	}
	else{
		$('agRow').hide();
	}
}
