attento: non so se hai sbagliato solo qui o anche sulla tua pagina ma hai chiamato la function "downliad" richiamandola poi con "download"...

<Script Type="text/javascript">
<!--
function downliad (){
location.href="<%=link%>";
}
-->
</Script>
</head>
<body onLoad=download ()">
<%Response.Redirect "primapagina.asp"%>
</body>