function InterceptPoint(STRIDE, STEPS, XSTD, YSTD, ANGLE){	PI=Math.PI	STRIDE = STRIDE/12	XSTD = XSTD/12	YSTD = YSTD/12	Radius = (STRIDE / 2) / (Math.sin((90 - ANGLE) * (PI / 180) / (2 * STEPS)))	X = Radius - (Math.sin(ANGLE * (PI/180)) * Radius + XSTD)	Y = Math.cos(ANGLE * PI/180) * Radius + YSTD	alert("Your X measurement is: " + Math.floor(X) + " ft. " + ((X - Math.floor(X)) * 12).toFixed(2) + " in." + "\r\nYour Y measurement is: " + Math.floor(Y) + " ft. " + ((Y - Math.floor(Y)) * 12).toFixed(2) + " in.")}function cmdCalculate_Click() { 	if(isNaN(document.form1.txtSTRIDE.value) == true) {		alert("STRIDE length needs to be a number")}	if(isNaN(document.form1.txtSTEPS.value) == true) {		alert("STEPS needs to be a number")}	if(isNaN(document.form1.txtXSTD.value) == true) {		alert("XSTD needs to be a number")}	if(isNaN(document.form1.txtYSTD.value) == true){		alert("YSTD needs to be a number")}	if(isNaN(document.form1.txtANGLE.value) == true){		alert("ANGLE needs to be a number")}	if(isNaN(document.form1.txtSTRIDE.value) == false && isNaN(document.form1.txtANGLE.value) == false && isNaN(document.form1.txtYSTD.value) == false && isNaN(document.form1.txtXSTD.value) == false && isNaN(document.form1.txtSTEPS.value) == false){		InterceptPoint(document.form1.txtSTRIDE.value, document.form1.txtSTEPS.value, document.form1.txtXSTD.value, document.form1.txtYSTD.value, document.form1.txtANGLE.value )	}}
