
var newWindow = null;

function openSMLITerms() 
{
     //contentURL, windowName, windowWidth, windowHeight
    // widthHeight = 'height=' + windowHeight + 'width=' + windowWidth;
     contentURL =  'TermsOfUse/SellMyLife-TermsOfUse.html';
     windowName='Terms';
     windowWidth=800;
     windowHeight=580;
     newWindow =  window.open(contentURL, windowName,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width="+windowWidth+", height="+windowHeight);
     newWindow.focus()
}

function openSMLIStateDisc() 
{
     //contentURL, windowName, windowWidth, windowHeight
    // widthHeight = 'height=' + windowHeight + 'width=' + windowWidth;
     contentURL =  'disclosures/SellMyLife-StateDisclosures.html';
     windowName='StateDisclosures';
     windowWidth=800;
     windowHeight=580;
     newWindow =  window.open(contentURL, windowName,"toolbar=yes, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width="+windowWidth+", height="+windowHeight);
     newWindow.focus()
}

function openSMLIPrivacyPolicy() 
{
     contentURL =  '/PrivacyPolicy/PrivacyPolicyStateSelect.html';
     windowName='PrivacyPolicy';
     windowWidth=800;
     windowHeight=580;
     newWindow =  window.open(contentURL, windowName,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width="+windowWidth+", height="+windowHeight);
     newWindow.focus()
}
function openSMLIAntiFraudPolicy() 
{
     contentURL =  '/AntiFraud/AntiFraudStateSelect.html';
     windowName='AntiFraud';
     windowWidth=800;
     windowHeight=580;
     newWindow =  window.open(contentURL, windowName,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width="+windowWidth+", height="+windowHeight);
     newWindow.focus()
}
function openWindow(contentURL, windowName, windowWidth, windowHeight) {
     widthHeight = 'height=' + windowHeight + 'width=' + windowWidth;
     newWindow =  window.open(contentURL, windowName,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width="+windowWidth+", height="+windowHeight);
     newWindow.focus()
}

function closeWindow() {
 
     if (newWindow != null)   {
      newWindow.close;
      newWindow = null;
     }

}