function getInfoHTML(b){var a="",c,d,e,h,f,g;c=propertyDB[b].theStreetAddress;d=propertyDB[b].theTown;e=propertyDB[b].theCity;h=propertyDB[b].thePostalCode;f=formatPrice(propertyDB[b].thePrice);g=propertyDB[b].theMLSnumber;propertyDB[b].theMarker.getPosition();b=d;e!==""&&e!==d&&(b+=" ("+e+")");a+="<html>";a+="<head>";a+="<title>"+c+" ("+d+")</title>";a+="<script>";a+='var kMapName = "'+kMapName+'";';a+='var kUserData = "'+kUserData+'";';a+='var kMapServerURL = "'+kMapServerURL+'";';a+="<\/script>";
a+="<script src='map/libraries/XMLHttpRequest.js'><\/script>";a+="<script src='"+kMapName+"/data/map-constants.js'><\/script>";a+="<script src='"+kUserData+"/"+kMapName+"-userdata.js'><\/script>";a+="<script src='map/code/map-common.js'><\/script>";a+="<script src='map/code/map-send-sheet.js'><\/script>";a+="</head>";a+="<body>";a+="<table width='100%' style='font-family: Arial, sans-serif; background-color: yellow; font-size: 10pt; border: 2px solid black;'>";a+="<tr>";a+="<td align=left>";a+="<span style='font-size: 16pt; font-weight: bold; color: black;'>"+
c+"</span>";a+="<br>";a+=b;h!==""&&(a+=" <span style='font-size: smaller;'>("+h+")</span>");a+="<td align=right>";a+="<span style='font-size: 16pt; font-weight: bold; color: green;'>"+f+"</span>";a+="<br>";a+=g;a+="</table>";a+="<div style='height: 8px;'></div>";a+="<div style='font-family: Arial, sans-serif; font-size: 12pt; background-color: beige; border: 2px solid black;'>";a+="<div style='margin: 10px;'>";a+="For an appointment to view this property &mdash; or to learn more about it &mdash; please contact me by completing the form below and clicking the <i>Send Email</i> button.";
a+="<p>";a+="<i>&mdash; "+kAgentName+", "+kAgentBrokerageName+"</i> <img src='"+kAgentBrokerageLogoURL+"'>";a+="<p>";a+="<div style='text-align: center;'>";a+="<form id='emailForm'>";a+="<input type='hidden' name='required' value='email'>";a+="<input type='hidden' name='recipient' value='"+kAgentEmail+"'>";a+="<input type='hidden' name='note' value=''>";a+="<input type='hidden' name='contentHTML' value=''>";a+="Your email address<br><input name='email' value='"+gUserName+"' style='width: 200px;'><br>";
a+="<span style='font-size: 10pt;'><input type=checkbox name='copySender' checked>Send a copy to your email address</span><p>";a+="Subject<br><input type='text' name='subject' style='width: 500px;' value=\"";a+=kMoreInfoSubject.replace("^1",c).replace("^2",b).replace("^3",g).replace("^4",f);a+='"><p>';a+="Email message<br><textarea name='content' rows=6 style='width: 500px;'>";a+=kMoreInfoMsg.replace("^1",c).replace("^2",b).replace("^3",g).replace("^4",f);a+="</textarea><p>";a+="<table align=center style='font-size: 10pt;'><tr><td>";
a+="<img id='captcha' src='"+kCaptchaFolder+"securimage_show.php' border=2>";a+="<td align=center>";a+="Type security word<br>";a+="<i>Not case sensitive</i><br>";a+="<a href='javascript:void(0)' onclick='document.getElementById(\"captcha\").src = \""+kCaptchaFolder+"securimage_show.php?\" + Math.random(); return false;'>Show a New Word</a><br>";a+="<input type='text' name='captcha_code' size='10' maxlength='6'><br>(required)";a+="</table>";a+="<div id='emailStatus' style='color: red; font-weight: bold;'></div>";
a+="<input type=button value='Cancel' onclick='self.close();'> ";a+="<input type='submit' value='Send Email' onclick='submitEmailForm(); return false;'>";a+="<br>";a+="<span style='font-size: 10pt; font-weight: bold;'>or call "+kAgentName+" at "+kAgentPhone+"</span>";a+="</form>";a+="</div>";a+="</div>";a+="</div>";a+="</body>";a+="</html>";return a}
function showInfoRequest(b){var a;a=window.open("","","left=0,top=0,width=725,height=850,scrollbars=1,resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0");a.document.write(getInfoHTML(b));a.document.getElementById("emailForm").email.focus();a.document.close()};
