
document.onmousedown=norightclick;

function noclick(){
 return false;
}
function norightclick(){
 if (event.button==2){
  alert("...Right click is not allowed...");
  return false;
 };
}
document.onkeydown = showDown;
function showDown(evt) { 
  evt = (evt)? evt : ((event)? event : null); 
  if (evt) { 
    if (event.keyCode == 116) { 
    // When F5 is pressed 
    cancelKey(evt); 
    }; 
  };
};

function cancelKey(evt) { 
if (evt.preventDefault) { 
evt.preventDefault(); 
return false; 
} 
else { 
evt.keyCode = 0; 
evt.returnValue = false; 
} 
} 



if (window.screen){
    w = window.screen.availWidth;
   	h = window.screen.availHeight;
}

function oActive(){
}

function launch_settings1(){
	settingsWindow1 = window.open("dsp/dsp_student_login.cfm", "settings3","titlebar=yes,status=yes,resizable=yes,scrollbars=yes,width="+w+",height="+h+",top=0,left=0");	
}
function launch_settings2(){
	settingsWindow2 = window.open("dsp/dsp_browser_settings.cfm", "settings2","titlebar=yes,status=yes,resizable=yes,scrollbars=yes,width="+w+",height="+h+",top=0,left=0");
}
function launch_settings3(){
	settingsWindow1 = window.open("dsp/dsp_student_login.cfm", "settings3","titlebar=yes,status=yes,resizable=yes,scrollbars=yes,width="+w+",height="+h+",top=0,left=0");
} 
function launch_settings4(){
	settingsWindow1 = window.open("dsp/dsp_help.cfm", "settings4","titlebar=yes,status=yes,resizable=yes,scrollbars=yes,width="+w+",height="+h+",top=0,left=0");
}

var bookmarkurl="http://www.ticketstop.com"
var bookmarktitle="TicketStop Defensive Driving"

function addbookmark(){
	if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle)
}	

//if (document.images){
//	  GetRec_Crton = new Image();
//	  GetRec_Crton.src = "/images/GetRec_Crt3b.gif";
//	  GetRec_Crtoff = new Image();
//	  GetRec_Crtoff.src = "/images/GetRec_Crt3.gif";
//}
function turnOn(imageName){
	if (document.images) document[imageName].src = eval(imageName + 'on.src')
}	
function turnOff(imageName){
	if (document.images) document[imageName].src = eval(imageName + 'off.src');
}
 



