
	$#refkey#s=explode(',',SQET('#refkey#s'));
	
	foreach ($#refkey#s as $#refkey#){
		if (!is_numeric($#refkey#)) continue;
		gsguard($#refkey#,'#reftable#','#refkey#');
		$query="insert into #subtable#(#masterkey#,#refkey#) values ($#masterkey#,?)";
		sql_prep($query,$db,$#refkey#);	
	}
