if (document.getElementById('ContentError')) {var errorObj = document.getElementById('ContentError'); errorObj.className='CfwpError'; errorObj.innerHTML=''} var currentHost = 'http://jimbroadley.topproducerpages.com:80/'; var lastCommand = ''; function readCookie(name) { var nameEQ = name + '='; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function createCookie(name,value) { var expires = ''; document.cookie = name+'='+value+expires+'; path=/'; } function enterLoginChar(e) { if ((e && e.keyCode == 13)|| (window.event && window.event.keyCode == 13)) LoginAndGetReport(); else return true; } function loadStyleSheet(inref) { var script = document.createElement('link'); script.href = inref; var head = document.getElementsByTagName('head')[0]; script.id = 'stylesheet'; script.rel='stylesheet'; script.type = 'text/css'; head.appendChild(script); } function loadJavascript(id, src) { var script = document.createElement('script'); script.src = src; var head = document.getElementsByTagName('head')[0]; script.id = id; script.type = 'text/javascript'; head.appendChild(script); } function LoginAndGetReport() { if (document.getElementById('txtUsername').value != '') { var src = 'http://jimbroadley.topproducerpages.com:80/javascript.aspx?js=login' + '&username=' + document.getElementById('txtUsername').value + '&password=' + document.getElementById('txtPassword').value; var obj = document.getElementById('loginimg'); showBusy(obj); loadJavascript ('uploadScript', src); } else { if (document.getElementById('ContentError')) document.getElementById('ContentError').innerHTML = 'No user name entered. Please enter a valid user name.'; } } function showBusy(obj) { obj.setAttribute('origsrc', obj.src); obj.setAttribute('src', 'http://jimbroadley.topproducerpages.com:80/siteimages/loadingbar.gif'); } function AttemptGetReport() { loadJavascript ('uploadScript', 'http://jimbroadley.topproducerpages.com:80/javascript.aspx?js=login&SESSIONCLIENTKEY=' + readCookie('SESSIONCLIENTKEY')); } function deleteCookie(name) { createCookie(name,'',-1); } function showReport (obj) { var headerRow = obj.parentNode; while (headerRow.tagName.toLowerCase() != 'th') headerRow = headerRow.parentNode; headerRow = headerRow.childNodes[0]; var table = obj; while (table.tagName.toLowerCase() != 'tbody') table = table.parentNode; var rowNum = parseInt(obj.getAttribute('reportNum')) -1; for (var i = 0; i < headerRow.childNodes.length; i++) { if (i == rowNum) { headerRow.childNodes[i].className = 'CfwSelected'; headerRow.childNodes[i].style.backgroundImage = 'url('+currentHost+'siteimages/Left_Selected.gif)'; headerRow.childNodes[i].childNodes[0].style.backgroundImage = 'url('+currentHost+'siteimages/Right_Selected.gif)'; table.childNodes[i+1].style.display = ''; } else { headerRow.childNodes[i].className = 'CfwNotSelected'; headerRow.childNodes[i].style.backgroundImage = 'url('+currentHost+'siteimages/Left_NotSelected.gif)'; headerRow.childNodes[i].childNodes[0].style.backgroundImage = 'url('+currentHost+'siteimages/Right_NotSelected.gif)'; table.childNodes[i+1].style.display = 'none'; } } } function LogoutReport() { var obj = document.getElementById('logoutgif'); showBusy(obj); loadJavascript ('uploadScript', 'http://jimbroadley.topproducerpages.com:80/javascript.aspx?js=logout&SESSIONCLIENTKEY=' + readCookie('SESSIONCLIENTKEY')); } loadStyleSheet(currentHost + 'css/cfwpStyle.css'); loadJavascript ('sortTable', currentHost + 'scripts/sortTable.js'); var cook = readCookie('SESSIONCLIENTKEY'); if (cook) AttemptGetReport();lastCommand = 'settingUpReports - jimbroadley:';if (window.ShowHeader) {ShowHeader(0);}if (document.getElementById('ContentTitle')) document.getElementById('ContentTitle').innerHTML = "Your Real Estate Marketing Update";if (document.getElementById('ContentAgentPhoto')) document.getElementById('ContentAgentPhoto').innerHTML = " ";if (document.getElementById('ContentAgentPhoto')) document.getElementById('ContentAgentPhoto').innerHTML = " ";if (document.getElementById('ContentAgentInfo')) document.getElementById('ContentAgentInfo').innerHTML = "Jim Broadley
B.Sc. Broker

Work:905-456-1000
Cell:905-866-8650
Home:905-877-6796
jim@jimbroadley.com
http://www.jimbroadley.com";if (document.getElementById('ContentPartnerInfo')) document.getElementById('ContentPartnerInfo').innerHTML = "

";if (document.getElementById('CommunityReports')) document.getElementById('CommunityReports').innerHTML = "";if (document.getElementById('ContentHeader')) document.getElementById('ContentHeader').innerHTML = "
Welcome to Your 24/7 Information Center!
Come here as often as you like to review details on all our ongoing marketing activities.
";if (document.getElementById('ContentLogo')) document.getElementById('ContentLogo').innerHTML = "logo";if (document.getElementById('ContentContent')) document.getElementById('ContentContent').innerHTML = '';if (document.getElementById('ContentReports')) document.getElementById('ContentReports').innerHTML = "
Username
Password
login
";