/**********************************************************
 * * * * * * * * * Automatic Copyright * * * * * * * * * *
* * * Copyright 2004 Joe Kozak.  All Rights Reserved. * * *
 
This script will display the name of the copyright holder
and the original copyright date.  It will automatically
update the dates to show from the original year to the
current year.
**********************************************************/

// The only changes you should make are tho these lines
myYear = 1999; // The original date of my web
myName = "Kozak Insurance Agency"; // Copyright holder's name

// the following lines set the date range - don't change it
curDate = new Date();
curYear = curDate.getFullYear();
if (myYear == curYear) Year = myYear;
if (myYear != curYear) Year = myYear+" - "+curYear;

// this will write the copyright notice on your Web page
function myCopyright()
{
	document.write ("&copy "+Year+" "+myName+". All rights reserved.");
}
//////////////////////////////////////////////////


// This is your no right click script
if (window.Event) 
document.captureEvents(Event.MOUSEUP); 
function nocontextmenu()  
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)	
{
if (window.Event)	
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}	
}
document.oncontextmenu = nocontextmenu;		
document.onmousedown = norightclick;		

<!--
var message="This entire Web site, including the layout, design, pages and content\nare all protected by copyright laws. Any unauthorized duplication or\nreproduction is strictly prohibited.\n\n    © "+Year+" " +myName+". All rights reserved.";

// Message for the alert box
function click(e) {
if (document.all) {
if (event.button == 2) {
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;
// -->
///////////////////////////////////////////////////////

// This is the status bar name and time
<!-- Hide this from older browsers
var timerID = null;
var TimerRunning = false;

function stop(){
if(TimerRunning)
clearTimeout(timerID);
TimerRunning = false;
}

function display() {
var thedate = new Date();
var hours = thedate.getHours();
var Min = thedate.getMinutes();
var Sec = thedate.getSeconds();
var TimeV = myName+"     " + ((hours >12) ? hours -12 :hours)
TimeV += ((Min < 10) ? ":0" : ":") + Min
TimeV += ((Sec < 10) ? ":0" : ":") + Sec
TimeV += (hours >= 12) ? " P.M." : " A.M."
window.status = TimeV;
timerID = setTimeout("display()",1000);
TimerRunning = true;
}

function start() {
stop();
display();
}

start();

// end hide -->
