var currentChild=0;var guestbookStartID=0;var gl_weatherZip="92831";var hideNavChildInterval=0;Date.MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.DAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.SUFFIXES=["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"];Date.prototype.format=function(P){var D=(P!=null)?P:"DD-MMM-YY";var G="DMYHdhmst".split("");var O=new Array();var E=0;var J;var H=/\[(\d+)\]/;var L=this.getDay();var A=this.getDate();var F=this.getMonth();var I=this.getFullYear().toString();var M=this.getHours();var B=this.getMinutes();var N=this.getSeconds();var K=new Object();K.D=A;K.d=A+Date.SUFFIXES[A-1];K.DD=(A<10)?"0"+A:A;K.DDD=Date.DAYS[L].substring(0,3);K.DDDD=Date.DAYS[L];K.M=F+1;K.MM=(F+1<10)?"0"+(F+1):F+1;K.MMM=Date.MONTHS[F].substring(0,3);K.MMMM=Date.MONTHS[F];K.Y=(I.charAt(2)=="0")?I.charAt(3):I.substring(2,4);K.YY=I.substring(2,4);K.YYYY=I;K.H=M;K.HH=(M<10)?"0"+M:M;K.h=(M>12||M==0)?Math.abs(M-12):M;K.hh=(K.h<10)?"0"+K.h:K.h;K.m=B;K.mm=(B<10)?"0"+B:B;K.s=N;K.ss=(N<10)?"0"+N:N;K.t=(M<12)?"A":"P";K.tt=(M<12)?"AM":"PM";for(var C=0;C<G.length;C++){J=new RegExp("("+G[C]+"+)");while(J.test(D)){O[E]=RegExp.$1;D=D.replace(RegExp.$1,"["+E+"]");E++}}while(H.test(D)){D=D.replace(H,K[O[RegExp.$1]])}return D};function rgb(C,B,A){return C.toString(16)+B.toString(16)+A.toString(16)}var ua=navigator.userAgent.toLowerCase(),isOpera=(ua.indexOf("opera")>-1),isSafari=(ua.indexOf("safari")>-1),isGecko=(!isOpera&&!isSafari&&ua.indexOf("gecko")>-1),isIE=(!isOpera&&ua.indexOf("msie")>-1);function showNavChildren(A){var B=document.getElementById("navChildren_"+A);if(currentChild!=0&&currentChild!=A){hideNavChildren(currentChild)}window.clearInterval(hideNavChildInterval);if(B){currentChild=A;B.style.display="block";B.style.position="absolute";B.onmouseover=function(){var C=this.id.split("_");showNavChildren(parseInt(C[1]))};hideNavChildInterval=window.setInterval("hideNavChildren("+A+")",3000)}}function hideNavChildren(A){window.clearInterval(hideNavChildInterval);var B=document.getElementById("navChildren_"+A);if(B){B.style.display="none"}}function hideAllChildren(A,B){}function addClientSideBookmark(B,A){if(window.sidebar){window.sidebar.addPanel(A,B,"")}else{if(window.external){window.external.AddFavorite(B,A)}else{alert("Your browser doesn't support this function.\nHowever, you may add the site to your bookmarks list manually.")}}}var message="";var speed=400;var visible=0;function Flash(A,B){speed=B;message=A;if(visible==0){window.status=message;visible=1}else{window.status="";visible=0}setTimeout("Flash()",speed)}var Count=0;var Text="";var Speed=90;var timerID=null;var TimerRunning=false;var i=0;function Scroll(){window.status=Text.substring(Count++,Text.length);if(Count==Text.length){Count=0}timerID=setTimeout("Scroll()",Speed);TimerRunning=true}function StartScroll(A,B){Text=A;Speed=B;if(Text!=" "){while(i++<140){Text=" "+Text}Stop();Scroll()}}function Stop(){if(TimerRunning){clearTimeout(timerID)}TimerRunning=false}function popUp(A,B){day=new Date();id=day.getTime();var C=window.open(A,id,B)}function newImage(A){if(document.images){rslt=new Image();rslt.src=A;return rslt}}function changeImages(){for(var A=0;A<changeImages.arguments.length;A+=2){document[changeImages.arguments[A]].src=changeImages.arguments[A+1]}}var preloadFlag=false;function preloadImages(){if(document.images){learnMore1_over=newImage("images/learnMoreTeal-over.gif");learnMore2_over=newImage("images/learnMoreOrange-over.gif");preloadFlag=true}}function closeMe(){if(window.opener.closed==false){window.close();window.opener.focus()}else{if(window.opener.closed==true){window.open("index.htm");window.close()}}}function addToFavorites(B,A){if(window.external){window.external.AddFavorite(B,A)}else{alert("Sorry! Your browser doesn't support this function.")}}var lastXMLDocMethod="";function loadXMLDoc(B,E,D,A,C){loadXMLDocAdv(B,E,D,A,C,true,"http://DiverseSolutions.com")}function loadXMLDoc(B,F,E,A,D,C){loadXMLDocAdv(B,F,E,A,D,C,"http://DiverseSolutions.com")}function AjaxHandler(C){var B=null;var A=C;this.register=function(D){B=D;return this.change};this.change=function(){A(B)}}function loadXMLDocAdv(B,A,G,F,O,E,C){if(E+""=="undefined"){E=true}if(C+""=="undefined"){C="http://DiverseSolutions.com"}lastXMLDocMethod=A;var M=false;if(window.XMLHttpRequest){try{M=new XMLHttpRequest()}catch(J){reg=false}try{netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead")}catch(J){}}else{if(window.ActiveXObject){try{M=new ActiveXObject("Microsoft.XMLHTTP")}catch(J){M=false}}}if(M){var I=null;var N=new AjaxHandler(O);if(G!="POST"){M.onreadystatechange=N.register(M);M.open(G,B,E)}else{if(F==""){M.onreadystatechange=N.register(M);M.open(G,B,E);M.setRequestHeader("Content-Type","text/xml");I="";I+='<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">\n';I+="<SOAP:Header></SOAP:Header>\n";I+="<SOAP:Body>\n";I+="     <"+A+' xmlns="'+C+'">\n';I+="     </"+A+">\n";I+="</SOAP:Body>\n";I+="</SOAP:Envelope>\n"}else{M.onreadystatechange=N.register(M);M.open(G,B,E);M.setRequestHeader("Content-Type","text/xml");I="";var K=F.split("&");var L;I+='<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">\n';I+="<SOAP:Header>\n";I+='     <SoapBoxHeader xmlns="'+C+'">\n';for(var H=0;H<K.length;H++){L=K[H].split("=");if(L.length==3&&L[0]=="header"){I+="<"+L[1]+">"+L[2]+"</"+L[1]+">\n"}}I+="     </SoapBoxHeader>\n";I+="</SOAP:Header>\n";I+="<SOAP:Body>\n";I+="     <"+A+' xmlns="'+C+'">\n';for(var H=0;H<K.length;H++){L=K[H].split("=");if(L.length==2){var D=L[0].split("|");if(D.length==2&&D[1]=="cdata"){L[0]=D[0];L[1]="<![CDATA["+unescape(L[1])+"]]>"}I+="<"+L[0]+">"+L[1]+"</"+L[0]+">\n"}}I+="     </"+A+">\n";I+="</SOAP:Body>\n";I+="</SOAP:Envelope>\n"}}M.send(I)}}function dsSelectSingleNode(C,A){if(C.childNodes){for(var B=0;B<C.childNodes.length;B++){if(C.childNodes[B].nodeName==A){return C.childNodes[B]}}}return null}function getNodeValue(B,A){var C=dsSelectSingleNode(B,A);if(C&&C.firstChild){return C.firstChild.nodeValue}else{return""}}function getElementTextNS(E,D,B,C){var A="";if(E&&isIE){A=B.getElementsByTagName(E+":"+D)[C]}else{A=B.getElementsByTagName(D)[C]}if(A){if(A.childNodes&&A.childNodes.length>1){return A.childNodes[1].nodeValue}else{if(A.firstChild){return A.firstChild.nodeValue}else{return""}}}else{return""}}function createCookie(C,D,E){if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()}else{var A=""}document.cookie=C+"="+D+A+"; path=/"}function readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}function eraseCookie(A){createCookie(A,"",-1)}function checkListingsGuestBook(){guestbookStartID=parseInt(guestbookStartID);var A=readCookie("listingsGuestbook");if((A==""||A==null)&&guestbookStartID>=1){location.href="/properties/listingsGuestBook.aspx?URL="+location.href}}function replaceSlideShow(){var A=document.getElementsByName("imgSlideShow");if(A){for(var B=0;B<A.length;B++){if(A[B].getAttribute("tag")!="FeaturedProperties"){new Ajax.Request("/slideshows/slideshow"+A[B].getAttribute("tag")+".xml",{method:"get",onSuccess:processSlideshow.bind(this,A[B])})}else{new Ajax.Request("/homeshow.xml",{method:"get",onSuccess:processSlideshow.bind(this,A[B])})}}}}function processSlideshow(J,P){var I=P.responseXML.documentElement;var B,Q,G,K,F,E;if((document.all&&I!=null)||(!document.all&&I.childNodes.length==5)){G=getElementTextNS("","slideShowID",I,0);K="/slideshows/slideshow"+getElementTextNS("","slideShowID",I,0)+".xml";B=getElementTextNS("","width",I,0);Q=getElementTextNS("","height",I,0);F=getElementTextNS("","resizePhotos",I,0);E=getElementTextNS("","showNavigation",I,0);photoPause=getElementTextNS("","photoPause",I,0)}else{G="FeaturedProperties";K="/homeshow.xml";F="true";E="true";photoPause=4;B=0;Q=0}if(J){if(J.getAttribute("tag")+""==G+""||J.getAttribute("tag")=="FeaturedProperties"){if(J.getAttribute("tag")=="FeaturedProperties"){G="FeaturedProperties";K="/homeshow.xml";F="true";E="true";photoPause=4;B=0;Q=0}if(J.getAttribute("showNavigation")&&typeof J.getAttribute("showNavigation")!="undefined"&&J.getAttribute("showNavigation").toLowerCase()=="false"){E="false"}var N=com.deconcept.FlashObjectUtil.getPlayerVersion("7",true).major;var D=document.createElement("div");var A=Math.floor(Math.random()*1000)+"";if(N==0){var M=null;var O=null;var L=null;var H="";D.style.width="214";D.style.textAlign="center";M=document.createElement("TEXT");H='This website makes use of Macromedia<sup style="font-size: 7px;">(R)</sup> Flash<sup style="font-size: 7px;">(TM)</sup> software. <br />';H+="Your current version of Macromedia Flash Player cannot display this site. <br />";H+="<br />";H+="Downloading the latest version is free and will only take a moment. <br />";H+="Be sure to come back and explore our site when you are finished. <br />";H+="<br />";M.innerHTML=H;D.appendChild(M);O=document.createElement("A");O.target="_blank";O.href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";L=document.createElement("IMG");L.src="/aimages/ui/get_flash_player.gif";L.width=88;L.height=31;L.border=0;O.appendChild(L);D.appendChild(O);J.style.display="none"}else{if(N<8){var C=new SWFObject("/aimages/ExpressInstaller.swf",A+"_movie","214","137","8","#FFFFFF");C.addParam("wmode","transparent");C.addParam("align","middle");C.addVariable("TextColor","0x000000");C.write(A+"_div");J.style.display="none";D.style.padding="4px";if(J.style.cssFloat!=""&&J.style.cssFloat+""!="undefined"){D.style.cssFloat=J.style.cssFloat}else{if(J.style.styleFloat!=""&&J.style.styleFloat+""!="undefined"){D.style.styleFloat=J.style.styleFloat}}}else{if(B==""||B=="0"||B==0||B+""=="undefined"){B=J.offsetWidth}if(Q==""||Q=="0"||Q==0||Q+""=="undefined"){Q=J.offsetHeight}var C=new deconcept.SWFObject("/globalForms/mainSlideShow.swf?id="+A,A+"_movie",B,Q,"8","#FFFFFF");C.addVariable("photoPause",photoPause);C.addVariable("slideShowXML",K);C.addVariable("showNav",E.toLowerCase());C.addVariable("resizePhotos",F.toLowerCase());C.addParam("wmode","transparent");D.innerHTML=C.getSWFHTML();D.style.width=B+"px";D.style.height=Q+"px"}}J.parentNode.insertBefore(D,J.nextSibling)}J.style.display="none"}}function loadPropertySlideshow(A,C){var B=Math.floor(Math.random()*1000)+"";var D=new deconcept.SWFObject("/globalForms/mainSlideShow.swf?id="+B,"movie_"+B,"300","200","9","#000000");D.addVariable("slideShowXML",C);D.addVariable("showNav","false");D.addVariable("resizePhotos","true");D.addVariable("photoPause","1");D.addParam("quality","high");D.addParam("AllowScriptAccess","sameDomain");D.addParam("wmode","transparent");D.write(A.id)}function replaceNewsFeed(){var A=document.getElementsByName("imgRealEstateNews");for(var B=0;B<A.length;B++){A[B].style.display="none"}if(A.length!=0){loadXMLDocAdv("/globalforms/news.aspx","","GET","",processNews)}}function processNews(K){if(K.readyState==4){if(K.status==200){var C=K.responseXML.documentElement;var J=C.getElementsByTagName("item");var D="";if(J!=null&&J.length>0){var M="newsItem";var I="";var L="";var B;for(var G=0;G<J.length;G++){B=new Date(getElementTextNS("","pubDate",J[0],0));I=B.format("MMM D, YYYY");D+="<tr><td class='"+M+"'>\r\n";if(I!=L){D+="<span class='NewsPublishDate'>"+I+"</span><br />\r\n"}D+="<a href='/GlobalForms/link.aspx?link="+encodeURIComponent(getElementTextNS("","link",J[G],0))+"'>"+getElementTextNS("","title",J[G],0)+"</a><br>\r\n";D+="</td></tr>\r\n";if(M=="newsItem"){M="newsOddItem"}else{M="newsItem"}L=I;if(G==8){G=J.length}}}D+="</table>";var F=document.getElementsByName("imgRealEstateNews");var H=true;for(var G=0;G<F.length;G++){var A=D;if(F[G].getAttribute("showTitle")+""=="false"){H=false}else{H=true}var E=document.createElement("div");if(H){A="<table class='newsTable'><tr><th class='newsHeader' align=left>Real Estate News</th></tr>\r\n"+A}else{A="<table class='newsTable'>\r\n"+A}E.id="dvRealEstateNews"+G;E.innerHTML=A;F[G].parentNode.insertBefore(E,F[G].nextSibling)}}else{}}else{}}function replaceAgentChat(){var A=document.getElementsByName("imgAgentChat");var D=null;var B=null;if(!A){}else{if(typeof (A.length)!="undefined"){for(var C=0;C<A.length;C++){D=document.createElement("a");D.href="javascript:popUp('/jabber/default.aspx','width=380,height=320');";B=document.createElement("img");B.src="/aimages/ui/rd_chatIcon.gif";B.border=0;D.appendChild(B);A[C].style.display="none";A[C].parentNode.insertBefore(D,A[C])}}else{D=document.createElement("a");D.href="javascript:popUp('/jabber/default.aspx','width=380,height=320');";B=document.createElement("img");B.src="/aimages/ui/rd_chatIcon.gif";B.border=0;D.appendChild(B);A.style.display="none";A.parentNode.insertBefore(D,A)}}}function replaceRatesFeed(){var A=document.getElementsByName("imgMortgageRates");for(var B=0;B<A.length;B++){A[B].style.display="none"}if(A.length!=0){loadXMLDocAdv("/globalforms/mortgage.aspx","","GET","",processRates)}}function processRates(J){if(J.readyState==4){if(J.status==200){var B=J.responseXML.documentElement;if(B!=null){var I=B.getElementsByTagName("mortgageRate");var C="";var F=true;if(I!=null&&I.length>0){var L="ratesItem";for(var E=0;E<I.length;E++){var H=parseFloat(getNodeValue(I[E],"latestRate"));H=H*100;var K=H+"";var A=K.split(".");if(A[0].length>1){K=K.substring(0,5)}else{if(K.length>4){K=K.substring(0,4)}}if(K!="0"){C+="<tr><td onclick='launchMortLink()' class='"+L+" rateItemTitle' style=''>"+getNodeValue(I[E],"minorName")+"</td>";C+="<td onclick='launchMortLink()' class='"+L+" rateItemRate'>"+K+"%</td></tr>\r\n"}if(L=="ratesItem"){L="ratesOddItem"}else{L="ratesItem"}}}var D=document.getElementsByName("imgMortgageRates");for(var E=0;E<D.length;E++){if(D[E].getAttribute("showTitle")+""=="false"){F=false}else{F=true}sReplacement="<table onclick='launchMortLink()' class='ratesTable' cellspacing='0' cellpadding='0'>";if(F){sReplacement+="<tr><th onclick='launchMortLink()' class='ratesHeader' colspan=2 align=left style='font-size:12px'>Mortgage Rates</th></tr>\r\n"}else{}sReplacement+="<tr><th onclick='launchMortLink()' class='ratesTitle' align='left' style=''>Product</th><th class='ratesTitle' align='left' style=''>Rate</th></tr>\r\n";sReplacement+=C+"</table>";var G=document.createElement("div");G.className="dvMortgageRates";G.id="dvMortgageRates"+E;G.innerHTML=sReplacement;D[E].parentNode.insertBefore(G,D[E].nextSibling)}}}else{}}else{}}function launchMortLink(){if(gl_mortLink!=""){if(gl_mortLink.indexOf("/globalForms/link.aspx?link=")==0){location.href=gl_mortLink}else{location.href=unescape(gl_mortLink)}}}function updateWeather(A){replaceWeatherFeed(A)}function replaceWeatherFeed(C){var A=document.getElementsByName("imgWeatherFeed");for(var B=0;B<A.length;B++){A[B].style.display="none"}if(C+""=="undefined"){C=gl_weatherZip}if(A.length!=0){loadXMLDocAdv("/globalforms/weather.aspx?zip="+C,"","GET","",processWeather)}}function processWeather(G){if(G.readyState==4){if(G.status==200&&G.responseXML.documentElement!=null){var C=G.responseXML.documentElement;var B=C.getElementsByTagName("item");var F="";F="<table class='weatherTable'><tr><th class='weatherHeader' colspan=2 align=left>Local Weather</th></tr>\n";F+="<tr><td class='weatherItem'>";if(B!=null&&B.length>0){F+=getElementTextNS("","description",B[0],0)}F+="<br />Feed provided by Yahoo! Weather.</td></tr></table>";var A=document.getElementsByName("imgWeatherFeed");for(var D=0;D<A.length;D++){var E=document.createElement("div");E.id="dvWeatherFeed"+D;E.innerHTML=F;A[D].parentNode.insertBefore(E,A[D].nextSibling)}}}else{}}function propertyResultOver(A){A.tempClassName=A.className;A.className="propertyResultsOver"}function propertyResultOut(A){A.className=A.tempClassName}function getViewportHeight(){var A=self.innerHeight;var B=document.compatMode;if((B||isIE)&&!isOpera){A=(B=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return A}function getViewportWidth(){var A=self.innerWidth;var B=document.compatMode;if(B||isIE){A=(B=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth}return A}function showGoogEarthDiv(K){var G;var L;var J;var A=300;var M;var D;var H;var C;var E="";E='<img src="http://earth.google.com/images/art.gif"> <br><br>\r\n';E+="To view this link, you must have Google Earth<br><br>\r\n";E+='<b>If you have Google Earth installed click <a onclick="hideGoogDiv(this)" href="'+K+'" target="_blank">here</a></b>.<br><br>\r\n';E+='<i>"The idea is simple. It\'s a globe that sits inside your PC. You point and zoom to anyplace on the planet that you want to explore. Satelite images and local facts zoom into view. Tap into Google search to show local points of interest and facts. Zoom to a specific address to check out an apartment or hotel. View driving directions and even fly along your route. "</i> - http://earth.google.com <br><br>';E+='<b>Click <a href="http://earth.google.com/download-earth.html" target="_blank">here</a> to be transported to the Google Earth download page.</b><br><br>';E+='<a onclick="hideGoogDiv(this)" href="javascript:void(0);">cancel</a>';var I=getViewportWidth(),B=getViewportHeight(),N=Math.max(document.documentElement.scrollTop,document.body.scrollTop),F=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);G=document.getElementById("googDiv");if(!G){G=document.createElement("DIV");G.id="googDiv";G.style.background="#FFFFFF";G.style.border="solid 1px black";G.style.position="absolute";G.style.width=A+"px";G.style.left="0px";G.style.top="0px";G.style.zIndex=20;M=document.createElement("TABLE");G.background="#FFFFFF";M.width="100%";M.height="100%";M.className="propertyTable";M.cellSpacing=0;M.cellPadding=2;D=document.createElement("TBODY");H=document.createElement("TR");C=document.createElement("TD");C.className="propertyTableHead";C.innerHTML="Google Earth";C.style.height="12px";H.appendChild(C);D.appendChild(H);H=document.createElement("TR");C=document.createElement("TD");C.id="googTd";C.className="propertyTableRow";C.innerHTML=E;C.align="center";C.vAlign="middle";H.appendChild(C);D.appendChild(H);M.appendChild(D);G.appendChild(M);document.body.appendChild(G)}else{C=document.getElementById("googTd");C.innerHTML=E;G.style.display="block"}L=(I/2)-(G.offsetWidth/2)+F;J=(B/2)-(G.offsetHeight/2)+N;G.style.left=L+"px";G.style.top=J+"px"}function hideGoogDiv(B){var A=document.getElementById("googDiv");if(A){A.style.display="none"}}function correctPNG(){for(var G=0;G<document.images.length;G++){var D=document.images[G];var F=D.src.toUpperCase();if(F.substring(F.length-3,F.length)=="PNG"){var B=(D.id)?"id='"+D.id+"' ":"";var E=(D.className)?"class='"+D.className+"' ":"";var H=(D.title)?"title='"+D.title+"' ":"title='"+D.alt+"' ";var C="display:inline-block;"+D.style.cssText;if(D.align=="left"){C="float:left;"+C}if(D.align=="right"){C="float:right;"+C}if(D.parentElement!=null&&D.parentElement.href){C="cursor:hand;"+C}var A="<span "+B+E+H+' style="width:'+D.width+"px; height:"+D.height+"px;"+C+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D.src+"', sizingMethod='scale');\"></span>";D.outerHTML=A;G=G-1}}}function addOnloadEvent(A){var B=window.onload;if(typeof window.onload!="function"){window.onload=A}else{window.onload=function(){B();A()}}}if(typeof (addOnUnloadEvent)=="undefined"){function addOnUnloadEvent(B){var A=window.onunload;if(typeof window.onunload!="function"){window.onunload=B}else{window.onunload=function(){A();B()}}}}if(document.all){addOnloadEvent(correctPNG)}function runGlobalEndHead(){try{replaceRatesFeed()}catch(A){}try{replaceWeatherFeed()}catch(A){}try{replaceNewsFeed()}catch(A){}try{replaceSlideShow()}catch(A){}try{replaceAgentChat()}catch(A){}}function floor(A){return Math.floor(A*Math.pow(10,2))/Math.pow(10,2)}function dosum(){var F=parseFloat(document.getElementById("YR").value.replace(/[,a-zA-Z]/g,""));var G=parseFloat(document.getElementById("IR").value.replace(/[,a-zA-Z]/g,""));var C=parseFloat(document.getElementById("LA").value.replace(/[,a-zA-Z]/g,""));var B=parseFloat(document.getElementById("AT").value.replace(/[,a-zA-Z]/g,""));var I=parseFloat(document.getElementById("AI").value.replace(/[,a-zA-Z]/g,""));var D=G/1200;var A=1;var H=1+D;for(i=0;i<F*12;i++){A=A*H}var E=(C*D/(1-(1/A)))+(B/12)+(I/12);document.getElementById("PI").value="$"+floor(C*D/(1-(1/A)));document.getElementById("MT").value="$"+floor(B/12);document.getElementById("MI").value="$"+floor(I/12);document.getElementById("MP").value="$"+floor(E)};