// JavaScript file for Evershine Group

defaultStatus="Welcome to Goldkist Internatioanl (S) Pte Ltd."

//function for right click
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("            COPYRIGHT \n\( Goldkist Internatioanl (S) Pte Ltd. )");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;

//change subnav background color (ie5+ ns6+)
function changebg(item, color)
{
if (document.getElementById)
{
theone = eval("document.getElementById('"+item+"')")
theone.style.background = color
}

}

function check()
{
if(Display.ID.value == "")
  {   
       alert('Please enter UserID.');
Display.ID.focus();
return (false);
       } 
return (true);
}

function selectText()
{

Display.ID.select();
Display.ID.focus();
}

//date function
RightNow=new Date();
var themonth;
var month=RightNow.getMonth()+1;
if (month==1) themonth = "January";
if (month==2) themonth = "February";
if (month==3) themonth = "March";
if (month==4) themonth = "April";
if (month==5) themonth = "May";
if (month==6) themonth = "June";
if (month==7) themonth = "July";
if (month==8) themonth = "August";
if (month==9) themonth = "September";
if (month==10) themonth = "October";
if (month==11) themonth = "November";
if (month==12) themonth = "December";

var date=RightNow.getDate();
var year=RightNow.getYear();
var day=RightNow.getDay();
if (year==100){year="2000";}
if (year==101){year="2001";}
if (year==102){year="2002";}
if (year==103){year="2003";}
if (year==104){year="2004";}
if (year==105){year="2005";}
