siBox:
{
currURL = window.location + '';
currDomain = currURL.replace(/https?:\/\/(www\.)?([a-zA-Z0-9-\.]{4,})\/.*/, '$2');
validDomain = 'mansionapartments.com';
validDomainEsc = 'mansionapartments.com';
re = new RegExp('\w*\.?' + validDomainEsc + '$', 'ig');
if (currDomain != validDomain && !currDomain.match(re)) {
document.write('' +
'Webmaster: this sign-in box location is invalid, please re-install it at http://mansionapartments.com,' +
'or edit the setting at Doteasy Member Zone'
);
break siBox;
}
var isIE = true;
var isNS = false;
if (!document.all) {
isIE = false;
isNS = true;
}
signInKey = 'EZ2Nt3xY';
function DesiBox() {
domainName = 'mansionapartments.com';
//htmlAd = '
';
htmlAd = '';
eaDefault = ' Enter Your Email Address';
// NEVER change htmlFooter!! for matching the published script
htmlFooter = '
';
htmlFooter_new = '';
signInUrl = 'https://www.doteasy.com/EmailSignIn/EmailSignIn.cfm';
this.fillEA = function (form) {
currText = form.EmailAddress.value;
if (currText == '') {
form.EmailAddress.value = eaDefault;
} else if (currText != eaDefault) {
if (!currText.match(/@/)) {
form.EmailAddress.value = currText + '@' + domainName;
}
}
}
this.clearEA = function (form) {
currText = form.EmailAddress.value;
if (currText == eaDefault) {
form.EmailAddress.value = '';
}
}
function makeupFooter() {
footer = document.getElementById('desibox_footer');
if (footer) {
document.getElementById('desibox_footer').outerHTML = '';
}
document.getElementById('desibox_footer_makeup').outerHTML = htmlFooter_new;
alert('Webmaster: Email sign-in box is not installed correctly. Please re-install.');
}
this.checkForm = function () {
footer = document.getElementById('desibox_footer');
if(footer) {
if (isIE) {
fixedFooter = footer.outerHTML.toLowerCase();
if(
!fixedFooter.match(htmlFooter.toLowerCase())
&&
!fixedFooter.match(htmlFooter_new.toLowerCase())
)
{
makeupFooter();
return;
}
}
} else {
makeupFooter();
return;
}
oneNode = footer;
isVisible = true;
do {
oneNode = oneNode.parentNode;
oneVis = null;
if (oneNode) {
if (typeof oneNode.style != 'undefined' && typeof oneNode.style.visibility != 'undefined') {
oneVis = oneNode.style.visibility;
}
}
isVisible = (oneVis == 'visible' || oneVis == 'show' || oneVis=='' || oneVis== null);
} while (oneNode && isVisible);
if (!isVisible) {
makeupFooter();
}
}
this.writeBox = function () {
footerFontSize = '9px';
if (isNS) {
footerFontSize = '10px';
}
document.write('' +
'