<%
sub preview_form(pfrm,pword)
%>
<form name=pre_frm action='preview.asp' method=post target='preview'>
<input type=hidden name=p_topic value=''>
<input type=hidden name=p_word value=''>
</form>
<script language=javascript>
<!--
function preview_type()
{
  document.pre_frm.p_word.value=document.<%response.write pfrm%>.<%response.write pword%>.value;
  open_win('about:blank','preview',600,500,'yes');
  document.pre_frm.submit();
}
-->
</script>
<%
end sub

function preview_b(pfrm,pword,pv)
  preview_b="<input type=button onclick=""javascript:preview_type('"&pfrm&"','"&pword&"');"" value='"&pv&"'>"
end function
%>