Location: PHPKode > projects > NetVis Module > netvis/gdwt_simulate.php
<?php
// Geographically Dispersed Work Teams simulation

	include("config.php");	
	include($baseDir . "common/_func.php");
	include($baseDir . "common/_javascript.php");
	include($baseDir . "common/_header.php");

if(!isset($submit)){
	$submit=NULL;
}

if(!isset($dataset)){
	$dataset=NULL;
}

if(!$submit || $dataset){

	include("gdwt_settings.php");
	
	$array_variables = array("error","team_checked","site_checked","persite_checked","percent_checked","dist_checked","time_checked","isolation_checked","separation_checked","overlap_checked","even_checked","normal_checked","checked_1","checked_2","checked_3","checked_4","checked_5","checked_6","checked_7","checked_8","checked_9","display_data_checked","display_stats_checked","display_parameters_checked","regression_checked","configuration_checked","hours_checked","timezone_checked","confirm");

	// register session variables for radio buttons
	for($v=0; $v<count($array_variables); $v++){
		$array_variable=$array_variables[$v];
		$array_variable_=$array_variables[$v] . "_";
		if(!isset(${$array_variable_})){
			${$array_variable_}=FALSE;
		}
		if(!isset(${$array_variable})){
			${$array_variable}=FALSE;
		}
		session_register("${$array_variable_}");
		${$array_variable_}=${$array_variable};
	}
}

// if radio button was selected before, then leave selected

$team_checked=($plot_team_=="on") ? "checked":"";
$site_checked=($plot_site_=="on") ? "checked":"";
$persite_checked=($plot_persite_=="on") ? "checked":"";
$percent_checked=($plot_percent_=="on") ? "checked":"";
$dist_checked=($plot_dist_=="on") ? "checked":"";
$time_checked=($plot_time_=="on") ? "checked":"";
$isolation_checked=($plot_isolation_=="on") ? "checked":"";
$separation_checked=($plot_separation_=="on") ? "checked":"";
$overlap_checked=($plot_overlap_=="on") ? "checked":"";
$even_checked=($even_==1) ? "checked":"";
$normal_checked=($even_==0) ? "checked":"";
$checked_1=($start_==1) ? "checked":"";
$checked_2=($start_==2) ? "checked":"";
$checked_3=($start_==3) ? "checked":"";
$checked_4=($start_==4) ? "checked":"";
$checked_5=($start_==5) ? "checked":"";
$checked_6=($start_==6) ? "checked":"";
$checked_7=($start_==7) ? "checked":"";
$checked_8=($start_==8) ? "checked":"";
$checked_9=($start_==9) ? "checked":"";
$display_data_checked=($display_data_=="on") ? "checked":"";
$display_stats_checked=($display_stats_=="on") ? "checked":"";
$display_parameters_checked=($display_parameters_=="on") ? "checked":"";
$regression_checked=($regression_=="on") ? "checked":"";
$configuration_checked=($configuration_=="on") ? "checked":"";
$hours_checked=($use_timezone_=="0") ? "checked":"";
$timezone_checked=($use_timezone_=="1") ? "checked":"";

echo "<center>";
echo " <table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bordercolor=#006699>";
echo "<form>";
echo "<tr bgcolor=\"#CCCCCC\" align=\"center\">";
echo " <td nowrap bgcolor=\"#FFFFFF\" height=\"22\">";
echo " <div align=\"left\"><a href=\"logout.php\"><font color=#006699>Home</font></a>";
echo " &gt; <a href=\"gdwt.php\"><font color=#006699>Geographic Dispersion</font></a> ";
echo "<select onChange=\"if(this.selectedIndex!=0) self.location=this.options[this.selectedIndex].value\">";
echo "<option value=\"gdwt_simulate.php\">select setting";
echo "<option value=\"gdwt_simulate.php?dataset=default\">default";
echo "<option value=\"gdwt_simulate.php?dataset=182\">N=182";
echo "<option value=\"gdwt_simulate.php?dataset=115\">N=115";
echo "<option value=\"gdwt_simulate.php?dataset=27\">N=27";
echo "<option value=\"gdwt_simulate.php?dataset=4sites\">4 sites";
echo "<option value=\"gdwt_simulate.php?dataset=12sites\">12 sites";
echo "</select>";
echo " &gt; Simulation ";
echo "	(<a href='javascript:wopen(\"popup.php?label=readme\",\"readme\",\"scrollbars=yes,resizable=yes,width=550,height=550\");'><font color=#006699>readme</a></font>)</div>";
echo " </td>";
echo " <td nowrap bgcolor=\"#FFFFFF\" height=\"22\">";
echo " <div align=\"right\">";

	include($baseDir . "common/_options.php");

