function sse_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=430;
		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>Shanghai Stock Exchange</TITLE></HEAD><frameset rows=\"83,*,40\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\">');
		my_popup_window.document.write('<frame name=\"header\" src=\"/sseportal/en/modefile/all/pop_head_en.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/en/modefile/all/pop_footer_en.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();
	}
}

function unit_popup(name,url){
	unit_popup_window=window.open(url,name,'width=600,height=400,scrollbars=yes');
	unit_popup_window=focus();
}

function unit_popup_return(url){
	opener.location=url;
	opener.focus();
}

function sse_popup_en(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=430;
		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>Shanghai Stock Exchange</TITLE></HEAD><frameset rows=\"83,*,40\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\">');
		my_popup_window.document.write('<frame name=\"header\" src=\"/sseportal/en/mode/mode5/pop_head_en.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/en/mode/mode5/pop_footer_en.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();
	}
}