RedDot release page without plugin but in the page

Today I had the issue to release a page without able to access the file system and creating a plugin for that which would be nicer.  But it also works inside the content template class. it is no ideal, but it works and reloads the page.

<script language="javascript">
function release_page(){
location.href='ioRD.asp?Action=ReleasePage&EditLinkGuid=<%PageGUID%>';
location.reload();
return true;
}
</script>

<a href="#" onclick="release_page();"><img border="0" src="Icons/Release.gif"></a> release snippet