function openChildWin () {
	var args = arguments;
	var op = (args.length == 4) ? "" : args [4];
	if ((navigator.appVersion.indexOf ("Mac", 0) != -1) && (navigator.appName.indexOf ("Mic", 0) != -1)) {
		args [2] -= 15;
		args [3] -= 15;
	}
	var w = window.open (args [0], args [1], "width=" + args [2] + ",height=" + args [3] + "," + op);
	if (document.images) w.focus ();
	}
	function closeChildWin () {
	
	
	window.self.close ();
}


// {^
var newWindow = null;
var tools="";

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}
function printWin(url, strWidth, strHeight){

	closeWin();
	tools = "resizable,toolbar=yes,location=yes,menubar=yes,status=yes,scrollbars=yes,width="+strWidth+",height="+strHeight;
	newWindow = window.open(url+'?value='+location.pathname, 'forprint', tools);
	newWindow.focus();
}