echo "	</div>";
echo " </td>";
echo "</tr>";
echo "</form>";
echo "</table>";

// display errors depending on missing values or illogical values
if(!isset($error_)){
	$error_=FALSE;
}
if($error_<101 && $error_!=0){
	echo "<font color=#ff0000><center>Missing Value</center></font>";
}elseif($error_==118){
	echo "<font color=#ff0000><center>No configurations possible</center></font>";
}elseif($error_>100 && $error_!=0){
	echo "<font color=#ff0000><center>Illogical Value</center></font>";
}
echo " <table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bordercolor=#006699>";
echo "<form action=\"gdwt_results.php\" method=\"post\" name=\"form\">";
echo "<tr> </tr>";
echo " <tr>";

// javascript pop-up labels
echo "	<td bgcolor=#CCCCCC align=\"center\"><a href='javascript:wopen(\"popup.php?label=start\",\"start\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Start</font></a><td>";
echo "	<td bgcolor=#DDDDDD align=\"center\"><a href='javascript:wopen(\"popup.php?label=plot\",\"plot\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Plot</font></a><td>";
echo "	<td bgcolor=#006699 align=\"center\"><a href='javascript:wopen(\"popup.php?label=factor\",\"factor\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#FFFFFF\">Factor</font></font></a><td>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><a href='javascript:wopen(\"popup.php?label=mean\",\"mean\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Mean</font></a> &nbsp; &nbsp;<a href='javascript:wopen(\"popup.php?label=stdev\",\"stdev\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">StDev</font></a><td>";
echo "	<td bgcolor=#DDDDDD align=\"left\"><a href='javascript:wopen(\"popup.php?label=minimum\",\"minimum\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Minimum</font></a> &nbsp; &nbsp;<a href='javascript:wopen(\"popup.php?label=maximum\",\"maximum\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Maximum</font></a> &nbsp; &nbsp;";

echo " <td>";
echo "</td></tr>";

// row for optional or required
echo " <tr>";
echo "	<td bgcolor=#CCCCCC>&nbsp;<td>";
echo "	<td bgcolor=#DDDDDD>&nbsp;<td>";
echo "	<td bgcolor=#006699>&nbsp;<td>";
echo "	<td bgcolor=#CCCCCC align=\"center\">(optional) (optional)<td>";
echo "	<td bgcolor=#DDDDDD align=\"left\">(required) &nbsp; (required)<td>";
echo "	</td></tr>";

