<%function msgbox(str,url)%>
<script language=javascript>
alert("<%=str%>");
var url="<%=url%>";
if(url!="")
{
if(url=="back")
window.location.href="javascript:history.back(1)"
else if(url=="close")
{
window.opener = 'xxx';
window.close();
}
else
window.location.href=url;
}
</script>
<%end function%>