As stated in topic name i have problem when clicked on picture i want it to open it in same windown.. i do understand some java code but not enough to understand how to do it in this script.. problem is only in IE 6+, in FF it works just fine

Code:
<div align="center">
<script type=text/javascript>
var pic_width=395; 
var pic_height=265; 
var button_pos=4; 
var stop_time=3000; 
var show_text=0; 
var txtcolor="000000"; 
var bgcolor="DDDDDD";
var imag=new Array();
var link=new Array();
var text=new Array();
imag[1]="images/01.jpg";
link[1]="http://www.zcool.com.cn/";
text[1]="1";
imag[2]="images/02.jpg";
link[2]="http://www.zcool.com.cn/";
text[2]="2";
imag[3]="images/03.jpg";
link[3]="http://www.zcool.com.cn/";
text[3]="3";
imag[4]="images/04.jpg";
link[4]="http://www.zcool.com.cn/";
text[4]="4";
imag[5]="images/05.jpg";
link[5]="http://www.zcool.com.cn/";
text[5]="5";
var swf_height=show_text==1?pic_height+20:pic_height;
var pics="", links="", texts="";
for(var i=1; i<imag.length; i++){
	pics=pics+("|"+imag[i]);
	links=links+("|"+link[i]);
	texts=texts+("|"+text[i]);
}
pics=pics.substring(1);
links=links.substring(1);
texts=texts.substring(1);
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="flash/focus.swf">');
document.write('<param name="quality" value="high"><param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'">');
document.write('<embed src="flash/focus.swf" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'" quality="high" width="'+ pic_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script>
<br><br>:<a href="http://www.zcool.com.cn/" target="_blank">(ZCOOL)</a>
</div>
thx for help