<!-- Begin POP-UP SIZES AND OPTIONS CODE
function reload(form){
var val=form.cat.options[form.cat.options.selectedIndex].value;
self.location='dd.php?cat=' + val ;
}
function funcConfirm()
{
confirm("Are you sure you want to update outage?");
}
function funcFinish()
{
window.opener.location.reload();
window.close();
}
function validTask() {
                        if (document.calform.task_name.value == "") {
                                alert("You must enter a node name for this task")
                                document.calform.task_name.focus()
                                return false
                        }
                        return true
                }

function validProject() {
                        if (document.calform.project_name.value == "") {
                                alert("You must enter a name for this project")
                                document.calform.project_name.focus()
                                return false
                        }
                        return true
                }
function poplog(URL) {
var popup_width = 830
var popup_height = 920
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}
function popload(URL) {
var popup_width = 770
var popup_height = 920
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}
function poploads(URL) {
var popup_width = 1200
var popup_height = 800
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}
function popelement(URL) {
var popup_width = 770
var popup_height = 570
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}
function popproject(URL) {
var popup_width = 650
var popup_height = 365
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}
function popnewtask(URL) {
var popup_width = 650
var popup_height = 365
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}


function poppasswd(URL) {
var popup_width = 500
var popup_height = 360
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}
function popcontact(URL) {
var popup_width = 830
var popup_height = 500
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}

function popaction(URL) {
var popup_width = 948
var popup_height = 470
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}
function popupload(URL) {
var popup_width = 950
var popup_height = 600
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}


