function mailto() 
{ 
var domain = 'yahoo.com'; 
var username = 'quashnsa'; 
document.location = 'mailto:' + username + '\@' + domain; 
} 

function webcam_window() {
var web_URI = "http://www.californiadiving.com/cams/live.jpg";
var URL = "";
var Target = "California";
var Args = "width=680,height=540,scrollbars=0,resizable=0,location=0,menubar=0,resizable=1,status=0,toolbar=0,dependent=1";
hits = window.open(URL,Target,Args);
hits.document.write('<HTML>\n<HEAD>\n<TITLE>Breakwater WebCam');
hits.document.write('</TITLE>\n</HEAD>\n<BODY BGCOLOR=#000000 LINK=#FFFF00 VLINK=#FFFF00>\n');
hits.document.write('<CENTER>\n<IMG SRC=\"'+web_URI+'\">\n');
hits.document.write('<P>\n');
hits.document.write('<A HREF=\"javascript:this.window.close()\">Close Window</A> \n');
hits.document.write('</CENTER>\n');
hits.document.write('</BODY>\n</HTML>');
}

function launch1(weatherpic1) {
Target = "weatherpic1";
Args = "width=620,height=425,location=0,menubar=0,resizable=0,status=0,toolbar=0,dependent=1";
window.open(weatherpic1, Target, Args);
}

function launch2(weatherpic2) {
Target = "weatherpic2";
Args = "width=620,height=425,location=0,menubar=0,resizable=0,status=0,toolbar=0,dependent=1";
window.open(weatherpic2, Target, Args);
}

function launch3(weatherpic3) {
Target = "weatherpic3";
Args = "width=420,height=440,location=0,menubar=0,resizable=0,status=0,toolbar=0,dependent=1";
window.open(weatherpic3, Target, Args);
}

function launch4(weatherpic4) {
Target = "weatherpic4";
Args = "width=455,height=340,location=0,menubar=0,resizable=0,status=0,toolbar=0,dependent=1";
window.open(weatherpic4, Target, Args);
}

function copyw() {
today=new Date();
copydate=today.getFullYear();
this.document.write(copydate);
}

function abalone_season() {
datestring = new Date();
month = datestring.getMonth() +1;

switch (month){
case 4 : month="<FONT COLOR=#00FF00><B>Abalone Season is open</B></FONT>"; break;

case 5 : month="<FONT COLOR=#00FF00><B>Abalone Season is open</B></FONT>"; break;

case 6 : month="<FONT COLOR=#00FF00><B>Abalone Season is open</B></FONT>"; break;

case 8 : month="<FONT COLOR=#00FF00><B>Abalone Season is open</B></FONT>"; break;

case 9 : month="<FONT COLOR=#00FF00><B>Abalone Season is open</B></FONT>"; break;

case 10 : month="<FONT COLOR=#00FF00><B>Abalone Season is open</B></FONT>"; break;

case 11 : month="<FONT COLOR=#00FF00><B>Abalone Season is open</B></FONT>"; break;

default : month="<FONT COLOR=#FF0000><B>Abalone Season is closed</B></FONT>";
}
this.document.write(month+'<BR>');
}

function halibut_season() {
datestring = new Date();
month = datestring.getMonth() +1;

switch (month){
case 5 : month="<FONT COLOR=#00FF00><B>Pacific Halibut Season is open</B></FONT>"; break;

case 6 : month="<FONT COLOR=#00FF00><B>Pacific Halibut Season is open</B></FONT>"; break;

case 7 : month="<FONT COLOR=#00FF00><B>Pacific Halibut Season is open</B></FONT>"; break;

case 8 : month="<FONT COLOR=#00FF00><B>Pacific Halibut Season is open</B></FONT>"; break;

case 9 : month="<FONT COLOR=#00FF00><B>Pacific Halibut Season is open</B></FONT>"; break;

default : month="<FONT COLOR=#FF0000><B>Pacific Halibut Season is closed</B></FONT>";
}
this.document.write(month+'<BR>');
}

function lobster_season() {
var MonthArray = ["","January","February","March","April","May","June","July","August","September","October","November","December"];
var DayArray = ["","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
datestring = new Date();
month = datestring.getMonth() +1;
day = datestring.getDate();
week = datestring.getDay() +1;

switch (month){
case 10 : month="<FONT COLOR=#00FF00><B>Lobster Season is open</B></FONT>"; break;

case 11 : month="<FONT COLOR=#00FF00><B>Lobster Season is open</B></FONT>"; break;

case 12 : month="<FONT COLOR=#00FF00><B>Lobster Season is open</B></FONT>"; break;

case 1 : month="<FONT COLOR=#00FF00><B>Lobster Season is open</B></FONT>"; break;

case 2 : month="<FONT COLOR=#00FF00><B>Lobster Season is open</B></FONT>"; break;

case 3:
  if (day <= 15) {
    month="<FONT COLOR=#00FF00><B>Lobster Season is open</B></FONT>";
  }

  if (day > 15 && day <=22 && week < 7) {
    month="<FONT COLOR=#00FF00><B>Lobster Season is open</B></FONT>";
  }
  else {
    month="<FONT COLOR=#FF0000><B>Lobster Season is closed</B></FONT>";
  }
  break;

default : month="<FONT COLOR=#FF0000><B>Lobster Season is closed</B></FONT>";
}
this.document.write(month+'<BR>');
}

function grunion_season() {
datestring = new Date();
month = datestring.getMonth() +1;

switch (month){
case 6 : month="<FONT COLOR=#00FF00><B>Grunion Season is open</B></FONT>"; break;

case 7 : month="<FONT COLOR=#00FF00><B>Grunion Season is open</B></FONT>"; break;

case 8 : month="<FONT COLOR=#00FF00><B>Grunion Season is open</B></FONT>"; break;

case 9 : month="<FONT COLOR=#00FF00><B>Grunion Season is open</B></FONT>"; break;

case 10 : month="<FONT COLOR=#00FF00><B>Grunion Season is open</B></FONT>"; break;

case 11 : month="<FONT COLOR=#00FF00><B>Grunion Season is open</B></FONT>"; break;

case 12 : month="<FONT COLOR=#00FF00><B>Grunion Season is open</B></FONT>"; break;

case 1 : month="<FONT COLOR=#00FF00><B>Grunion Season is open</B></FONT>"; break;

case 2 : month="<FONT COLOR=#00FF00><B>Grunion Season is open</B></FONT>"; break;

case 3 : month="<FONT COLOR=#00FF00><B>Grunion Season is open</B></FONT>"; break;

default : month="<FONT COLOR=#FF0000><B>Grunion Season is closed</B></FONT>";
}
this.document.write(month+'<BR>');
}
