function BVHelp(form) {	alert("This feature is not yet implemented.");}function randomBVProblem(form) { 	theF = 1000;  	theCR = Math.round((Math.random()*16+4)*10)/10; 	theR = Math.round((Math.random()*18+2)*100)/100;  	theM = Math.round(Math.random()*29+1);  	form.FInput.value="" + theF; 	form.CRInput.value="" + theCR; 	form.RInput.value="" + theR; 	form.MInput.value="" + theM; 	form.BOutput.value=""; }  function findBV(form) { 	theFStr = form.FInput.value; 	if (!isPositiveNumber(theFStr)) { 		return false; 	} 	theCRStr = form.CRInput.value; 	if (!isPositiveNumber(theCRStr)) { 		return false; 	} 	theRStr = form.RInput.value; 	if (!isPositiveNumber(theRStr)) { 		return false; 	} 	theMStr = form.MInput.value; 	if (!isPositiveNumber(theMStr)) { 		return false; 	} 	theF = parseFloat(theFStr); 	theCR = parseFloat(theCRStr); 	theR = parseFloat(theRStr); 	theM = parseInt(theMStr); 	var theB = (theCR*theF/200)*((1-Math.pow(1 + theR/200,-2*theM))/(theR/200))+theF/Math.pow(1+theR/200,2*theM); 	form.MInput.value = "" + Math.round(theM); 	form.BOutput.value = "" + Math.round(theB*100)/100; 	return true; }  function calcBVHelp(form) { 	theFStr = form.FInput.value; 	if (!isPositiveNumber(theFStr)) { 		return false; 	} 	theCRStr = form.CRInput.value; 	if (!isPositiveNumber(theCRStr)) { 		return false; 	} 	theRStr = form.RInput.value; 	if (!isPositiveNumber(theRStr)) { 		return false; 	} 	theMStr = form.MInput.value; 	if (!isPositiveNumber(theMStr)) { 		return false; 	} 	theF = parseFloat(theFStr); 	theCR = parseFloat(theCRStr); 	theR = parseFloat(theRStr); 	theM = parseInt(theMStr); 	var theB = (theCR*theF/200)*((1-Math.pow(1 + theR/200,-2*theM))/(theR/200))+theF/Math.pow(1+theR/200,2*theM); 	theB = "" + Math.round(theB*100)/100; 	var theOut = "<html><head><title>Bond Price Help</title></head><body bgcolor='white'>"; 	theOut += "<h3>Bond Price Help</h3>"; 	theOut += "<p>To solve using the Texas Instruments BA II Plus Calculator:</p>"; 	theOut += "<p><i>Make sure that the calculator is set up for semiannual compounding before beginning.</i></p>"; 	theOut += "<table><tr align='center'><td>" + Math.round(theF*100)/100 + "</td><td>[FV]</td></tr>"; 	theOut +="<tr align='center'><td>" + Math.round((theCR*theF/200)*100)/100 + "</td><td>[PMT]</td></tr>"; 	theOut +="<tr align='center'><td>" + Math.round(theR*100)/100 + "</td><td>[I/Y]</td></tr>"; 	theOut +="<tr align='center'><td>" + Math.round(theM*2) + "</td><td>[N]</td></tr>"; 	theOut +="<tr align='center'><td>&nbsp;</td><td>[CPT][PV]</td></tr></table>"; 	theOut += "<p><b>The Bond Price is $" + theB + "</b></p>"; 	theOut += "<CENTER>";	theOut += "<P><FORM NAME=\"Form1\">";	theOut += "<INPUT TYPE=\"button\" VALUE=\"   OK   \" onClick=\"window.close();\"></FORM></P></CENTER>"; 	theOut += "</body></html>"; 	var newWin = window.open("","","scrollbars,resizable,width=400,height=420"); 	if (newWin != null) { 		newWin.document.write(theOut); 		newWin.document.close(); 		newWin.focus(); 	} 	return true; }  function isPositiveNumber(inputStr) { 	for (var i = 0; i < inputStr.length; i++) { 		var oneChar = inputStr.substring(i,i+1); 		if (((oneChar >= "0") && (oneChar <= "9")) || (oneChar == ".")) { 		 		} else { 			alert("Please make sure that only numbers are input."); 			return false; 		}  	}	return true; }  function isNegativeNumber(inputStr) { 	if (inputStr.length < 2) { 		alert("Please input a negative number."); 		return false; 	} 	var oneChar = inputStr.substring(0,1); 	if (oneChar != '-') { 		alert("Please make sure that only negative numbers are input."); 		return false; 	} 	for (var i = 1; i < inputStr.length; i++) { 		oneChar = inputStr.substring(i,i+1); 		if (((oneChar >= "0") && (oneChar <= "9")) || (oneChar == ".")) { 		 		} else { 			alert("Please make sure that only numbers are input."); 			return false; 		}  	}	return true; }