<?php
	//connection
	include("connection.php");
	include ("frames_header.php");

if ( (!isset($_SESSION["login"]))or(!isset($_SESSION["pass"])) ) {
	print "<center><strong>you need to <a href=\"login.php\">login</a> as an authorised curator to proceed.</strong></center>";
		include ("frames_footer.php"); 
		return;
	}

	echo '<center><form action="reg-region-motif-edit-position-results.php" method="post" name="form1" target="_self">';
	
	$begin=$_GET["begin"];
	$stop=$_GET["stop"];
	$id = $_GET["id"];
	
	//$motif=$_GET["motif"];
	$promoter=$_GET["promoter"];
	//$orientation=$_GET["orientation"];
	//$update=$_GET["update"];

		
	//print "<input name=\"begin\" type=\"hidden\" value=\"$begin\">";
	//print "<input name=\"stop\" type=\"hidden\" value=\"$stop\">";
	print "<input name=\"promoter\" type=\"hidden\" value=\"$promoter\">";	
	//print "<input name=\"motif\" type=\"hidden\" value=\"$motif\">";
	//print "<input name=\"orientation\" type=\"hidden\" value=\"$orientation\">";
	//print "<input name=\"update\" type=\"hidden\" value=\"$update\">";
	
	print "<input name=\"id\" type=\"hidden\" value=\"$id\">";
	print "<input name=\"oldbegin\" type=\"hidden\" value=\"$begin\">";
	print "<input name=\"oldstop\" type=\"hidden\" value=\"$stop\">";
		
	print "Begin: <input name=\"begin\" type=\"text\" value=\"$begin\">";
	print "&nbsp;&nbsp; End: <input name=\"stop\" type=\"text\" value=\"$stop\">";
		
	print '<br><img src="pictures/button-cur-delete.gif" title="Cancel"  onClick="javascript:self.close();">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
	print '<input name="submit" type="image" src="pictures/button-cur-validate.gif" onClick="submit" title="Ok">';
	
	echo '</form></center>';
	
	include ("frames_footer.php"); 
?>