function doDetail() {
    document.main.itemDetail.value = "click";
    document.main.submit();
}
function submitOrder(){
	document.main.pageAction.value = "submit";
	document.main.submit();
}
function confirmOrder(){
	var fieldData = "";
	if (document.main.userEmail.value == "") {
		var fieldData = prompt("An email address is required for us to complete this request.  Please supply a valid email address:", "");
		document.main.userEmail.value = fieldData;
	} 
	document.main.pageAction.value = "confirm";
	document.main.submit();
}
function cancelOrder(){
	if (confirm("Are you sure you want to cancel this order?")) {
		document.main.pageAction.value = "cancel";
		document.main.submit();
	}
}
function popUpPdf(field){
	document.pdf.filepath.value = field.value;
	document.pdf.submit();
}
<!-- Original:  Ronnie T. Moore -->
<!-- Web Site:  The JavaScript Source -->
<!-- Dynamic 'fix' by: Nannette Thacker -->
<!-- Web Site: http://www.shiningstar.net -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
function textCounter(field, countfield, maxlimit) {
	if (field.value.length > maxlimit) {
		// if too long...trim it!
		field.value = field.value.substring(0, maxlimit);
	} else {
		// otherwise, update 'characters left' counter
		countfield.value = maxlimit - field.value.length;
	}
}
function showClassroomTrain(obj1, section){
	dwfaq_ToggleOMaticDisplay(obj1,section);
}
function showIsbnList(obj1,section) {
	dwfaq_ToggleOMaticDisplay(obj1,section);
}
