function link_record(rs_link, rs_code)
{
	rs_link = replaceString("&","_38_",rs_link);
	document.location.href = "/public/quick_record.php?code="+rs_code+"&urlink="+rs_link;
	return false;
}
function replaceString(oldS,newS,fullS)
{// Replaces oldS with newS in the string fullS
   for (var i=0; i<fullS.length; i++)
	 {
	    if (fullS.substring(i,i+oldS.length) == oldS)
			{
			   fullS = fullS.substring(0,i)+newS+fullS.substring(i+oldS.length,fullS.length);
			}
   }
  return fullS;
}
