var secs;
var timerID = null;
var delay = 1000;

function StartTheTimer()
{
    if (secs==0)    {
        document.getElementById("message_ok").innerHTML=' ';
    }    else    {
        secs = secs - 1;
        timerID = self.setTimeout("StartTheTimer()", delay);
    }
}

function pageLoad(){
	MM_preloadImages('index.dwt');
	document.frmAutoby.txtUpdated.value = parseInt((((Date.parse(Date())-12000000)/(60*60*24*1000)) + 25579),10);
	start_slider();
	secs=10;
	StartTheTimer();
	}
function openpage(pg) {
	var winName = "NewWindow";
	var features = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=700,height=400";
	switch(pg)
	{
	case 1:
	  urlData = "reports/newsletter.pdf";
	  break;
	default:
	  urlData = "";
	}
	//alert(urlData + ' = ' + pg);
	window.open(urlData,winName,features);
}

function jumpto(pg) {
	switch(pg)
	{
	case 1:
	  this.location.href = "MemberEdit.php";
	  break;
	case 2:
	  this.location.href = "MemberPassword.php";
	  break;
	case 3:
	  this.location.href = "MemberSuggestion.php";
	  break;
	case 4:
	  this.location.href = "Gallery.php";
	  break;
	case 5:
	  this.location.href = "";
	  break;
	case 6:
	  this.location.href = "";
	  break;
	case 10:
	  this.location.href = "MemberMain.php";
	  break;
	case 101:
	  this.location.href = "AdminMain.php";
	  break;
	default:
	  this.location.href = "login.php";
	}
}
