
list#primaryfield##records#=function(#primarykey#,msg){
	if (msg!=null&&msg!=''){
		salert(msg);
		return;
	}
	ajxpgn('#primaryfield##records#_'+#primarykey#,document.appsettings.codepage+'?cmd=list#primaryfield##records#&#primarykey#='+#primarykey#);
}

del#primaryfield##record#=function(#lookupkey#,#primarykey#,gskey){
	if (!sconfirm('Are you sure you want to remove this #record#?')) return;
	ajxpgn('#primaryfield##records#_'+#primarykey#,document.appsettings.codepage+'?cmd=del#primaryfield##record#&#lookupkey#='+#lookupkey#+'&#primarykey#='+#primarykey#,0,0,null,null,null,null,gskey);		
}
