
TrapSec = 10;
BoxMessage = "Just click once, please.";
NameOfForm = "vrform";
NameButton = "vxr";
NewButtonTxt = "Now Processing . . .";
TrapTime = 0;
TrapCount = 0;

PopUpBoxURL = "";
PopUpBoxHeight = 300;
PopUpBoxWidth = 500;

function NoMoreDoubleClick() {
TrapCount++;
DCTrapperButton();
var trapTheClick = false;
if(TrapCount > 1 ) { trapTheClick = true; }
if(trapTheClick == true) {
	if(TrapTime == 0) {
		var tDate = new Date;
		TrapTime = tDate.valueOf();
		}
	else {
		var tDate = new Date;
		var localTrapTime = tDate.valueOf();
		if((localTrapTime - TrapTime) > (TrapSec * 1000)) {
			TrapTime = 0;
			trapTheClick = false;
			TrapCount = 0;
			}
		}
	}
var valueToReturn = true;
if(trapTheClick == true) {
	valueToReturn = false;
	DCTrapperPopUp();
	DCAlert();
	}
return valueToReturn;
} // end of function NoMoreDoubleClick()


function DCTrapperButton() {
var formname   = StripSpaces(NameOfForm);
var submitname = StripSpaces(NameButton);
var newtext    = StripSpaces(NewButtonTxt);
if(formname.length > 0 && submitname.length > 0 && newtext.length > 0) {
	var s = 'document.' + NameOfForm + '.' + NameButton + ".value = '" + NewButtonTxt + "'";
	eval(s);
	}
} 


function DCAlert() {
var message = StripSpaces(BoxMessage);
if(message.length > 0) { alert(BoxMessage); }
} 

function DCTrapperPopUp() {
var url = StripSpaces(PopUpBoxURL);
if(url.length > 0) {
	if(PopUpBoxHeight < 1) { PopUpBoxHeight = 200; }
	if(PopUpBoxWidth < 1) { PopUpBoxWidth = 300; }
	window.open(url,'',('height=' + PopUpBoxHeight + ',width=' + PopUpBoxWidth + ',resizable=yes,scrollbars=yes'));
	}
} // end of function DCTrapperPopUp()


function StripSpaces(s) {
while(s.indexOf(' ') == 0) { s = s.substr(1); }
return s;
} // end of function StripSpaces()






<!--
 var win;
 function showFAQ() {
 if (win == null || win.closed){
 win = window.open("/tips.htm", "win", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=550,height=400")
 }else{
 if (navigator.appName.substring(0.8) == "Netscape"){
 win.location.href = "/tips.htm";
 this.win.focus();
 }else{
 win = window.open("/tips.htm", "win", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=550,height=400")
 }
 }
 }

