//======================
//       chkBlank()
//
// check for blanks in 
// form fields
// RETURNS: 
// FALSE if there are blanks
// TRUE if there are no blanks 
//======================
function chkBlank(name) {
	blank = 0

	for(loop=0; loop<name.length; loop++) {
		 if(name.charAt(loop)==" ")
			 blank += 1;
	}
	if(blank == name.length) 
		return false;
	else 
		return true;
} 


//====================
//       right()
//====================
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com --> 
function right(e) {
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
		alert("Please send me e-mail if you would like copies of my images.");
		return false;
	}
	return true;
} 

//====================
//     clickIE
// 
// used to prevent image 
// download
//====================
function clickIE() {
	if (document.all) {
		(message);
		return false;
	}
}

//====================
//     clickNS
// 
// used to prevent image 
// download
//====================
function clickNS(e) {
	if (document.layers||(document.getElementById && !document.all)) {
		if (e.which==2||e.which==3) {
			(message);
			return false;
		}
	}
}

var message="";
//====================
//   noRightClick()
//====================
function noRightClick() {
	if (document.all) {
		(message);
		return false;
	}
	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;
}

document.oncontextmenu=new Function("return false");
 
//====================
//             popUp()                       
//====================
function popUp(URL) {
	URL = URL.replace(/ /gi, '%20') ;
	var newwin=window.open(URL,'newwin','height=520,width=630,location=0,status=1,toolbar=0,scrollbars=1,resizable=1,top=0,left=0');
	newwin.focus();
	//to prevent downloading of pictures
	document.onmousedown=right;
	document.onmouseup=right;
	if (document.layers) newin.captureEvents(Event.MOUSEDOWN);
	if (document.layers) newwin.captureEvents(Event.MOUSEUP);
	newwin.onmousedown=right;
	newwin.onmouseup=right;
}

//=======================
// MM_swapImgRestore()
//=======================
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;
}

//=======================
//   MM_preloadImages()
//=======================
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.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//======================= 
//       MM_findObj(n,d)
//=======================
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&&id.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

//=======================
//       MM_swapImage()
//=======================
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];}
}
