function validateInputs(formName) {

	var whichForm = formName;
	var z = 0;
	var formValidates = true;
	var strNote, strTmp1, strTmp2, strTmp3;


	while ((z < whichForm.elements.length) && (formValidates)) {

		//check to make sure the input is not empty, unless its name is Optional
		if ((whichForm.elements[z].value=="") && (whichForm.elements[z].title != "Optional")) {
			alert("Please provide the required information for " + whichForm.elements[z].title + ".");
			whichForm.elements[z].select();
			formValidates = false;
		}
    
		//replace " 
  while (whichForm.elements[z].value.indexOf('"') > -1) {
			strNote = whichForm.elements[z].value;
			strTmp1 = strNote.substring(0,strNote.indexOf('"'));
			strTmp2 = strNote.substring(strNote.indexOf('"')+1,strNote.length);
			strTmp3 = strTmp1 + "&#34;" + strTmp2;
			whichForm.elements[z].value = strTmp3;
		}
		//replace ’ 
  while (whichForm.elements[z].value.indexOf('’') > -1) {
			strNote = whichForm.elements[z].value;
			strTmp1 = strNote.substring(0,strNote.indexOf('’'));
			strTmp2 = strNote.substring(strNote.indexOf('’')+1,strNote.length);
			strTmp3 = strTmp1 + "&#39;" + strTmp2;
			whichForm.elements[z].value = strTmp3;
		}
  
  
		//replace ' 
  while (whichForm.elements[z].value.indexOf("'") > -1) {
			strNote = whichForm.elements[z].value;
			strTmp1 = strNote.substring(0,strNote.indexOf("'"));
			strTmp2 = strNote.substring(strNote.indexOf("'")+1,strNote.length);
			strTmp3 = strTmp1 + "&#39;" + strTmp2;
			whichForm.elements[z].value = strTmp3;
		}
  
		//replace % 
  while (whichForm.elements[z].value.indexOf("%") > -1) {
			strNote = whichForm.elements[z].value;
			strTmp1 = strNote.substring(0,strNote.indexOf("%"));
			strTmp2 = strNote.substring(strNote.indexOf("%")+1,strNote.length);
			strTmp3 = strTmp1 + "&#37;" + strTmp2;
			whichForm.elements[z].value = strTmp3;
		}

		//replace ’ 
  while (whichForm.elements[z].value.indexOf("’") > -1) {
			strNote = whichForm.elements[z].value;
			strTmp1 = strNote.substring(0,strNote.indexOf("’"));
			strTmp2 = strNote.substring(strNote.indexOf("’")+1,strNote.length);
			strTmp3 = strTmp1 + "&#146;" + strTmp2;
			whichForm.elements[z].value = strTmp3;
		}
  
  
		z++;
	}		
	return formValidates;
}




 function peek_a_boo(divID, iState) { // 1 visible, 0 hidden
    if ( document.layers ) { //NN4+ 
      document.layers[divID].visibility = iState ? "show" : "hide"; 
    }  
    else if ( document.getElementById )	 { //gecko(NN6) + IE 5+
        document.getElementById(divID).style.visibility = iState ? "visible" : "hidden";
    }
    else if ( document.all )	{ // IE 4  
        document.all[divID].style.visibility = iState ? "visible" : "hidden";
    }
}


function details( evt,d_txt,posX,posY ) {
  var d_content = d_txt;
  document.getElementById("info_bkg").innerHTML  = d_content ;
  document.getElementById("info_txt").innerHTML  = d_content ;
  //alert(d_content);
  document.getElementById("info").style.left = (evt.clientX + document.body.scrollLeft + 100);
  document.getElementById("info").style.top  = (evt.clientY + document.body.scrollTop - 25);
  /*
  document.getElementById("info").style.left = (evt.clientX + document.body.scrollLeft + posX);
  document.getElementById("info").style.top  = (evt.clientY + document.body.scrollTop + posY);
  */
  peek_a_boo('info',1)
} 





