//savings rates for businesses
function getSvgsrate( x ) {

  if ( x == 0 )  tx = "BUSINESS/SAVINGS.RATES.BUSINESS."; 
  if ( x == 1 )  tx = "BUSINESS/SAVINGS.RATES.BUSINESS.JUMBO."; 
var now = new Date();
var weekday = now.getDay();
if ( weekday > 4 ) {offset=weekday-4;}
if ( weekday < 4 ) {offset=weekday+3;}
if  (weekday==4) {offset=0;}
 now.setTime(now.getTime() - offset * 24 * 60 * 60 * 1000);
 var date = now.getDate();
 var month = now.getMonth();
 var year = now.getYear(); year += (year < 1900) ? 1900 : 0;
var months = new Array(); 
months[0] = "01"; 
months[1] = "02"; 
months[2] = "03"; 
months[3] = "04"; 
months[4] = "05"; 
months[5] = "06"; 
months[6] = "07"; 
months[7] = "08"; 
months[8] = "09"; 
months[9] = "10"; 
months[10] = "11"; 
months[11] = "12";
var year  =  (year - 2000);
if (year < 10) year="0"+year ;
if (date<10)  date="0"+date;
document.location="http://www.sunstatefcu.org/savingsrate/"+tx+months[month]+date+year+".pdf";
}