function showcalendar(page,pwidth,pheight) {
createPopUp(page,"ActiveCalendarWindow",pwidth,pheight,"no","no");
}
function createPopUp(theURL, Name, popW, popH, scroll, resize) {
var winleft = (screen.width - popW) / 2;
var winUp = (screen.height - popH) / 2;
winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable='+resize+'';
Win = window.open(theURL, Name, winProp);
Win.window.focus();
}
function getDueDate(year,day,month) {
self.close();
opener.setDueDates(month,day,year);
}
function getCompleted2Date(year,day,month) {
self.close();
opener.setCompleted2Dates(month,day,year);
}
function getCompletedDate(year,day,month) {
self.close();
opener.setCompletedDates(month,day,year);
}
function getReceivedDate(year,day,month) {
self.close();
opener.setReceivedDates(month,day,year);
}
function getGADate(year,month,day) {
self.close();
opener.setGADates(day,month,year);
}
function getLoadDate(year,month,day) {
self.close();
opener.setLoadDates(day,month,year);
}
function getStartDate(year,month,day) {
self.close();
opener.setStartDates(day,month,year);
}
function getEndDate(year,month,day) {
self.close();
opener.setEndDates(day,month,year); 
}
function getEUDate(year,month,day){
self.close();
opener.setEUDates(day,month,year);
}
function getSLADate(year,month,day){
self.close();
opener.setSLADates(day,month,year);
}
function getAADate(year,month,day){
self.close();
opener.setAADates(day,month,year);
}
function getAAGNODate(year,month,day){
self.close();
opener.setAAGNODates(day,month,year);
}
function getGSLADate(year,month,day){
self.close();
opener.setGSLADates(day,month,year);
}
function getGITDate(year,month,day){
self.close();
opener.setGITDates(day,month,year);
}
function getISLADate(year,month,day){
self.close();
opener.setISLADates(day,month,year);
}
function getITGNODate(year,month,day){
self.close();
opener.setITGNODates(day,month,year);
}
function getST2Date(year,month,day){
self.close();
opener.setST2Dates(day,month,year);
}
function getGNOAA2Date(year,month,day){
self.close();
opener.setGNOAA2Dates(day,month,year);
}
function getSLA2Date(year,month,day){
self.close();
opener.setSLA2Dates(day,month,year);
}
function getAA2Date(year,month,day){
self.close();
opener.setAA2Dates(day,month,year);
}
function getAAGNO2Date(year,month,day){
self.close();
opener.setAAGNO2Dates(day,month,year);
}
function getGSLA2Date(year,month,day){
self.close();
opener.setGSLA2Dates(day,month,year);
}
function getGIT2Date(year,month,day){
self.close();
opener.setGIT2Dates(day,month,year);
}
function getISLA2Date(year,month,day){
self.close();
opener.setISLA2Dates(day,month,year);
}
function getITGNO2Date(year,month,day){
self.close();
opener.setITGNO2Dates(day,month,year);
}
function getEnd2Date(year,month,day) {
self.close();
opener.setEnd2Dates(day,month,year);
}
function getStart2Date(year,month,day) {
self.close();
opener.setStart2Dates(day,month,year);
}
function getGA2Date(year,month,day) {
self.close();
opener.setGA2Dates(day,month,year);
}
function getReceived2Date(year,day,month) {
self.close();
opener.setReceived2Dates(month,day,year);
}
function getLoad2Date(year,month,day) {
self.close();
opener.setLoad2Dates(day,month,year);
}
function getRR2Date(year,month,day){
self.close();
opener.setRR2Dates(day,month,year);
}
function getSTDate(year,month,day){
self.close();
opener.setSTDates(day,month,year);
}
function getGNOAADate(year,month,day){
self.close();
opener.setGNOAADates(day,month,year);
}
function getRRDate(year,month,day){
self.close();
opener.setRRDates(day,month,year);
}
function getUSDate(year,month,day){
self.close();
opener.setUSDates(day,month,year);
}
function setReceived2Dates(day,month,year) {
for (i=0; i<document.calform.r2month.length; i++) {
if (document.calform.r2month.options[i].value == month){
document.calform.r2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.r2day.length; i++) {
if (document.calform.r2day.options[i].value == day){
document.calform.r2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.r2year.length; i++) {
if (document.calform.r2year.options[i].value == year){
document.calform.r2year.selectedIndex = i;
}
}
}
function setGA2Dates(day,month,year) {
for (i=0; i<document.calform.g2day.length; i++) {
if (document.calform.g2day.options[i].value == day){
document.calform.g2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.g2month.length; i++) {
if (document.calform.g2month.options[i].value == month){
document.calform.g2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.g2year.length; i++) {
if (document.calform.g2year.options[i].value == year){
document.calform.g2year.selectedIndex = i;
}
}
}
function setLoad2Dates(day,month,year) {
for (i=0; i<document.calform.l2day.length; i++) {
if (document.calform.l2day.options[i].value == day){
document.calform.l2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.l2month.length; i++) {
if (document.calform.l2month.options[i].value == month){
document.calform.l2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.l2year.length; i++) {
if (document.calform.l2year.options[i].value == year){
document.calform.l2year.selectedIndex = i;
}
}
}
function setStart2Dates(day,month,year) {
for (i=0; i<document.calform.s2day.length; i++) {
if (document.calform.s2day.options[i].value == day){
document.calform.s2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.s2month.length; i++) {
if (document.calform.s2month.options[i].value == month){
document.calform.s2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.s2year.length; i++) {
if (document.calform.s2year.options[i].value == year){
document.calform.s2year.selectedIndex = i;
}
}
}
function setEnd2Dates(day,month,year) {
for (i=0; i<document.calform.e2day.length; i++) {
if (document.calform.e2day.options[i].value == day){
document.calform.e2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.e2month.length; i++) {
if (document.calform.e2month.options[i].value == month){
document.calform.e2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.e2year.length; i++) {
if (document.calform.e2year.options[i].value == year){
document.calform.e2year.selectedIndex = i;
}
}
}
function setDue2Dates(day,month,year) {
for (i=0; i<document.calform.d2day.length; i++) {
if (document.calform.d2day.options[i].value == day){
document.calform.d2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.d2month.length; i++) {
if (document.calform.d2month.options[i].value == month){
document.calform.d2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.d2year.length; i++) {
if (document.calform.d2year.options[i].value == year){
document.calform.d2year.selectedIndex = i;
}
}
}
function setCompleted2Dates(day,month,year) {
for (i=0; i<document.calform.c2day.length; i++) {
if (document.calform.c2day.options[i].value == day){
document.calform.c2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.c2month.length; i++) {
if (document.calform.c2month.options[i].value == month){
document.calform.c2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.c2year.length; i++) {
if (document.calform.c2year.options[i].value == year){
document.calform.c2year.selectedIndex = i;
}
}
}
function setRR2Dates(day,month,year) {
for (i=0; i<document.calform.rr2day.length; i++) {
if (document.calform.rr2day.options[i].value == day){
document.calform.rr2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.rr2month.length; i++) {
if (document.calform.rr2month.options[i].value == month){
document.calform.rr2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.rr2year.length; i++) {
if (document.calform.rr2year.options[i].value == year){
document.calform.rr2year.selectedIndex = i;
}
}
}
function setReceivedDates(day,month,year) {
for (i=0; i<document.calform.rmonth.length; i++) {
if (document.calform.rmonth.options[i].value == month){
document.calform.rmonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.rday.length; i++) {
if (document.calform.rday.options[i].value == day){
document.calform.rday.selectedIndex = i;
}
}
for (i=0; i<document.calform.ryear.length; i++) {
if (document.calform.ryear.options[i].value == year){
document.calform.ryear.selectedIndex = i;
}
}
}
function setGADates(day,month,year) {
for (i=0; i<document.calform.gday.length; i++) {
if (document.calform.gday.options[i].value == day){
document.calform.gday.selectedIndex = i;
}
}
for (i=0; i<document.calform.gmonth.length; i++) {
if (document.calform.gmonth.options[i].value == month){
document.calform.gmonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.gyear.length; i++) {
if (document.calform.gyear.options[i].value == year){
document.calform.gyear.selectedIndex = i;
}
}
}
function setLoadDates(day,month,year) {
for (i=0; i<document.calform.lday.length; i++) {
if (document.calform.lday.options[i].value == day){
document.calform.lday.selectedIndex = i;
}
}
for (i=0; i<document.calform.lmonth.length; i++) {
if (document.calform.lmonth.options[i].value == month){
document.calform.lmonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.lyear.length; i++) {
if (document.calform.lyear.options[i].value == year){
document.calform.lyear.selectedIndex = i;
}
}
}
function setStartDates(day,month,year) {
for (i=0; i<document.calform.sday.length; i++) {
if (document.calform.sday.options[i].value == day){
document.calform.sday.selectedIndex = i;
}
}
for (i=0; i<document.calform.smonth.length; i++) {
if (document.calform.smonth.options[i].value == month){
document.calform.smonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.syear.length; i++) {
if (document.calform.syear.options[i].value == year){
document.calform.syear.selectedIndex = i;
}
}
}
function setEndDates(day,month,year) {
for (i=0; i<document.calform.eday.length; i++) {
if (document.calform.eday.options[i].value == day){
document.calform.eday.selectedIndex = i;
}
}
for (i=0; i<document.calform.emonth.length; i++) {
if (document.calform.emonth.options[i].value == month){
document.calform.emonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.eyear.length; i++) {
if (document.calform.eyear.options[i].value == year){
document.calform.eyear.selectedIndex = i;
}
}
}
function setDueDates(day,month,year) {
for (i=0; i<document.calform.dday.length; i++) {
if (document.calform.dday.options[i].value == day){
document.calform.dday.selectedIndex = i;
}
}
for (i=0; i<document.calform.dmonth.length; i++) {
if (document.calform.dmonth.options[i].value == month){
document.calform.dmonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.dyear.length; i++) {
if (document.calform.dyear.options[i].value == year){
document.calform.dyear.selectedIndex = i;
}
}
}
function setCompletedDates(day,month,year) {
for (i=0; i<document.calform.cday.length; i++) {
if (document.calform.cday.options[i].value == day){
document.calform.cday.selectedIndex = i;
}
}
for (i=0; i<document.calform.cmonth.length; i++) {
if (document.calform.cmonth.options[i].value == month){
document.calform.cmonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.cyear.length; i++) {
if (document.calform.cyear.options[i].value == year){
document.calform.cyear.selectedIndex = i;
}
}
}
function setSLADates(day,month,year) {
for (i=0; i<document.calform.sladay.length; i++) {
if (document.calform.sladay.options[i].value == day){
document.calform.sladay.selectedIndex = i;
}
}
for (i=0; i<document.calform.slamonth.length; i++) {
if (document.calform.slamonth.options[i].value == month){
document.calform.slamonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.slayear.length; i++) {
if (document.calform.slayear.options[i].value == year){
document.calform.slayear.selectedIndex = i;
}
}
}
function setAADates(day,month,year) {
for (i=0; i<document.calform.aaday.length; i++) {
if (document.calform.aaday.options[i].value == day){
document.calform.aaday.selectedIndex = i;
}
}
for (i=0; i<document.calform.aamonth.length; i++) {
if (document.calform.aamonth.options[i].value == month){
document.calform.aamonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.aayear.length; i++) {
if (document.calform.aayear.options[i].value == year){
document.calform.aayear.selectedIndex = i;
}
}
}
function setAAGNODates(day,month,year) {
for (i=0; i<document.calform.aagnoday.length; i++) {
if (document.calform.aagnoday.options[i].value == day){
document.calform.aagnoday.selectedIndex = i;
}
}
for (i=0; i<document.calform.aagnomonth.length; i++) {
if (document.calform.aagnomonth.options[i].value == month){
document.calform.aagnomonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.aagnoyear.length; i++) {
if (document.calform.aagnoyear.options[i].value == year){
document.calform.aagnoyear.selectedIndex = i;
}
}
}
function setGSLADates(day,month,year) {
for (i=0; i<document.calform.gsladay.length; i++) {
if (document.calform.gsladay.options[i].value == day){
document.calform.gsladay.selectedIndex = i;
}
}
for (i=0; i<document.calform.gslamonth.length; i++) {
if (document.calform.gslamonth.options[i].value == month){
document.calform.gslamonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.gslayear.length; i++) {
if (document.calform.gslayear.options[i].value == year){
document.calform.gslayear.selectedIndex = i;
}
}
}
function setGITDates(day,month,year) {
for (i=0; i<document.calform.gitday.length; i++) {
if (document.calform.gitday.options[i].value == day){
document.calform.gitday.selectedIndex = i;
}
}
for (i=0; i<document.calform.gitmonth.length; i++) {
if (document.calform.gitmonth.options[i].value == month){
document.calform.gitmonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.gityear.length; i++) {
if (document.calform.gityear.options[i].value == year){
document.calform.gityear.selectedIndex = i;
}
}
}
function setISLADates(day,month,year) {
for (i=0; i<document.calform.isladay.length; i++) {
if (document.calform.isladay.options[i].value == day){
document.calform.isladay.selectedIndex = i;
}
}
for (i=0; i<document.calform.islamonth.length; i++) {
if (document.calform.islamonth.options[i].value == month){
document.calform.islamonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.islayear.length; i++) {
if (document.calform.islayear.options[i].value == year){
document.calform.islayear.selectedIndex = i;
}
}
}
function setITGNODates(day,month,year) {
for (i=0; i<document.calform.itgnoday.length; i++) {
if (document.calform.itgnoday.options[i].value == day){
document.calform.itgnoday.selectedIndex = i;
}
}
for (i=0; i<document.calform.itgnomonth.length; i++) {
if (document.calform.itgnomonth.options[i].value == month){
document.calform.itgnomonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.itgnoyear.length; i++) {
if (document.calform.itgnoyear.options[i].value == year){
document.calform.itgnoyear.selectedIndex = i;
}
}
}
function setSTDates(day,month,year) {
for (i=0; i<document.calform.stday.length; i++) {
if (document.calform.stday.options[i].value == day){
document.calform.stday.selectedIndex = i;
}
}
for (i=0; i<document.calform.stmonth.length; i++) {
if (document.calform.stmonth.options[i].value == month){
document.calform.stmonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.styear.length; i++) {
if (document.calform.styear.options[i].value == year){
document.calform.styear.selectedIndex = i;
}
}
}
function setGNOAADates(day,month,year) {
for (i=0; i<document.calform.gnoaaday.length; i++) {
if (document.calform.gnoaaday.options[i].value == day){
document.calform.gnoaaday.selectedIndex = i;
}
}
for (i=0; i<document.calform.gnoaamonth.length; i++) {
if (document.calform.gnoaamonth.options[i].value == month){
document.calform.gnoaamonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.gnoaayear.length; i++) {
if (document.calform.gnoaayear.options[i].value == year){
document.calform.gnoaayear.selectedIndex = i;
}
}
}
function setSLA2Dates(day,month,year) {
for (i=0; i<document.calform.sla2day.length; i++) {
if (document.calform.sla2day.options[i].value == day){
document.calform.sla2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.sla2month.length; i++) {
if (document.calform.sla2month.options[i].value == month){
document.calform.sla2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.sla2year.length; i++) {
if (document.calform.sla2year.options[i].value == year){
document.calform.sla2year.selectedIndex = i;
}
}
}
function setAA2Dates(day,month,year) {
for (i=0; i<document.calform.aa2day.length; i++) {
if (document.calform.aa2day.options[i].value == day){
document.calform.aa2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.aa2month.length; i++) {
if (document.calform.aa2month.options[i].value == month){
document.calform.aa2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.aa2year.length; i++) {
if (document.calform.aa2year.options[i].value == year){
document.calform.aa2year.selectedIndex = i;
}
}
}
function setAAGNO2Dates(day,month,year) {
for (i=0; i<document.calform.aagno2day.length; i++) {
if (document.calform.aagno2day.options[i].value == day){
document.calform.aagno2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.aagno2month.length; i++) {
if (document.calform.aagno2month.options[i].value == month){
document.calform.aagno2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.aagno2year.length; i++) {
if (document.calform.aagno2year.options[i].value == year){
document.calform.aagno2year.selectedIndex = i;
}
}
}
function setGSLA2Dates(day,month,year) {
for (i=0; i<document.calform.gsla2day.length; i++) {
if (document.calform.gsla2day.options[i].value == day){
document.calform.gsla2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.gsla2month.length; i++) {
if (document.calform.gsla2month.options[i].value == month){
document.calform.gsla2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.gsla2year.length; i++) {
if (document.calform.gsla2year.options[i].value == year){
document.calform.gsla2year.selectedIndex = i;
}
}
}
function setGIT2Dates(day,month,year) {
for (i=0; i<document.calform.git2day.length; i++) {
if (document.calform.git2day.options[i].value == day){
document.calform.git2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.git2month.length; i++) {
if (document.calform.git2month.options[i].value == month){
document.calform.git2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.git2year.length; i++) {
if (document.calform.git2year.options[i].value == year){
document.calform.git2year.selectedIndex = i;
}
}
}
function setISLA2Dates(day,month,year) {
for (i=0; i<document.calform.isla2day.length; i++) {
if (document.calform.isla2day.options[i].value == day){
document.calform.isla2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.isla2month.length; i++) {
if (document.calform.isla2month.options[i].value == month){
document.calform.isla2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.isla2year.length; i++) {
if (document.calform.isla2year.options[i].value == year){
document.calform.isla2year.selectedIndex = i;
}
}
}
function setITGNO2Dates(day,month,year) {
for (i=0; i<document.calform.itgno2day.length; i++) {
if (document.calform.itgno2day.options[i].value == day){
document.calform.itgno2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.itgno2month.length; i++) {
if (document.calform.itgno2month.options[i].value == month){
document.calform.itgno2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.itgno2year.length; i++) {
if (document.calform.itgno2year.options[i].value == year){
document.calform.itgno2year.selectedIndex = i;
}
}
}
function setST2Dates(day,month,year) {
for (i=0; i<document.calform.st2day.length; i++) {
if (document.calform.st2day.options[i].value == day){
document.calform.st2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.st2month.length; i++) {
if (document.calform.st2month.options[i].value == month){
document.calform.st2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.st2year.length; i++) {
if (document.calform.st2year.options[i].value == year){
document.calform.st2year.selectedIndex = i;
}
}
}
function setGNOAA2Dates(day,month,year) {
for (i=0; i<document.calform.gnoaa2day.length; i++) {
if (document.calform.gnoaa2day.options[i].value == day){
document.calform.gnoaa2day.selectedIndex = i;
}
}
for (i=0; i<document.calform.gnoaa2month.length; i++) {
if (document.calform.gnoaa2month.options[i].value == month){
document.calform.gnoaa2month.selectedIndex = i;
}
}
for (i=0; i<document.calform.gnoaa2year.length; i++) {
if (document.calform.gnoaa2year.options[i].value == year){
document.calform.gnoaa2year.selectedIndex = i;
}
}
}
function setRRDates(day,month,year) {
for (i=0; i<document.calform.rrday.length; i++) {
if (document.calform.rrday.options[i].value == day){
document.calform.rrday.selectedIndex = i;
}
}
for (i=0; i<document.calform.rrmonth.length; i++) {
if (document.calform.rrmonth.options[i].value == month){
document.calform.rrmonth.selectedIndex = i;
}
}
for (i=0; i<document.calform.rryear.length; i++) {
if (document.calform.rryear.options[i].value == year){
document.calform.rryear.selectedIndex = i;
}
}
}
function setEUDates(day,month,year) {
date=day+'-'+month+'-'+year;
document.calform.eu.value = date;
}
function setUSDates(day,month,year) {
date=month+'/'+day+'/'+year;
document.calform.us.value = date;
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}
function validateStatus() {
                        if (document.calform.action_status.value == "Pending") {
                                alert("You have to change the status from Pending to Complete")
                                document.calform.action_status.focus()
                                return false
                        }
                        return true
                }
function validateAction() {
                        if (document.calform.action_item.value == "") {
                                alert("You must enter an action item in the Action: box")
                                document.calform.action_item.focus()
                                return false
                        }
                        return true
                }
function select_all(form_name,name,value){
formname = document.getElementById(form_name);
for(var t, i=0;t=formname.elements[name][i++];t.checked=value);
}
//  End -->

