function openNewWindow(URL) {
	// sample call: <a href="comments.php" onclick="openNewWindow(this.href); return false;"style="border: 1px solid #900">View Comments</a>
	popupWin = window.open(URL,'open_window','toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=600, height=600')
}

function popup(theURL, width, height) {
	if (self.screen){ 
  	sw = screen.width
    sh = screen.height
		w = width
		h = height
		cx = (.5*sw) - (w*.5)
		cy = (.5*sh) - (h*.5)
    var size = 'scrollbars=no, resizable=no, status=no, width='+w+','+'height='+h+',' + 'screenX=' +cx+','+'screenY='+cy+','+'left='+cx+','+'top='+cy
  }
	Pop=window.open(theURL,'',size);
}