      <!--
	  	var alreadySubmitted = false;
	  
		function activate(imgName) {
		if (document.images) 
			if (imgName.indexOf('_')==-1) {
				fileName = imgName
			} else {
				fileName = imgName.substring(0,imgName.indexOf('_'))
			}
			if (alreadySubmitted==false) {document[imgName].src = eval(fileName+'_down.src');}
		}

		function inactivate(imgName) {
		if (document.images && !alreadySubmitted) 
			if (imgName.indexOf('_')==-1) {
				fileName = imgName
			} else {
				fileName = imgName.substring(0,imgName.indexOf('_'))
			}
			if (alreadySubmitted==false) {document[imgName].src = eval(fileName+'_up.src');}
		}

		function deactivateButtons() {
			if (document['login']) {document['login'].src = eval('submittedimg.src');}
			if (document['proceed']) {document['proceed'].src = eval('submittedimg.src');}
			if (document['cancel']) {document['cancel'].src = eval('submittedimg.src');}
			if (document['back']) {document['back'].src = eval('submittedimg.src');}
			if (document['print']) {document['print'].src = eval('submittedimg.src');}
			if (document['next']) {document['next'].src = eval('submittedimg.src');}
			if (document['add']) {document['add'].src = eval('submittedimg.src');}
			if (document['update']) {document['update'].src = eval('submittedimg.src');}
			if (document['bulkrelease']) {document['bulkrelease'].src = eval('submittedimg.src');}
			if (document['bulkabort']) {document['bulkabort'].src = eval('submittedimg.src');}
			if (document['refund']) {document['refund'].src = eval('submittedimg.src');}
			if (document['repeat']) {document['repeat'].src = eval('submittedimg.src');}
			if (document['release']) {document['release'].src = eval('submittedimg.src');}
			if (document['abort']) {document['abort'].src = eval('submittedimg.src');}
			if (document['void']) {document['void'].src = eval('submittedimg.src');}
			if (document['search']) {document['search'].src = eval('submittedimg.src');}
			if (document['makepayment']) {document['makepayment'].src = eval('submittedimg.src');}
		}

		function submitTheForm(formName,clickName) {
			if (alreadySubmitted != true) {
				// Don't deactivate buttons on report screens
				if (formName.substring(0,4)!='rep_') {
					alreadySubmitted = true;
					deactivateButtons();
				}
				document[formName].clickedButton.value=clickName
				document[formName].submit()
			} else {
				sErr = "Duplicate Submission Detected\r\r"
				sErr = sErr+"Information in VSP Admin should only be submitted once.\r"
				sErr = sErr+"Double clicking the mouse, or pressing the <enter>\r"
				sErr = sErr+"or <return> key multiple times can result in the same\r"
				sErr = sErr+"information being sent twice.\r\r"
				sErr = sErr+"The extra submission has been cancelled. Please wait \r"
				sErr = sErr+"for VSP Admin to respond to your initial submission.\r"
				alert(sErr);
				return false;
			}			
		}
	  
		function popUp(url) 
		{
			thisWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=450,height=550');
			thisWin.name = "VSP Admin Information";
			thisWin.focus();
			thisWin.opener = self;
		}

		function popUpSmall(url) 
		{
			var centerX = screen.availWidth / 2;
			var centerY = screen.availHeight / 2;
			var leftPos = parseInt(centerX - (200) );
			var topPos = parseInt(centerY - (50) );

			self.loadStatus = false;
			thisWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=120');
			thisWin.name = "VSP Admin Information";
			thisWin.opener = self;
			thisWin.moveTo(leftPos, topPos);
			thisWin.focus();
		}

		function popUpLarge(url) 
		{
			var winDetail = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,";
			winDetail = winDetail + "width=" + (screen.availWidth-12);
			winDetail = winDetail + ",height=" + (screen.availHeight-40);

			self.loadStatus = false;
			thisWin=window.open(url,"win",winDetail);
			thisWin.name = "VSP Admin Information";
			thisWin.opener = self;
			thisWin.moveTo(0, 0);
			thisWin.focus();
		}

		// Generate an example strong 8 character password
		function generatePassword() {
			// Define the set of character types
			var uppers="ABCDEFGHJKLMNPQRSTUVWXYZ";
			var lowers="abcdefghijkmnopqrstuvwxyz";
			var numbers="123456789";
			var specials=".:?-_=%~*+";
			
			var thisPassword="";
			var tString="";
			var offset=0;
			var rnum=0;
			
			// Ensure we get at leats one of each type
			offset=Math.round(Math.random()*(uppers.length-1));
			thisPassword=thisPassword+uppers.charAt(offset);
			offset=Math.round(Math.random()*(lowers.length-1));
			thisPassword=thisPassword+lowers.charAt(offset);
			offset=Math.round(Math.random()*(numbers.length-1));
			thisPassword=thisPassword+numbers.charAt(offset);
			offset=Math.round(Math.random()*(specials.length-1));
			thisPassword=thisPassword+specials.charAt(offset);
			
			// Randomly pick another 4 with letters three times as likely as numbers of special chars
			for (i = 0; i <= 3; i++) {
				rnum=Math.round(Math.random()*8);
				if (rnum<3) tString=uppers;
				if (rnum>2 && rnum<6) tString=lowers;
				if (rnum==6) tString=numbers;
				if (rnum==7) tString=specials;
				offset=Math.round(Math.random()*(tString.length-1));
				thisPassword=thisPassword+tString.charAt(offset);
			}
			
			// Now randomly order the password
			tString=thisPassword;
			thisPassword="";
			for (i = 0; i <= 7; i++) {
				offset=Math.round(Math.random()*(tString.length-1));
				thisPassword=thisPassword+tString.charAt(offset);
				if (offset==(tString.length-1)) {
					tString=tString.substr(0,(tString.length-1));
				} else {
					if (offset==0) {
						tString=tString.substr(1,(tString.length-1));
					} else {
						tString=tString.substr(0,offset) + tString.substr(offset+1,(tString.length-1));
					}
				}
				
			}
			
			document["userform"].examplepassword.value=thisPassword;
			document["userform"].passwordbox1.value=thisPassword;
			document["userform"].passwordbox2.value=thisPassword;
			
		}

		var loadStatus = false;

      //  -->
