//
//DateTime
//
weekdays = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
function DateTime() {
today = new Date();
thisyear = today.getFullYear();
thismonth = today.getMonth()+1; if ( 10 > thismonth ) { thismonth = "0" + thismonth; }
thisday = today.getDate(); if ( 10 > thisday ) { thisday = "0" + thisday; }
thisdayname = today.getDay();
thishour = today.getHours(); if ( 10 > thishour ) { thishour = "0" + thishour; }
thisminute = today.getMinutes(); if ( 10 > thisminute ) { thisminute = "0" + thisminute; }
thissecond = today.getSeconds(); if ( 10 > thissecond ) { thissecond = "0" + thissecond; }
document.getElementById("DateTime").innerHTML = thisday + "-" + thismonth + "-" + thisyear + " " + weekdays[thisdayname] + " " + thishour + ":" + thisminute + ":" + thissecond;
setTimeout("DateTime()", 1000);
}
//
//SearchSelect
//
function SearchSelect(Search1, Search2, Search3, Search4, Search5) {
document.SearchWeb.action = Search1;
document.SearchWeb.target = Search2;
document.SearchWeb.SearchHidden.name = Search3;
document.SearchWeb.SearchHidden.value = Search4;
document.SearchWeb.SearchInput.name = Search5;
}
//
//GetCookieNBcolor
//
function GetCookieNBcolor(NBcolor) {
NBcolorSearch = NBcolor + "=";
NBcolorReturnvalue = "";
if ( 0 < document.cookie.length ) {
NBcolorOffset = document.cookie.indexOf(NBcolorSearch);
// if cookie exists
if ( -1 != NBcolorOffset ) {
NBcolorOffset += NBcolorSearch.length;
// set index at beginning of value
NBcolorEnd = document.cookie.indexOf(";", NBcolorOffset);
// set index at end of cookie value
if ( -1 == NBcolorEnd ) { NBcolorEnd = document.cookie.length; }
NBcolorReturnvalue = document.cookie.substring(NBcolorOffset, NBcolorEnd);
}
}
return NBcolorReturnvalue;
}
