<!--
function solve(form){

Das   = eval(form.Das.value)*Math.pow(10,-3);
L     = eval(form.L.value)*Math.pow(10,-3);
F1    = eval(form.F1.value);
v1    = eval(form.v1.value);
dR    = eval(form.dR.value)*Math.pow(10,-3);
delta = eval(form.delta.value)*Math.pow(10,-3);
k     = eval(form.k.value)*Math.pow(10,-15);

if (Das != 20*Math.pow(10,-3)) {
	alert("Please login to get full access!");
	Das=20*Math.pow(10,-3); 
	form.Das.value = 20}

R = Das/2;
C = dR/R;
H = delta/R;

var stat=form.stat.value; 
	if (form.stat[0].checked){
		b_R = Math.sqrt(H*(2-H)*(H+2*C)*(H+2*C+2))/(2*(C+H));
		b   = b_R*R;
		alpha1 = Math.asin(b_R);
		A1 = R*R*(alpha1-Math.sin(alpha1)*Math.cos(alpha1));
		alpha2 = Math.asin(b/(R+C*R));
		phi = 2*alpha2*180/Math.PI;
		A2 = Math.pow(R*(1+C),2)*(alpha2-Math.sin(alpha2)*Math.cos(alpha2));
		V  = L*(A1-A2);
		}
   
	else if (form.stat[1].checked){
		b_R = "'whirl'";
		V = Math.PI*Das*L*H*R;
		}

s  = V/(k*F1);
t  = s/v1;

form.pav.value = Math.round(F1/(L*Das)*Math.pow(10,-6)*10)/10;
form.PV.value = Math.round(F1/(L*Das)*v1*Math.pow(10,-6)*10)/10;
form.phi.value = Math.round(phi);
form.V.value = Math.round(V*Math.pow(10,9));
form.s.value = Math.round(s*Math.pow(10,-3));
form.t.value = Math.round(t/3600);

} 

function reset(form)
{
}
// -->
