function popUp(url)
{
	window.open(url, "popup", "width=675,height=540,resizable=yes,status=no,scrollbars=yes");

}

if (servername == null){
	var servername="";
}

//increases and decreases the text size by switching style sheets
var typeState = "0";
var ssName = servername + "/bipolar/patients/css/smstyle.css";
typeCookie = document.cookie;
strBegin = typeCookie.indexOf("largeFonts=");
if (strBegin >= 0){
	typePref = typeCookie.substring((strBegin + 11), (strBegin + 12));
	if (typePref == "1"){
		ssName = servername + "/bipolar/patients/css/style.css";
		typeState = "1";
   	}	
	else if(typePref == "2"){
		ssName = servername + "/bipolar/patients/css/lgstyle.css";
		typeState = "2";
	}
}
else{
   document.cookie = "largeFonts=0;path=/";
}
document.write('<link href="'+ssName+'" rel="stylesheet" type="text/css">');
//increases the text size by switching style sheets
function increaseSizeBiggest(){
	ssName = servername + "/bipolar/patients/css/lgstyle.css";
	typeState = "2";
	document.cookie = "largeFonts="+typeState+";path=/";
	document.location.reload();
}
//increases the text size by switching style sheets
function increaseFontSize(){
	ssName = servername + "/bipolar/patients/css/style.css";
	typeState = "1";
	document.cookie = "largeFonts="+typeState+";path=/";
	document.location.reload();
}
//decreases the text size by switching style sheets
function decreaseFontSize(){
	ssName = servername + "/bipolar/patients/css/smstyle.css";
	typeState = "0";
	document.cookie = "largeFonts="+typeState+";path=/";
	document.location.reload();
}
function popup_Eligibility() {
		open('/saving_eligiblilty.html','','left=20,top=20,width=619,height=770,scrollbars=yes');
    }