<patTemplate:tmpl name="save_creditcard">
<html>
<head>
<script language="JavaScript"><!--
closeWindows();
function closeWindows()
{
window.open('','_parent','');
window.close();
}
//--></script>
</head>
<body>
...
</body>
</html>
</patTemplate:tmpl>