﻿window.onload=function()
{

Nifty("div#top,div#bar,div#column,div#sidebar,div#searchbar,div.tags,div.round","transparent");

}

// xjamlah
function updateClock () {
  var currentTime = new Date ( );

  var currentHours = currentTime.getHours ( );
  var currentMinutes = currentTime.getMinutes ( );
  var currentSeconds = currentTime.getSeconds ( );

  // Pad the minutes and seconds with leading zeros, if required
  currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
  currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

  // Choose either "AM" or "PM" as appropriate
  var timeOfDay = ( currentHours < 12 ) ? "am" : "pm";

  // Convert the hours component to 12-hour format if needed
  currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;

  // Convert an hours component of "0" to "12"
  currentHours = ( currentHours == 0 ) ? 12 : currentHours;

  // Compose the string for display
  var currentTimeString = currentHours + ":" + currentMinutes + ":" + currentSeconds + " " + timeOfDay;

  // Update the time display
  document.getElementById("xjamlah").firstChild.nodeValue = currentTimeString;
}

// Event Handler
function addEvent( obj, type, fn ) {
	if ( obj.attachEvent ) {
		obj['e'+type+fn] = fn;
		obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
		obj.attachEvent( 'on'+type, obj[type+fn] );
	} else {
		obj.addEventListener( type, fn, false );
	}
}

// Load Live Clock
addEvent(window, "load", updateClock);
var jwlc = setInterval('updateClock()',1000);

//PASTI LAH PULAK
function pastilah() {
	var answer = confirm("Adakah Anda Pasti?")
	if (answer){
		alert("Rekod Telah Berjaya Dipadam");
	return false;
	}
	else{
		alert("Rekod Tidak Dipadam");
		return true;	
	}
}