	function openDatasheet(path) {	
		var w = 500, h = 500;
		
		if (document.all) {
		   w = document.body.clientWidth;
		   h = document.body.clientHeight;
		}
		
		else if (document.layers) {
		   w = window.innerWidth;
		   h = window.innerHeight;
		}
		
		var popW = 600, popH = 500;
		
		var leftPos = (w-popW)/2;
		var topPos = (h-popH)/2;
		
		
		
		window.open(path,
		          'datasheet',
		          'height=' + popH + ',width=' + popW + ',channelmode=0,dependent=0,directories=0,'
		          + 'fullscreen=0,location=1,menubar=0,resizable=1,'
		          + 'scrollbars=1,status=0,toolbar=0,' + 'top='+ topPos + ',left=' + leftPos);
	}
	
	function openWin(wName, path) {	
		
		var w = 500, h = 500;
		
		if (document.all) {
		   w = document.body.clientWidth;
		   h = document.body.clientHeight;
		}
		
		else if (document.layers) {
		   w = window.innerWidth;
		   h = window.innerHeight;
		}
		
		var popW = 600, popH = 540;
		
		var leftPos = (w-popW)/2;
		var topPos = (h-popH)/2;
		
				
		window.open(path,
		          	wName,
		          'height=' + popH + ',width=' + popW + ',channelmode=0,dependent=0,directories=0,'
		          + 'fullscreen=0,location=1,menubar=0,resizable=1,'
		          + 'scrollbars=1,status=0,toolbar=0,' + 'top='+ topPos + ',left=' + leftPos);
	}	