//
//DateTime
//
weekdays=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
function DateTime() {
today=new Date();
thisyear=today.getFullYear();
thismonth=today.getMonth()+1;if (thismonth<10) {thismonth="0"+thismonth;}
thisday=today.getDate();if (thisday<10) {thisday="0"+thisday;}
thisdayname=today.getDay();
thishour=today.getHours();if (thishour<10) {thishour="0"+thishour;}
thisminute=today.getMinutes();if (thisminute<10) {thisminute="0"+thisminute;}
thissecond=today.getSeconds();if (thissecond<10) {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 (document.cookie.length > 0) {
NBcolorOffset = document.cookie.indexOf(NBcolorSearch);
// if cookie exists
if (NBcolorOffset != -1) {
NBcolorOffset += NBcolorSearch.length;
// set index of beginning of value
NBcolorEnd = document.cookie.indexOf(";", NBcolorOffset);
// set index of end of cookie value
if (NBcolorEnd == -1) {NBcolorEnd = document.cookie.length;}
NBcolorReturnvalue = unescape(document.cookie.substring(NBcolorOffset, NBcolorEnd));
}
}
return NBcolorReturnvalue;
}
//
//NBcolorChange
//
function NBcolorChange() {
if (GetCookieNBcolor("NBcolor")!="") {
document.getElementById("NBcolorStyle").href=TemplateUrl+"/style-"+GetCookieNBcolor("NBcolor")+".css";
}
}
//
//NBcolorOnChange
//
function NBcolorOnChange() {
NBcolorOption=document.NBcolorForm.NBcolorSelect.options[document.NBcolorForm.NBcolorSelect.selectedIndex].value;
document.getElementById("NBcolorStyle").href=TemplateUrl+"/style-"+NBcolorOption+".css";
document.cookie="NBcolor="+NBcolorOption+";path="+NBcolorPath;
}