// Clock
showTime = function() {
	show_clock();
}
//window.onload = showTime;

// Set Focus
function setFocus() {
	document.Remote.AccessIDVisible.focus();
}

///////////////////////////////////////////////////////////////////////////////
// Todays Date
function todaysDate() {

	var tDate = new Date();
	var tMonth;

	switch (tDate.getMonth()) {
		case 0 : tMonth = 'January '; break;
		case 1 : tMonth = 'February '; break;
		case 2 : tMonth = 'March '; break;
		case 3 : tMonth = 'April '; break;
		case 4 : tMonth = 'May '; break;
		case 5 : tMonth = 'June '; break;
		case 6 : tMonth = 'July '; break;
		case 7 : tMonth = 'August '; break;
		case 8 : tMonth = 'September '; break;
		case 9 : tMonth = 'October '; break;
		case 10 : tMonth = 'November '; break;
		case 11 : tMonth = 'December '; break;
	}

	var tDay = tDate.getDate();
	var tYear = tDate.getFullYear();

	return (tMonth + tDay + ', ' + tYear);
}

//<script language="javascript">document.write(todaysDate());</script>

///////////////////////////////////////////////////////////////////////////////
// Center Window Popup
function showpop(page, pagewidth, pageheight){
	var p = page;
	var w = pagewidth;
	var h = pageheight;
	var x = (screen.width - w) / 2;
	var y = (screen.height - h) / 2;

	window.open(''+p+'','','width='+w+',height='+h+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left='+x+',top='+y+'');
}

//<a href="javascript:showpop('page.html', '800', '600');">Link</a>

///////////////////////////////////////////////////////////////////////////////
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")



/*///////////////////////////////////////////////////////////////////////////////
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script 
  
function disableselect(e){
return false
} 
  
function reEnable(){
return true
} 
  
//if IE4+
document.onselectstart=new Function ("return false") 
  
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
///////////////////////////////////////////////////////////////////////////////*/