Размер файла: 1.69Kb
<?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: Adam Hinz ([email protected]) -->
<!-- Web Site: http://www3.cybercities.com/a/ajhinz -->
<!-- Modified By: Ronnie T. Moore -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function sqRt(form) {
var number = form.num.value;
var ans = Math.sqrt(number);
form.answer.value = ans;
}
function sqIt(form) {
var number = form.num.value;
var ans = eval(number * number);
form.answer.value = ans;
}
// End -->
</script>
<BODY>
<center>
<form>
<table border=1>
<tr>
<td>
<font color="#00FF00"><b>Число:</b></font><p>
<input type=text name=num size=10>
</td>
<td>
<input type=button value="Корень (квадратный)" onClick="sqRt(this.form)"><br>
<input type=button value="Квадрат числа" onClick="sqIt(this.form)">
</td>
<td>
<font color="#FF0000"><b>Результат:</b></font><p>
<input type=text name=answer size=15><br>
</td>
</tr>
</table>
</form>
</center> </BODY>';
echo '<hr><img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a>';
include_once "../themes/$config_themes/foot.php";
?>