// row for team
echo " <tr>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"radio\" name=\"start\" value=1 $checked_1><td>";
echo "	<td bgcolor=#DDDDDD align=\"center\"><input type=\"checkbox\" name=\"plot_team\" $team_checked><td>";
echo "	<td bgcolor=#006699 align=\"left\"><a href='javascript:wopen(\"popup.php?label=size\",\"size\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#FFFFFF\">Size of team</font></a><td>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"text\" name=\"team_mean\" size=\"5\" value=\"$team_mean_\">"; 
echo "	<input type=\"text\" name=\"team_std\" size=\"5\" value=\"$team_std_\"><td>"; 
echo "	<td bgcolor=#DDDDDD align=\"left\"><input type=\"text\" name=\"team_min\" size=\"5\" value=\"$team_min_\">"; 
if($error_=="1" || $error_=="101"){echo "<font color=#ff0000>*</font>";}
echo " to ";
if($error_=="2" || $error_=="101" || $error_=="114" || $error_=="115"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"team_max\" size=\"5\" value=\"$team_max_\"> members<td>";
echo " <td></tr>";

// row for site
echo " <tr>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"radio\" name=\"start\" value=2 $checked_2><td>";
echo "	<td bgcolor=#DDDDDD align=\"center\"><input type=\"checkbox\" name=\"plot_site\" $site_checked><td>";
echo "	<td bgcolor=#006699 align=\"left\"><a href='javascript:wopen(\"popup.php?label=sites\",\"sites\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#FFFFFF\">Number of sites</font></a><td>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"text\" name=\"site_mean\" size=\"5\" value=\"$site_mean_\">"; 
echo "	<input type=\"text\" name=\"site_std\" size=\"5\" value=\"$site_std_\"><td>"; 
echo "	<td bgcolor=#DDDDDD align=\"left\"><input type=\"text\" name=\"site_min\" size=\"5\" value=\"$site_min_\">";
if($error_=="3" || $error_=="102"){echo "<font color=#ff0000>*</font>";}
echo " to ";
if($error_=="4" || $error_=="102" || $error_=="114"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"site_max\" size=\"5\" value=\"$site_max_\"> sites<td>";
echo " </td></tr>";

// row for persite
echo " <tr>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"radio\" name=\"start\" value=3 $checked_3><td>";
echo "	<td bgcolor=#DDDDDD align=\"center\"><input type=\"checkbox\" name=\"plot_persite\" $persite_checked><td>";
echo "	<td bgcolor=#006699 align=\"left\"><a href='javascript:wopen(\"popup.php?label=persite\",\"persite\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#FFFFFF\">Number of members per site</font></a><td>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"text\" name=\"persite_mean\" size=\"5\" value=\"$persite_mean_\">"; 
echo "	<input type=\"text\" name=\"persite_std\" size=\"5\" value=\"$persite_std_\"><td>"; 
echo "	<td bgcolor=#DDDDDD align=\"left\"><input type=\"text\" name=\"persite_min\" size=\"5\" value=\"$persite_min_\"> ";
if($error_=="5" || $error_=="103"){echo "<font color=#ff0000>*</font>";}
echo " to ";
if($error_=="6" || $error_=="103" || $error_=="115"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"persite_max\" size=\"5\" value=\"$persite_max_\"> members<td>";
echo " </td></tr>";

// row for percent
echo " <tr>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"radio\" name=\"start\" value=4 $checked_4><td>";
echo "	<td bgcolor=#DDDDDD align=\"center\"><input type=\"checkbox\" name=\"plot_percent\" $percent_checked><td>";
echo "	<td bgcolor=#006699 align=\"left\"><a href='javascript:wopen(\"popup.php?label=percent\",\"percent\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#FFFFFF\">Percent of members at any one site</font></a><td>";
echo "	<td bgcolor=#CCCCCC align=\"left\">&nbsp;"; 
echo "	<td>"; 
echo "<td bgcolor=#DDDDDD align=\"left\"><input type=\"text\" name=\"percent_min\" size=\"5\" value=\"$percent_min_\">";
if($error_=="7" || $error_=="104"){echo "<font color=#ff0000>*</font>";}
echo " to ";
if($error_=="8" || $error_=="104"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"percent_max\" size=\"5\" value=\"$percent_max_\"> %<td>";
echo " </td></tr>";

// row for dist
echo " <tr>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"radio\" name=\"start\" value=5 $checked_5><td>";
echo "	<td bgcolor=#DDDDDD align=\"center\"><input type=\"checkbox\" name=\"plot_dist\" $dist_checked><td>";
echo "	<td bgcolor=#006699 align=\"left\"><a href='javascript:wopen(\"popup.php?label=dist\",\"dist\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\"><font color=\"#FFFFFF\">Distance between sites</font></a><td>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"text\" name=\"dist_mean\" size=\"5\" value=\"$dist_mean_\">"; 
echo "	<input type=\"text\" name=\"dist_std\" size=\"5\" value=\"$dist_std_\"><td>"; 
echo "	<td bgcolor=#DDDDDD align=\"left\"><input type=\"text\" name=\"dist_min\" size=\"5\" value=\"$dist_min_\"> ";
if($error_=="9" || $error_=="105"){echo "<font color=#ff0000>*</font>";}
echo " to ";
if($error_=="10" || $error_=="105" || $error_=="117"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"dist_max\" size=\"5\" value=\"$dist_max_\"> miles<td>";
echo " </td></tr>";

// row for time
echo " <tr>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"radio\" name=\"start\" value=6 $checked_6><td>";
echo "	<td bgcolor=#DDDDDD align=\"center\"><input type=\"checkbox\" name=\"plot_time\" $time_checked><td>";
echo "	<td bgcolor=#006699 align=\"left\"><a href='javascript:wopen(\"popup.php?label=time\",\"time\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\"><font color=\"#FFFFFF\">Timezone overlap between sites</font></a><td>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"text\" name=\"time_mean\" size=\"5\" value=\"$time_mean_\">"; 
echo "	<input type=\"text\" name=\"time_std\" size=\"5\" value=\"$time_std_\"><td>"; 
echo "	<td bgcolor=#DDDDDD align=\"left\"><input type=\"text\" name=\"time_min\" size=\"5\" value=\"$time_min_\"> ";
if($error_=="11" || $error_=="106"){echo "<font color=#ff0000>*</font>";}
echo " to ";
if($error_=="12" || $error_=="106" || $error_=="116"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"time_max\" size=\"5\" value=\"$time_max_\"><input type=\"radio\" name=\"use_timezone\" value=\"0\" $hours_checked> hours<td>";
echo " </td></tr>";

// row for workday
echo " <tr>";
echo "	<td bgcolor=#CCCCCC align=\"center\">&nbsp;<td>";
echo "	<td bgcolor=#DDDDDD align=\"center\">&nbsp;<td>";
echo "	<td bgcolor=#006699 align=\"left\">&nbsp;";
echo "	<font color=\"#FFFFFF\">(based on a ";
if($error_=="13" || $error_=="107" || $error_=="116"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"workday\" size=3 value=\"$workday_\"> ";
echo "hour <a href='javascript:wopen(\"popup.php?label=workday\",\"workday\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\"><font color=\"#FFFFFF\">workday</font></a><font color=\"#FFFFFF\">)</font><td>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"text\" name=\"timezone_mean\" size=\"5\" value=\"$timezone_mean_\"> ";
echo "<input type=\"text\" name=\"timezone_std\" size=\"5\" value=\"$timezone_std_\">"; 
echo "	<td>"; 
echo "	<td bgcolor=#DDDDDD align=\"left\"><input type=\"text\" name=\"timezone_min\" size=\"5\" value=\"$timezone_min_\"> ";
if($error_=="14" || $error_=="108"){echo "<font color=#ff0000>*</font>";}
echo " to ";
if($error_=="15" || $error_=="108"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"timezone_max\" size=\"5\" value=\"$timezone_max_\"><input type=\"radio\" name=\"use_timezone\" value=\"1\" $timezone_checked> <a href='javascript:wopen(\"popup.php?label=utc_code\",\"utc_code\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">UTC code</font></a><td>";
echo "	<td>"; 
echo " </td></tr>";

// row for isolation
echo " <tr>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"radio\" name=\"start\" value=7 $checked_7><td>";
echo "	<td bgcolor=#DDDDDD align=\"center\"><input type=\"checkbox\" name=\"plot_isolation\" $isolation_checked><td>";
echo "	<td bgcolor=#006699 align=\"left\"><a href='javascript:wopen(\"popup.php?label=isolation_index\",\"isolation_index\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#FFFFFF\">Isolation index</font></a><td>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"text\" name=\"isolation_mean\" size=\"5\" value=\"$isolation_mean_\"> ";
echo "<input type=\"text\" name=\"isolation_std\" size=\"5\" value=\"$isolation_std_\">"; 
echo "	<td>"; 
echo "	<td bgcolor=#DDDDDD align=\"left\"><input type=\"text\" name=\"isolation_min\" size=\"5\" value=\"$isolation_min_\"> ";
if($error_=="16" || $error_=="109"){echo "<font color=#ff0000>*</font>";}
echo " to ";
if($error_=="17" || $error_=="109"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"isolation_max\" size=\"5\" value=\"$isolation_max_\">&nbsp;<td>";
echo " </td></tr>";

// row for separation
echo " <tr>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"radio\" name=\"start\" value=8 $checked_8><td>";
echo "	<td bgcolor=#DDDDDD align=\"center\"><input type=\"checkbox\" name=\"plot_separation\" $separation_checked><td>";
echo "	<td bgcolor=#006699 align=\"left\"><a href='javascript:wopen(\"popup.php?label=separation_index\",\"separation_index\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#FFFFFF\">Separation index</font></a><td>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"text\" name=\"separation_mean\" size=\"5\" value=\"$separation_mean_\"> ";
echo "<input type=\"text\" name=\"separation_std\" size=\"5\" value=\"$separation_std_\">"; 
echo "	<td>"; 
echo "	<td bgcolor=#DDDDDD align=\"left\"><input type=\"text\" name=\"separation_min\" size=\"5\" value=\"$separation_min_\"> ";
if($error_=="18" || $error_=="110"){echo "<font color=#ff0000>*</font>";}
echo " to ";
if($error_=="19" || $error_=="110" || $error_=="117"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"separation_max\" size=\"5\" value=\"$separation_max_\">&nbsp;<td>";
echo " </td></tr>";

// row for overlap
echo " <tr>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"radio\" name=\"start\" value=9 $checked_9><td>";
echo "	<td bgcolor=#DDDDDD align=\"center\"><input type=\"checkbox\" name=\"plot_overlap\" $overlap_checked><td>";
echo "	<td bgcolor=#006699 align=\"left\"><a href='javascript:wopen(\"popup.php?label=overlap_index\",\"overlap_index\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#FFFFFF\">Overlap index</font></a><td>";
echo "	<td bgcolor=#CCCCCC align=\"center\"><input type=\"text\" name=\"overlap_mean\" size=\"5\" value=\"$overlap_mean_\"> ";
echo "<input type=\"text\" name=\"overlap_std\" size=\"5\" value=\"$overlap_std_\">"; 
echo "	<td>"; 
echo "	<td bgcolor=#DDDDDD align=\"left\"><input type=\"text\" name=\"overlap_min\" size=\"5\" value=\"$overlap_min_\"> ";
if($error_=="20" || $error_=="111"){echo "<font color=#ff0000>*</font>";}
echo " to ";
if($error_=="21" || $error_=="111"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"overlap_max\" size=\"5\" value=\"$overlap_max_\">&nbsp;<td>";
echo " <td></tr>";
echo "<tr></tr>";

// row for random draws
echo " <tr>";
echo "	<td bgcolor=#FFFFFF>&nbsp;<td>";
echo "	<td bgcolor=#FFFFFF>&nbsp;<td>";
echo "	<td bgcolor=#FFFFFF align=\"left\"><font color=\"#000000\">Number of <a href='javascript:wopen(\"popup.php?label=random_draws\",\"random_draws\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">random draws</a></font> in simulation:<td>";
echo "	<td bgcolor=#FFFFFF align=\"center\"><input type=\"text\" name=\"num_draws\" size=7 value=\"$num_draws_\">"; if($error_=="22" || $error_=="112"){echo "<font color=#ff0000>*</font>";}
echo " draws with <td>";
echo " <td bgcolor=#FFFFFF align=\"center\">";
if($error_=="23" || $error_=="113"){echo "<font color=#ff0000>*</font>";}
echo "	<input type=\"text\" name=\"num_seed\" size=3 value=\"$num_seed_\"> as <a href='javascript:wopen(\"popup.php?label=seed\",\"seed\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">seed</a></font><td>";
echo " </td></tr>";

// row for comment
echo " <tr>";
echo "	<td bgcolor=#FFFFFF><td>";
echo "	<td bgcolor=#FFFFFF><td>";
echo "	<td bgcolor=#FFFFFF valign=center><a href='javascript:wopen(\"popup.php?label=comment\",\"comment\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Comment</a></font>:<textarea wrap=\"VIRTUAL\" name=\"comment\" cols=\"15\" rows=\"2\">$comment_</textarea><td>"; 
echo "	<td bgcolor=#FFFFFF align=\"left\"><input type=\"radio\" name=\"even\" value=\"0\" $normal_checked><a href='javascript:wopen(\"popup.php?label=normal_distribution\",\"normal_distribution\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Normal Distribution</a></font><br><input type=\"radio\" name=\"even\" value=\"1\" $even_checked><a href='javascript:wopen(\"popup.php?label=even_distribution\",\"even_distribution\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Even Distribution</a></font><td>";
$datetime = date("G:i:s m-d-Y");
echo " <input type=\"hidden\" name=\"datetime\" VALUE=\"$datetime\">";
echo "	<td><center><input type=\"checkbox\" name=\"display_data\" $display_data_checked ><a href='javascript:wopen(\"popup.php?label=display_data\",\"display_data\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Display Data</a></font><br><input type=\"checkbox\" name=\"display_stats\" $display_stats_checked ><a href='javascript:wopen(\"popup.php?label=display_stats\",\"display_stats\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Display Stats</a></font></center><td>";
echo " </td></tr>";

// row for regression
echo "<tr>";
echo "	<td>&nbsp;<td>";
echo "	<td>&nbsp;<td>";
echo "	<td><center><input type=\"checkbox\" name=\"regression\" $regression_checked ><a href='javascript:wopen(\"popup.php?label=regression_analysis\",\"regression_analysis\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Regression Analysis</a></font><br>";
echo "<input type=\"checkbox\" name=\"configuration\" $configuration_checked ><a href='javascript:wopen(\"popup.php?label=configuration_analysis\",\"regression_analysis\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Configuration Analysis</a>";
echo "</center><td>";
echo "	<td align=\"right\"><a href='javascript:wopen(\"popup.php?label=comm_rate_decay\",\"comm_rate_decay\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Comm Rate</a></font> = ";
if($error_=="24" || $error_=="118"){echo "<font color=#ff0000>*</font>";}
echo "<input type=\"text\" name=\"comm_rate_decay\" size=5 value=\"$comm_rate_decay_\"><br>";
echo "<a href='javascript:wopen(\"popup.php?label=comm_rate_dev\",\"comm_rate_dev\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Comm Dev</font></a> = ";
echo "<input type=\"text\" name=\"comm_rate_dev\" size=5 value=\"$comm_rate_dev_\"><br>";
echo "<a href='javascript:wopen(\"popup.php?label=comm_rate_min\",\"comm_rate_min\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Comm Min</font></a> = ";
echo "<input type=\"text\" name=\"comm_rate_min\" size=5 value=\"$comm_rate_min_\"><td>";
echo "	<td bgcolor=#FFFFFF align=\"center\"><input type=\"hidden\" name=\"clear\" value=\"1\">";
echo "	<input type=\"checkbox\" name=\"display_parameters\" $display_parameters_checked ><a href='javascript:wopen(\"popup.php?label=display_parameters\",\"display_parameters\",\"scrollbars=no,resizable=yes,width=250,height=200\");'><font color=\"#000000\">Display Parameters</a></font><br><br><input type=submit name=submit value=\"Run Simulation\">";
echo "<td>";
echo " </td></tr>";
echo "</form>";
echo "</table>";
$error_=0;
	include($baseDir . "common/_footer.php");
?>
Return current item: NetVis Module