function dp_ImageViewer(strUrl, intWidth, intHeight)
  	{  
	window.open(strUrl, 'ImagesView', 'width=' + intWidth + ',height=' + intHeight + ',scrollbars=no,resizable=no,status=no');
	}

		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function setFooter() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentHeight = document.getElementById('right_bar').offsetHeight;
					if (document.getElementById('navi_menu')) {
					
						var menuHeight = document.getElementById('navi_menu').offsetHeight + 15;
						
						} else {
						
						var menuHeight = document.getElementById('left_bar').offsetHeight + 15;
						
						}
					var footerElement = document.getElementById('footer');
					var footerHeight  = footerElement.offsetHeight;
					var usedHeight = menuHeight;

					if (contentHeight > menuHeight) {
						usedHeight = contentHeight;
					}

					if (windowHeight - (usedHeight + footerHeight) < 0) {
						footerElement.style.position = 'absolute';
						footerElement.style.top = (usedHeight + 150) + 'px';
					}
					else {
						footerElement.style.position = 'absolute';
						footerElement.style.top = 700 + 'px';
					}
				}
			}
		}