

function FPdisclosure(URL){
FPdisclosureWindow=window.open(URL, 'FPdisclosureWin', 'width=500,height=150,top=10,left=10,resizable');
}

function externalSite_disclosure(URL){
	
	if (getDisclaimerCookie()) {
 //  location.replace(location.protocol+'//' + location.host+ 'http://www.ssa.gov/planners/calculators.htm'); 
externalWindow=window.open('http://www.ssa.gov/planners/calculators.htm','width=800,height=500,scrollbars=yes,location=yes,toolbar=yes'); 
	}
else {	
SSAdisclosureWindow=window.open(URL, 'SSAdisclosureWin', 'width=500,height=200,top=100,left=150,resizable');
	}
}

function setDisclaimerCookie() {
	var DisclaimerCookie="http://www.ssa.gov/planners/calculators.htm";
    //Set cookie to expire 2 years from now 
    var expireDate = new Date(new Date().getTime() + 63072000000);
    var cookieStr=DisclaimerCookie + "=Y; expires=" + expireDate.toGMTString();
    document.cookie=cookieStr;
}

function getDisclaimerCookie() {
    if (document.cookie.indexOf(DisclaimerCookie + "=Y") == -1) {
        return false;
    } else {
        return true;
    }
}

function popupPDF(URL) {

	pdfWindow=window.open(URL, 'pdfWin', 'width=600,height=500,top=10,left=10,scrollbars,resizable');

}


function openFull(openURL){

	FullWindow=window.open(openURL, 'FullWindow','width=800,height=500,scrollbars=yes,location=yes,toolbar=yes');
	FullWindow.focus();
}

function openParentWindow(openURL) {

	window.opener.location.href=openURL;

	window.opener.focus();

}