function SubmitForm(form)
{
	form.action='/servlet/JSCRun' ;
	//alert("submit !") ;
	form.submit() ;
}

function RunForm(form)
{
	form.action='JSCRun' ;
	//alert("submit !") ;
	form.submit() ;
	
}

function RunFormAlt(form)
{
	form.action='JSCRun' ;
	//alert("submit !") ;
	form.submit ;
	
}
function RunForm2(theForm)
{
	theForm.action ='RecordModel';
	//theForm.SQL.value = "PersistentInfo0.CellData";
	//theForm.PersistentInfos.value = "PersistentInfo0.CellData";
	theForm.submit(); 
}

function RunMailForm(theForm)
{
	theForm.action ='/servlet/JSCMailServlet';
	theForm.submit() ;
}

function SetFormAction(theForm)
{
	theForm.action='/servlet/JSCRun' ;
}

function WriteButtonPrev(strValue)
{
//<input type="button" value="Previous 10 records" onClick="RunForm2()" >
 var nStart = Number(strValue);
 if (nStart > 1)
 {
	var strText = '<input type="button" value="Previous Page" onClick="TestFormPrev()" >';
   this.document.writeln(strText);
 }
}
function WriteButtonNext(strValue)
{
//<input type="button" value="Next 10 records"  onClick="RunForm()">

 var nStart = Number(strValue); // ca n'est pas le bon. Il faut compter sur l'objet table de form!!!
 theForm = this.document.FNextPrev; 
	with(this.document)
	{
	 var nTableRows = 10;
	 //if (_ie == true)
	 // nTableRows  = DataTable.rows.length - 1; // only MSIE supports this!
	 //else
	  nTableRows = anchors.length;  //compatible for both Browsers
 
	 var nStep = Number(theForm.StepRow.value );

	 if (nStart >= nStep && nTableRows >= nStep)
	 {
	  var strText = '<input type="button" value="Next Page"  onClick="TestFormNextPrev()">';
	  writeln(strText);
	 }
	}
}
