	function openMyPaper(pid,lang){
		if(lang=="sv") {
	  	alert("Ett nytt fönster kommer att öppnas för att visa en ny publikation.")
	  } else {
	  	alert("A new window will open to show the new publication.")
	  }
		var res_height,res_width,resOK,errorUrl,cookieOK
		resOK = false;
		res_height = screen.height;
		res_width = screen.width;
		if(res_width >= 1024 && res_height >= 768)
			resOK = true;
		
		if(resOK != true){
				window.open('show.asp?&action=maximize&pid='+pid,'mypaper'+pid,'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
		} else {
			if(screen.width==1024) {
				window.open('show.asp?action=maximize&pid='+pid,'mypaper'+pid,'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
			} else {
				window.open('show.asp?pid='+pid,'mypaper'+pid,'width=1020,height=745,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
			}
		}
}
