function openPopup(pageIndex){

	var popurl;

	if (pageIndex == 1) {
		popurl = "/do.xsp?viewType=viewinfoview&directoryType=imprint&objectType=complextype";
		var width = 400;
		var height = 500;
	}
	else {
		popurl = "/do.xsp?viewType=viewinfoview&directoryType=termsofuse&objectType=complextype";
		var width = 400;
		var height = 500;
	}
			
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	windowprops = "height=" + height + ", width=" + width + ",top=" + wint + ",left= " + winl + ",scrollbars=yes, resizable=no";
	preview = window.open(popurl, "preview", windowprops);
	preview.focus();
}

