	    function goToPage($page)
	    {
	       window.location=$page;
	    }
        
              
        
	    function checkPasswords(form)
	    {
           if (form.password.value != form.password2.value)
           {
              alert ("The passwords do not match!");
              form.password.value="";
              form.password2.value="";
              return false;
           }
           return true;
        }
        function setSize($length, $width, $height)
        {
           document.getElementById("length").innerHTML = $length;
           document.getElementById("width").innerHTML = $width;
           document.getElementById("height"). innerHTML = $height;
        }
        var focused = null;
        var pop = '';
	function reset()
	{
	  pop = null;
	  return;
	}
        function popup(page)
        {
           if (window.focus && pop)
           {
              pop.focus();
           }
           else
           {
              var top = (screen.height - 175) / 2;
              var left = (screen.width - 190) / 2;
              var title = "Special Characters";
              var settings="status=no,resize=no,resizeable=no,top=" + top + ",left=" + left + ",width=190,height=175";
              pop = window.open(page, title, settings);
              pop.$focused = focused;
           }
        }
        function popup2(page)
        {
           if (window.focus && pop)
           {
              pop.focus();
           }
           else
           {
              var top = (screen.height - 175) / 2;
              var left = (screen.width - 190) / 2;
              var title = "Special Characters";
              var settings="resizable=no,scrollbars=yes,status=no,top=" + top + ",left=" + left + ",width=400,height=250";
              pop = window.open(page, title, settings);
              pop.$focused = focused;
           }
        }
        function update(me)
        {
           focused = me;
           pop.$focused = me;
        }
        function toggleCheckbox($id)
        {
           var $obj = document.getElementById($id);
           if ($obj.checked)
              document.getElementById($id).checked = false;
           else
              document.getElementById($id).checked = true;
        }
        var $checked=false;
        function toggleAllCheckboxes($total)
        {
           if ($checked)
           {
              $checked=false;
              document.getElementById("checky").innerHTML = "<img src=\"image/check.bmp\" alt=\"Check All\" title=\"Check All\">";
           }
           else
           {
              $checked=true;
              document.getElementById("checky").innerHTML="<img src=\"image/uncheck.bmp\" alt=\"Uncheck All\" title=\"Uncheck All\">";
           }
           for ($i=0; $i<$total; $i++)
           {
              document.getElementById($i).checked = $checked;
           }
        }
	var $deleted = false; 
        function validateMe(form)
        {
           if (deleted)
              return confirm("Are you sure you want to delete these items?");
           else
              return true;
        }