a:2:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:11:"supref_form";s:4:"nome";s:5:"go_to";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:394:"//this should work but it doesn't
//echo [var_code];
$page_sql = "SELECT page FROM (SELECT @rownr := @rownr + 1 as page, code
								FROM veratex2.supref, (SELECT @rownr := 0) r 
								Order by code) tab1 
			WHERE code = '[var_code]'";
sc_lookup(rs,$page_sql);
if(isset({rs[0][0]}) && {rs[0][0]} > 0)
{
	[var_code] = '';
	sc_ajax_javascript('nm_navpage',array({rs[0][0]},'P'));
}";}i:1;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:11:"supref_form";s:4:"nome";s:9:"onLoadAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:106:"//cant get this to work
//if([var_code]<>'')
//{
//	go_to(); // create a PHP-method with this name
//}";}}