I am building a page up using some javascript where basically on select of a checkbox the page automatically refreshes and eventually the page will load the results, not quite there on that bit yet.

But what I want to see happening if its possible is that on click of the checkbox to stop them quickly selecting another checkbox before that one has loaded it would be good to have a faded out screen appear to cover the site until the site has loaded.

here is my full code:

Code:
<?
session_start();
error_reporting(E_ALL);
ini_set('display_errors','On');
include("config.php");
?>
<?
$url = $_SERVER['REQUEST_URI'];
print "<pre>";

print $url;

$url_parsed = parse_url($url);
//print_r($url_parsed);

parse_str($url_parsed['query'], $url_parts);
print_r($url_parts);

print "</pre>";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="JavaScript">
function checkRefresh(value)
{

	document.form1.submit();
	
}
</script>

<title></title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/style.css" rel="stylesheet" type= "text/css" />

<meta name="keywords" content=""/>

<meta name="description" content=""/>

<meta name="robots" content="all" />
</head>

<body>
<div id="wrapper">
<?
if (is_array($_GET['regions'])) {
     foreach($_GET['regions'] as $regions) {
       //echo $regions;
     }
}
?>
<form name="form1"> 
<?php   
$r=mysql_query("select Id_Rsrt, Nom_Rsrt, IdCntry_Rsrt, Id_show from tbl_resorts where (IdCntry_Rsrt='7') and (Id_show='1') order by Nom_Rsrt ASC");  
while($q=mysql_fetch_assoc($r)){ ?> 
<input type="checkbox" name="regions[]" value="<?=$q['Id_Rsrt']?>" onClick="javascript:checkRefresh()" <?=((in_array($q['Id_Rsrt'], $_REQUEST['regions'])) ? "checked=\"checked\"" : "")?> class="inline" /><?=$q['Nom_Rsrt']?><br/> 
<? } ?> 
</form> 

<div id='result_table'></div>

</div>
</body>
</html>
I htink I understand that that process does its magic inside this function:

Code:
function checkRefresh(value)
{

	document.form1.submit();
	
}
But looking for some tips of what to do.

Cheers