function displayNewWindow(thisObj, isPDF)
{
	var d=new Date();

	var windowName = "offworld";
	if(window.name == windowName)
		windowName = "offworld" + d.getHours() + d.getMinutes() + d.getSeconds();

	if(thisObj)
	{
		if(isPDF) {
			newwindow = window.open(thisObj.href,windowName,'top=100,left=100,width=630,height=500,directories=no,resizable=yes,status=yes,menubar=yes,location=no,scrollbars=yes,toolbar=no'); 
		}
		else
			newwindow = window.open(thisObj.href,windowName,'top=100,left=100,width=688,height=535,directories=yes,resizable=yes,status=yes,menubar=yes,location=yes,scrollbars=yes,toolbar=no'); 
	}

	try {
		newwindow.focus();
	} catch(err) {
		//alert(err.description);
		return false;
	}
	return false;
}

var newpdfwindow = null;
var url = "";
function courtRulesDisplayPDFWindow(thisObj)
{ 
	newpdfwindow = window.open('about:blank','pdf','top=150,left=150,width=630,height=600,directories=no,resizable=yes,status=yes,menubar=yes,location=no,scrollbars=yes,toolbar=no');
	setTimeout("openProperWindow('" + thisObj.href + "')", 100);
	//newpdfwindow.location.reload();
	return false;
}

function openProperWindow(url)
{
	newpdfwindow = window.open(url,'pdf','top=150,left=150,width=630,height=600,directories=no,resizable=yes,status=yes,menubar=yes,location=no,scrollbars=yes,toolbar=no');
}
