  function checkConfirm(myMsg) {
	 var c=confirm(myMsg);
	 if(c) {
	 
	 }
	 else {
	  return false;
	 }
	}
	function validateForm(formName,checkFields) {
	  for (var i=0;i<checkFields.length;i++) {
	    if (document[formName].elements[checkFields[i]].value == '') {
			  alert("A required form field is missing.");
				return false;
			}
		}
	}
	
	function clearForm(which) {
	  if(which==undefined) {
      for (i = 0; i < document.forms.length; i++) {
        //document[formName].reset();
			  document.forms[i].reset();
      }
		}
		else {
		  document.forms[which].reset();
		}
	}

	function FormatAsMoney(myNum) {
    myNum -= 0;
    myNum = (Math.round(myNum*100))/100;
    return (myNum == Math.floor(myNum)) ? myNum + '.00' : ( (myNum*10 == Math.floor(myNum*10)) ? myNum + '0' : myNum);
  }
	

	
	
						//Globally accessed mouse-over box
					function displayInfoBox(which,type) {
					  var o=document.getElementById('info-box'); 
						var r=o.style;   
						if(which.length > 0) {
						  if(type=="msg") {
						    o.innerHTML=which;
							  r.position = "absolute";
							  r.left = (mouseX + 1) + 'px';
	  					  r.top = (mouseY + 15) + 'px';
	  					  r.display = "block";
							}
							else if (type=="help" && info_box_help==1) {
							  o.innerHTML=which;
							  r.position = "absolute";
							  r.left = (mouseX + 1) + 'px';
	  					  r.top = (mouseY + 15) + 'px';
	  					  r.display = "block";
							}
						}
						else {
	  				  o.innerHTML="";
							r.display = "none";
						}
					}