I figured out this part. Thanks for the help... now to work on the next one... which I hope i can figure out

Here's the code i ended up with... I know it's not all that pretty, but it seems to be working

also yes i know it's probably better if i used your way, Old Pedant, to calculate the date, but i already had this way so I just used it. I probably would switch it if it really mattered ^.^

Code:

function JulienCal(days) {
jyear = Math.floor(days/365.25)
var jMonthEnd = new Array(31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365)
var jMonth = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
DaysNotOfYear = jyear*365.25
DaysNotOfYear = DaysNotOfYear.toFixed()
DayOfYear = days - DaysNotOfYear
jyear++
if(leap = jyear % 4 == 0) {
for (i=1; i<12; i++) { jMonthEnd[i] = jMonthEnd[i]+1}}
theMonth = 0
for (m = 0; m < 12; m++) {
if(DayOfYear <= jMonthEnd[m]) {
theMonth = m;
break;}
}
if(theMonth > 0) {
jDate = DayOfYear - jMonthEnd[theMonth-1]
}else{
jDate = DayOfYear
}
document.write("<br />Julian Calender: " +jMonth[theMonth]+ " " +jDate+ ", " +jyear);
};