

dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); 
monName = new Array ("January","February","March","April","May","June","July","August","September","October","November","December"); 
endDate = new Array ("31","28","31","30","31","30","31","31","30","31","30","31"); 

now = new Date(); 
tod = now.getDate(); 
tom = now.getDate()+1; 
tom2 = dayName[now.getDay()+1]; 
tom3 = now.getDate()+3;
mon = monName[now.getMonth()]; 
mon2 = monName[now.getMonth()+1]; 
mon3 = monName[now.getMonth()-11]; 
mon4 = monName[now.getMonth()]; 
mon5 = monName[now.getMonth()+1]; 
mon6 = monName[now.getMonth()-11]; 
endDateNow = endDate[now.getMonth()]; 
year = now.getFullYear();

if (now.getYear()%4 == 0 && now.getMonth()==1) {endDateNow=29}; 
if (now.getDate() == endDateNow) {mon=mon2}; 
if (now.getDate()+1 > endDateNow) {tom=tom-endDateNow}; 
if (now.getMonth() == 11 && now.getDate()+1 > endDateNow) {mon=mon3}; 
if (now.getDay()+1 > 6) {tom2 = dayName[now.getDay()-6]}; 
if (now.getDate()+3 >= endDateNow) {mon4=mon5}
if (now.getDate()+3 > endDateNow) {tom3=tom3-endDateNow}; 
if (now.getMonth() == 11 && now.getDate()+3 > endDateNow) {mon4=mon6}; 

function sales(sales) {
  salesWindow = window.open("sales.htm","salesWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=845,height=*,left=0,top=0")
  salesWindow.focus()
}

function spam(spam) {
  spamWindow = window.open("spam.htm","spamWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,widindow = window.open("aup.htm","aupWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=450,height=425,left=0,top=0")
  aupWindow.focus()
}

function earnings(earnings) {
  earningsWindow = window.open("earnings.htm","earningsWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=452,height=425,left=0,top=0")
  earningsWindow.focus()
}

function printout(printout) {
  printoutWindow = window.open("printout.htm","printoutWin","toolbar=yes,location=yes,scrollbars=yes,resizable=yes,width=680,height=570,left=0,top=0")
  printoutWindow.focus()
}

function cred(cred) {
  credWindow = window.open("credentials.htm","credWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=450,height=425,left=0,top=0")
  credWindow.focus()
}

function test(test) {
  testWindow = window.open("test.htm","testWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=525,height=600,left=0,top=0")
  testWindow.focus()
}

function faq(faq) {
	faqWindow = window.open("faq.htm","faqth=450,height=425,left=0,top=0")
  spamWindow.focus()
}

function privacy(privacy) {
  privacyWindow = window.open("privacy.htm","privacyWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=450,height=425,left=0,top=0")
  privacyWindow.focus()
}

function copyright(copyright) {
  copyrightWindow = window.open("copyright.htm","copyrightWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=580,height=210,left=0,top=0")
  copyrightWindow.focus()
}

function aup(aup) {
  aupWWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=625,height=660,left=0,top=0")
	faqWindow.focus()
}

function programs(programs) {
	programsWindow = window.open("programs.htm","programsWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=700,height=600,left=0,top=0")
	programsWindow.focus()
}

function adwords(adwords) {
  adwordsWindow = window.open("adwords.htm","adwordsWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=775,height=600,left=0,top=0")
  adwordsWindow.focus()
}

function march14(march14) {
  march14Window = window.open("march14.htm","march14Win","toolbar=no,location=yes,scrollbars=no,resizable=no,width=850,height=545,left=0,top=0")
  march14Window.focus()
}

function march15(march15) {
  march15Window = window.open("march15.htm","march15Win","toolbar=no,location=yes,scrollbars=no,resizable=no,width=850,height=545,left=0,top=0")
  march15Window.focus()
}

function march16(march16) {
  march16Window = window.open("march16.htm","march16Win","toolbar=no,location=yes,scrollbars=no,resizable=no,width=850,height=545,left=0,top=0")
  march16Window.focus()
}

function check(check) {
  checkWindow = window.open("check.htm","checkWin","toolbar=no,location=yes,scrollbars=yes,resizable=no,width=845,height=400,left=0,top=0")
  checkWindow.focus()
}


