//11:52 AM 9/07/1999
//If you think that these codes are useful, please by all means use it!
//But it would be an honest courtesy to acknowledge the owner's Intellectual properties!
//Owner: Leslie Lim SL (visionart@cheerful.com)...
//Profession: Computer Analyst Programmer
//Ready to be hired: Let me know if I can help!

//<!--

// ------------------------------------------------------------------------------
// Array to hold date values
function isnArray() {
	argnr=isnArray.arguments.length
	for (var i=0;i<argnr;i++) {
		this[i+1] = isnArray.arguments[i];
	}
}

// ------------------------------------------------------------------------------
// Y2K compliant year
function getFullYear(d) {
    var y = d.getYear();
    if (y < 1000) {y += 1900};
    return y;
}

// ------------------------------------------------------------------------------
// Function to display time
function nowStr() {
   var now=new Date()
   year = now.getYear();
   if (year < 2000) year = 1900 + year;
   var hours=now.getHours()
   var minutes=now.getMinutes()
   timeStr=""+((hours > 12) ? hours - 12 : hours)
   timeStr+=((minutes < 10) ? ":0" : ":") + minutes
   timeStr+=(hours >= 12) ? " PM" : " AM"
   return timeStr
}

// ------------------------------------------------------------------------------
// Function to display date w/time
function todayStr() {
	var isnMonths = new isnArray("January","February","March","April","May","June","July","August","September","October","November","December");
	var isnDays = new isnArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	var currenttime=nowStr();
	today = new Date();
	document.write (isnDays[today.getDay()+1]+", "+isnMonths[today.getMonth()+1]+" "+today.getDate()+", "+getFullYear(today)+" - "+currenttime)
}

// ------------------------------------------------------------------------------
// Function to display date in full
function dateStr() {
	var isnMonths = new isnArray("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
	var isnDays = new isnArray("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
	today = new Date();
	document.write (isnDays[today.getDay()+1]+", "+isnMonths[today.getMonth()+1]+" "+today.getDate()+", "+getFullYear(today))
}

// ------------------------------------------------------------------------------
function browserVer(net, ie) 
	{
	if ((navigator.appVersion.substring(0,3) >= net && 
             navigator.appName == 'Netscape' && 
             net != -1) || 
            (navigator.appVersion.substring(0,3) >= ie && 
             navigator.appName.substring(0,9) == 'Microsoft' && 
             ie != -1))
		{
		return true;
		}	
	else 
		{
		return false;
		}
	}

var message="This function is temporary disabled.\r\rAll intellectual property/contents are protected.";
function click(e) 
	{
		if (document.all)
		{
			if (event.button==2||event.button==3)
			{
				alert(message);
				return false;
			}
		}
		if (document.layers)
		{
			if (e.which == 3)
			{
				alert(message);
				return false;
			}
		}
	}
	if (document.layers)
	{
		document.captureEvents(Event.MOUSEDOWN);
	}
	document.onmousedown=click;

// ------------------------------------------------------------------------------
//12:10 PM 23/02/98
function whichBrowser()
	{
	browser="??";
	if (navigator.appName=="Netscape")
	   {browser="NS";}
	else
	   {var msie=navigator.userAgent.indexOf("MSIE");
	    if (msie!=0) {browser="MS";}
	   }
	return browser;
	}

// ------------------------------------------------------------------------------
//(BELOW: Not Use in this context)
function transitionTxt()
	{
	if (idTransTxt.filters.item(0).status == 0)
		{
		idTransTxt.filters.item(0).apply();
		idTransTxt.style.visibility = "visible";
		idTransTxt.filters(0).play();
		}
	}
//(ABOVE: Not Use in this context)
//  end script -->
