<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}



function changeContent(target) {
	document.getElementById('title').innerHTML = envirTitleArray[target];
	document.getElementById('detail').innerHTML = envirDetailArray[target];
	if (target < 10) {
		var no = "0";
	} else {
		var no = "";
	}
	//if (section == 'awards') {
		//document.getElementById('photo').innerHTML = '<a href="images/environment_cert_01_big.jpg" target="_blank"><img src="images/environment_cert_01.jpg" width="75" height="100" hspace="1" vspace="1" border="0"></a>';
	//} else {
		document.getElementById('photo').innerHTML = '<a href="images/'+section+'_cert_' + no +(target+1)+'_big.jpg" target="_blank"><img src="images/'+section+'_cert_0'+(target+1)+'.jpg" width="75" hspace="1" vspace="1" border="0"></a>';
	if (target == 6) {
		document.getElementById('photo').innerHTML += '<br><a href="images/'+section+'_cert_' + no +(target+1)+'b_big.jpg" target="_blank"><img src="images/'+section+'_cert_0'+(target+1)+'.jpg" width="75" hspace="1" vspace="1" border="0"></a>';
	}
	//}
	row = Math.floor(target/4);
	document.getElementById('detailLayer').style.top = 123 + 100*row;
}

function putText(target1,target2,target3,target4,target5,telT,faxT,emailT) { 
	document.getElementById('title').innerHTML = target1;
	document.getElementById('add').innerHTML = target2;
	document.getElementById('tel').innerHTML = target3;
	document.getElementById('fax').innerHTML = target4;
	document.getElementById('email').innerHTML = target5;
	if (target3 == ''){
		document.getElementById('telT').innerHTML = '';
	} else {
		document.getElementById('telT').innerHTML = '<img src="images/ball.gif" width="4" height="3" hspace="5" vspace="8" align="absmiddle">Tel';
	}
	if (target4 == ''){
		document.getElementById('faxT').innerHTML = '';
	} else {
		document.getElementById('faxT').innerHTML = '<br><img src="images/ball.gif" width="4" height="3" hspace="5" vspace="8" align="absmiddle">Fax';
	}
	if (target5 == ''){
		document.getElementById('emailT').innerHTML = '';
	} else {
		document.getElementById('emailT').innerHTML = '<br><img src="images/ball.gif" width="4" height="3" hspace="5" vspace="8" align="absmiddle">Email';
	}
} 

function changeMenuPos(layerTop) {
	//alert("1:"+document.body.offsetHeight);
	//alert("2:"+screen.availHeight);
	//alert("3:"+screen.Height);
	//alert("4:"+document.body.scrollHeight);
	//alert("5:"+document.height);
	
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winH = window.body.scrollHeight;
		} else if (navigator.appName.indexOf("Microsoft")!=-1) {
			winH = document.body.scrollHeight;
		}
	}
	var obj;
	var layerTop;
	obj=MM_findObj("photoLayer");
	//alert(obj.style.top);
	obj.style.top = layerTop;
}

function NewWindow(mypage, myname, w, h, scroll,resizable) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+','
win = window.open(mypage, myname, winprops)
win.self.focus()
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function newwin(URL) {
screen_width=screen.availWidth;
screen_height=screen.availHeight;
popup = window.open(URL,"",'height='+screen_height+",width="+screen_width+",left=0,top=0,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes");
}

function newwin1(URL) {
screen_width=760
screen_height=420
popup = window.open(URL,"pic",'height='+screen_height+",width="+screen_width+",left=0,top=0,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes");
}

function highlight(which,color01,color02){
if (document.all||document.getElementById)
which.style.backgroundColor=color02
which.style.color=color01
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

<!-- Original:  Russ Swift (rswift220@yahoo.com) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function validatePwd() {
var invalid = " "; // Invalid character is a space
var minLength = 6; // Minimum length
var loginname = document.myForm.login.value;
var pw2 = document.myForm.login.value;
// check for a value in both fields.
if (loginname == '' or pw2 == '') {
alert('Invalid, please enter again');
return false;
}

// check for spaces
if (document.myForm.login.value.indexOf(invalid) > -1) {
alert("Sorry, spaces are not allowed.");
return false;
}
else {
if (loginname != 'jrpintra' and pw2 != password) {
alert ("Wrong Login. Please try again");
return false;
}
else {
<!--
window.location = "http://www.jrpl.com/ecard.asp" target="_blank"
//-->
;
return true;
      }
   }
}

//-->