function textt(where)
{Popup = window.open(where,"Info","resizable=yes,width=350,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,top=0,left=0");
Popup.focus();}

function sws()
{window.status='    www.southwestsurf.info          www.southwestsurf.info          www.southwestsurf.info          www.southwestsurf.info          www.southwestsurf.info  ';return true}

function focu(where)
{whe = "em" + where;
Popup = window.open(whe,"","resizable=yes,toolbar=no,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes");
Popup.focus();}


function date(ddd)
{stamp = new Date();
tod = stamp.getDate();
mon = 1 + stamp.getMonth();
yea = stamp.getYear();
high = "0"
// www.southwestsurf.info


if (yea == 2008)
{
if (mon == 9)
{
if (tod == 1) {high = "6:50"};
if (tod == 2) {high = "7:20"};
if (tod == 3) {high = "1:50"};
if (tod == 4) {high = "8:30"};
if (tod == 5) {high = "9:00"};
if (tod == 6) {high = "9:40"};
if (tod == 7) {high = "10:20"};
if (tod == 8) {high = "11:10"};
if (tod == 9) {high = "12:30"};
if (tod == 10) {high = "2:10"};
if (tod == 11) {high = "3:10"};
if (tod == 12) {high = "4:00"};
if (tod == 13) {high = "4:40"};
if (tod == 14) {high = "5:20"};
if (tod == 15) {high = "5:50"};
if (tod == 16) {high = "6:30"};
if (tod == 17) {high = "6:50"};
if (tod == 18) {high = "7:20"};
if (tod == 19) {high = "8:00"};
if (tod == 20) {high = "8:40"};
if (tod == 21) {high = "9:30"};
if (tod == 22) {high = "10:30"};
if (tod == 23) {high = "11:50"};
if (tod == 24) {high = "1:20"};
if (tod == 25) {high = "2:40"};
if (tod == 26) {high = "3:40"};
if (tod == 27) {high = "4:30"};
if (tod == 28) {high = "5:20"};
if (tod == 29) {high = "6:00"};
}

if (mon == 10)
{
if (tod == 1) {high = "6:50"};
if (tod == 2) {high = "7:30"};
if (tod == 3) {high = "8:00"};
if (tod == 4) {high = "8:30"};
if (tod == 5) {high = "9:00"};
if (tod == 6) {high = "9:40"};
if (tod == 7) {high = "10:30"};
if (tod == 8) {high = "11:40"};
if (tod == 9) {high = "1:10"};
if (tod == 10) {high = "2:30"};
if (tod == 11) {high = "3:20"};
if (tod == 12) {high = "4:00"};
if (tod == 13) {high = "4:40"};
if (tod == 14) {high = "5:20"};
if (tod == 15) {high = "6:00"};
if (tod == 16) {high = "6:40"};
if (tod == 17) {high = "7:00"};
if (tod == 18) {high = "1:40"};
if (tod == 19) {high = "8:30"};
if (tod == 20) {high = "9:20"};
if (tod == 21) {high = "10:20"};
if (tod == 22) {high = "11:30"};
if (tod == 23) {high = "1:00"};
if (tod == 24) {high = "2:20"};
if (tod == 25) {high = "3:20"};
if (tod == 26) {high = "3:10"};
if (tod == 27) {high = "3:50"};
if (tod == 28) {high = "4:30"};
if (tod == 29) {high = "5:10"};
if (tod == 30) {high = "5:40"};
}

if (mon == 11)
{
if (tod == 1) {high = "6:30"};
if (tod == 2) {high = "7:00"};
if (tod == 3) {high = "7:40"};
if (tod == 4) {high = "8:10"};
if (tod == 5) {high = "9:00"};
if (tod == 6) {high = "10:00"};
if (tod == 7) {high = "11:20"};
if (tod == 8) {high = "12:30"};
if (tod == 9) {high = "1:30"};
if (tod == 10) {high = "2:30"};
if (tod == 11) {high = "3:10"};
if (tod == 12) {high = "4:00"};
if (tod == 13) {high = "4:40"};
if (tod == 14) {high = "5:20"};
if (tod == 15) {high = "5:50"};
if (tod == 16) {high = "6:30"};
if (tod == 17) {high = "7:20"};
if (tod == 18) {high = "8:10"};
if (tod == 19) {high = "9:10"};
if (tod == 20) {high = "10:20"};
if (tod == 21) {high = "11:30"};
if (tod == 22) {high = "12:40"};
if (tod == 23) {high = "1:40"};
if (tod == 24) {high = "2:40"};
if (tod == 25) {high = "3:20"};
if (tod == 26) {high = "4:00"};
if (tod == 27) {high = "4:40"};
if (tod == 28) {high = "5:20"};
if (tod == 29) {high = "5:50"};
}

if (mon == 12)
{
if (tod == 1) {high = "6:40"};
if (tod == 2) {high = "7:20"};
if (tod == 3) {high = "7:50"};
if (tod == 4) {high = "8:40"};
if (tod == 5) {high = "9:30"};
if (tod == 6) {high = "10:30"};
if (tod == 7) {high = "11:40"};
if (tod == 8) {high = "12:50"};
if (tod == 9) {high = "1:50"};
if (tod == 10) {high = "2:40"};
if (tod == 11) {high = "3:40"};
if (tod == 12) {high = "4:20"};
if (tod == 13) {high = "5:10"};
if (tod == 14) {high = "5:50"};
if (tod == 15) {high = "6:20"};
if (tod == 16) {high = "7:10"};
if (tod == 17) {high = "8:00"};
if (tod == 18) {high = "8:50"};
if (tod == 19) {high = "9:50"};
if (tod == 20) {high = "10:50"};
if (tod == 21) {high = "12:00"};
if (tod == 22) {high = "1:00"};
if (tod == 23) {high = "2:00"};
if (tod == 24) {high = "2:50"};
if (tod == 25) {high = "3:40"};
if (tod == 26) {high = "4:20"};
if (tod == 27) {high = "5:00"};
if (tod == 28) {high = "5:30"};
if (tod == 29) {high = "5:50"};
if (tod == 30) {high = "6:20"};
}
}


temp = new Date(); 
base = new Date("1/1/2005 " + high +":00 am");
diff = ddd //minutes

temp.setTime(Math.abs(base.getTime() + (diff*60000)));
answer = temp.getTime(); 

hour = temp.getHours()
if (hour == 0) {
hour = (hour + 12)
}
else if (hour > 12) {
hour = (hour - 12)
}

minute = temp.getMinutes()
if (minute < 10) {
minute = "0" + minute
}

if (ddd == 2008)
{
document.write( " "+ '<b>'+ tod + " / " + mon + " / " + yea +'</b>'+".");
}

else
{
if (high == "0")
{
document.write("???");
}
else
{
document.write( "at "+ '<b>'+(hour+":"+minute)+'</b>'+"ish");
}
}

}