View file pomocy_shcool/kinetich_anargik.php

File size: 2.11Kb
<?php
	
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";

echo '<SCRIPT LANGUAGE="JavaScript">
<!-- Original: David K ([email protected]) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function a_times_b(form) {
a = eval(form.a.value);
b = eval(form.b.value);
c = 1 / 2 * a * b * b;
form.c.value = c;
}
function c_div_b(form) {
c = eval(form.c.value);
b = eval(form.b.value);
a = c / (b * b);
form.a.value = a * 2;
}
function c_div_a(form) {
c = eval(form.c.value);
a = eval(form.a.value);
b = c / (1 / 2 * a);
form.b.value = Math.sqrt(c / (1 / 2 * a));
}
// End -->
</script>
 
  
<BODY> 
 
<center>
<table width=300 border=0>
<form name="fromcal">
<tr>
<td bgcolor="#CCCCCC">Масса (кг)</td>
<td bgcolor="#CCCCCC">Скорость (м/с)</td>
<td bgcolor="#CCCCCC">Кинетическая энергия (дж)</td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><input type=number name="a" value=" " size=10></td>
<td bgcolor="#CCCCCC"><input type=number name=b value=" " size=10></td>
<td bgcolor="#CCCCCC"><input type=number name="c" value=" " size=10></td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><input type=button value="Найти массу" onClick="c_div_b(this.form)"></td>
<td bgcolor="#CCCCCC"><input type=button value="Найти скорость" onClick="c_div_a(this.form)"></td>
<td bgcolor="#CCCCCC"><input type=button value="Найти КИ" onClick="a_times_b(this.form)"></td>
</tr>
</form>
</table>
</center> </BODY> ';
echo '<hr><img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a>'; 

include_once "../themes/$config_themes/foot.php";
?>