<?
for($i=0;$i<5;$i++)
{
  for($j=0;$j<5;$j++)
    {
      $name = "cell".$i.$j;
       setCookie($name);
	$year_name = "year".$j;
	setcookie($year_name);
    }
}

?>
<html>
<head>
<meta http-equiv="Expires" content="Fri, Jun 12 1981 08:20:00 GMT">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<script language="Javascript">

var my_color=0;

function color(flag)
{
 my_color = flag;
 document.example.src = "../../gifs/pixel"+my_color+".gif";
}

function WriteCookie (cookieName, cookieValue, expiry) 
{
var expDate = new Date();
if(expiry)
{
    expDate.setTime (expDate.getTime() + expiry);
    document.cookie = cookieName + "=" + escape (cookieValue) + "; expires=" + expDate.toGMTString();
}
    else
    {
        document.cookie = cookieName + "=" + escape (cookieValue);
    }
}

function setCookie(mine)
{

  var value = my_color;
  WriteCookie(mine, value, 1000 * 60 * 60 * 10);
}


function change(mine)
{
  if(my_color!=0)
    {
      new_color = "../../gifs/pixel" + my_color + ".gif";
      document[mine].src = new_color;
      setCookie(mine);
    }
  else 
    alert("What Color Do U Want ?!");
}

</script>
</head>
<body  marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" bgcolor="#499028" text="#c2e2ac" link="#ffffff" vlink="#ffffff" alink="#ffffff">
<table border="0" width="99%">
<tr>
  <td align="left" bgcolor="#090588" valign="top">
   <img src="http://galim.org.il/history/gifs/activ/Peilut3.gif" width="700" height="42" border="0" usemap="#one">
  </td>
  </tr>
<tr><td align="center" nowrap valign="top">

<table border="0" width="75%">
<tr><td align="right" nowrap valign="top">

<b>:תוארוה</b><br>
.הייח ךלהמב םייתועמשמ םיעוריא ורחבו תומדה לש םייחה תורוק לע וארק<BR>
.תומדה לש הייח ךלהמב םייתועמשמ םיעוריא ורחב .1<BR>
:אבה חתפמה יפ לע ,עוריאה גוסל םיאתמ יולימ עבצ ורחב .2<BR>
.יתוברת / יכוניח תוליעפ דקומ - <font color="blue">לוחכ</font><BR>
.יטילופ תוליעפ דקומ - <font color="red">םודא</font><BR>
.יתרבח תוליעפ דקומ - <font color="green">קורי</font><BR>
<BR>
:ל תוסחייתה ךות םיעוריאה תא ומקמ .4<BR>
.םינשה תא אלמל םכילע .ןמזה ריצ אוה - יקפוא ריצ .א<BR>
.תוליעפה תובישח תא גציימה ריצ אוה - יכנא ריצ .ב<BR>
 / םייתרבח / םיירוביצה םייחב תומדה לש התוליעפ תובישח תא תגציימ התנש לכ<BR>
.ךרדבש הנידמה לש םייתוברת<BR><BR>
</td>
</tr>
</table>



<table border="1" cellpadding="3">

<tr>
 <td align="center"><font size="1">יתוברת</font></td><td align="center"><font size="1">יתרבח</font></td><td align="center"><font size="1">יטילופ</font></td>
</tr>
<tr>
 <td align="center"><a href="javascript:color('blue')">
  <img src="../../gifs/pixelblue.gif" width="20" height="20" border="0"></a></td><td align="center"><a href="javascript:color('green')">
  <img src="../../gifs/pixelgreen.gif" width="20" height="20" border="0"></a></td><td align="center"><a href="javascript:color('red')">
  <img src="../../gifs/pixelred.gif" width="20" height="20" border="0"></a></td>
</tr>
</table>

</td></tr>
<tr><td align="center">
<table border="1" align="center">
<?
 for($i=0;$i<5;$i++)
 {
   echo "<tr>\n";
   for($j=0;$j<21;$j++)
     {
       
       echo "<td align=\"center\" valign=\"middle\"><font size=\"1\">\n";
       echo "<a href=\"javascript:change('cell".$i.$j."')\">\n";
       echo "<img src=\"../../gifs/pixel.gif\" width=\"20\" height=\"20\" name=\"cell".$i.$j."\" border=\"0\"></a>\n";
       echo "</font></td>\n";
     }

   echo "<form name=\"mine\" action=\"insert_new.php3\" method=\"post\">\n";
   echo "</tr>\n";
 }
 echo "<tr>\n";
   for($j=0;$j<21;$j++)
     {
       echo "<td align=\"center\" valign=\"middle\"><font size=\"1\">\n";
       echo "<input type=\"text\" maxlength=\"4\" size=\"5\" name=\"year".$j."\">\n";
       echo "</font></td>\n";
     }
 echo "</tr>\n";
?>
<tr>
 <td colspan="10" align="center">
 <font face="Arial (hebrew)">
 <input type="text" size="20" name="pupil">
 </font>
 </td>
 <td colspan="11" align="center">: Name
 </td>
</tr>
<tr>
 <td colspan="10" align="center">
 <font face="Arial (hebrew)">
 <input type="text" size="20" name="grade">
 </font>
 </td>
 <td colspan="11" align="center">: Grade
 </td>
</tr>
<tr>
 <td colspan="10" align="center">
 <font face="Arial (hebrew)">
 <input type="text" size="20" name="school">
 </font>
 </td>
 <td colspan="11" align="center">: School
 </td>
</tr>
<tr>
<td align="center" colspan="<? echo $j; ?>">
<font size="2"><input type="submit" value="Results"></font>
</td>
</tr>
<?
echo "</form>\n";
?>

</table>
</td></tr></table>
<center>
<img src="../../gifs/pixel.gif" width="20" height="20" name="example" align="absmiddle">:תרחבש עבצה

</font><br><br>
<img src="http://galim.org.il/history/gifs/activ/Tb.gif" border="0" usemap="#tool"><br>
<map name="one">
<area shape="rect" coords="1,23,56,43" href="http://galim.org.il/history/enter.html">
<area shape="rect" coords="60,21,135,43" href="http://galim.org.il/history/.index.html">
<area shape="rect" coords="139,22,172,45" href="http://www.snunit.k12.il/htbin/yair/bgursearch.pl">
</map> 
<map name="tool">
<area shape="rect" coords="386,18,558,38" href="http://galim.org.il/history/util.html">
<area shape="rect" coords="265,17,376,39" href="http://galim.org.il/history/info.html">
<area shape="rect" coords="121,15,241,38" href="http://galim.org.il/history/story.html">
<area shape="rect" coords="1,15,100,39" href="http://galim.org.il/history/links.html">
</map>
</body>
</html>





