function invest_popup(url){
	if(url.toLowerCase().indexOf(".pdf")>0||url.toLowerCase().indexOf(".exe")>0||url.toLowerCase().indexOf(".zip")>0||url.toLowerCase().indexOf(".doc")>0)
	{
		window.open(url);
	} else {
		var swidth=600;
		var sheight=400;
		var stop=screen.height-sheight-60;
		var sleft=screen.width-swidth-20;
		var my_popup_window = window.open('','popupwn','width='+swidth+',height='+sheight+',top='+stop+',left='+sleft+',resizable=yes,scrollbars=yes');
		my_popup_window.document.open();
		my_popup_window.document.write('<html><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=GB2312\"><TITLE>上海证券交易所投资者教育网站</TITLE></HEAD><frameset rows=\"83,*,40\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\">');
		my_popup_window.document.write('<frame name=\"header\" src=\"/sseportal/newedu/mode/pop_head.html\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" noresize>');
		
		my_popup_window.document.write('<frame name=\"content\" src=\"'+url+'\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"auto\" frameborder=\"0\"  noresize>');
		
		my_popup_window.document.write('<frame name=\"footer\" src=\"/sseportal/newedu/mode/pop_footer.html\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" noresize>');
		my_popup_window.document.write('</frameset>');
		my_popup_window.document.write('<body>');
		my_popup_window.document.write('</body></html>');
		my_popup_window.document.close();
		my_popup_window.focus();
	}
}



