 $(document).ready(function() {
     $("#top").load("lastcommands.php");
   var refreshId = setInterval(function() {
      $("#top").load('lastcommands.php?randval='+ Math.random());
   }, 5000);
   
   
  
  	$("input#console").select().focus();

	 $("#cc").load("jsart/index.php");


   
});







function console()
{	
var command = $("input#console").val();
var dataString = 'command='+ command;

$('#cc').html('command questioning...'); 
$.ajax({
type: 'POST',
url: 'command.php',
cache: false,
data: dataString, 
success: function(sonuc) {
$('#cc').html(sonuc);
}
});
document.consoleform.reset();
}

