if (document.getElementById('ContentError')) {var errorObj = document.getElementById('ContentError'); errorObj.className='CfwpError'; errorObj.innerHTML=''}
var currentHost = 'https://michellegenovesi.topproducerpages.com:443/';
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 = 'https://michellegenovesi.topproducerpages.com:443/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', 'https://michellegenovesi.topproducerpages.com:443/siteimages/loadingbar.gif');
}
function AttemptGetReport() {
loadJavascript ('uploadScript', 'https://michellegenovesi.topproducerpages.com:443/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', 'https://michellegenovesi.topproducerpages.com:443/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 - michellegenovesi:';if (window.ShowHeader) {ShowHeader(0);}if (document.getElementById('ContentTitle')) document.getElementById('ContentTitle').innerHTML = "Your Feedback Report";if (document.getElementById('ContentAgentInfo')) document.getElementById('ContentAgentInfo').innerHTML = "Michelle&Team at William Raveis Real Estate
Work:203-454-4663
michelle@michelleandteam.com
http://www.michelleandteam.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 = "
Username | |
Password | |
![]() |