﻿var browser = navigator.appName;
var b_version = navigator.appVersion;
var version = parseFloat(b_version);

var toolwin
function openToolWindow(which, width, height) {
which = which.replace("#","%23")
	if (!toolwin || toolwin.closed) {
		 if (navigator.appVersion.charAt(0) == "3") {
        xStr = "width=" + width + ",height=" + height;
     } else {
        xStr = "top=0,width=" + width + ",height=" + height;
		 }
	  
		 toolwin=window.open(which,"toolwin",xStr);
  } else {
     toolwin.location = which;
     toolwin.focus();
  }
}

function popupWindow(url, w, h, scroll){
	window.open(url, "MyPage", "location=1, width="+w+"px, height="+h+"px, scrollbars="+scroll);
	}



function openWindow(id){

	if (browser == "Microsoft Internet Explorer"){
//		document.getElementById('body').filters.item("DXImageTransform.Microsoft.Alpha").opacity=50;
//		document.getElementById('body').filters.item("DXImageTransform.Microsoft.Blur").pixelRadius=1;		

		}
	if (browser == "Netscape"){
		document.getElementById('body').style.opacity = .5;
		}

		document.getElementById(id).style.display = 'block';
		document.getElementById(id).style.marginTop = '25%';
		document.getElementById(id).style.marginLeft = '25%';
		document.getElementById(id).style.marginRight = '30%';
}

function closeWindow(id){
	
	if (browser == "Microsoft Internet Explorer"){
//		document.getElementById('body').filters.item("DXImageTransform.Microsoft.Alpha").opacity=100;
		}

	if (browser == "Netscape"){
		document.getElementById('body').style.opacity = 1;
		}

	document.getElementById(id).style.display = 'none';
}