// JavaScript Document

function OpenWindow(strURL, strTitle, intWidth, intHeight)
	{
		
		var intWindowLeft
		var intWindowTop
		var msgWindow
		
		// find out the numbers to center the screen.
		intWindowLeft = (screen.width - intWidth) / 2;
		intWindowTop = (screen.height - intHeight) / 2;
	
		msgWindow = window.open(strURL,strTitle,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + intWidth + ',height=' + intHeight + ',left=' + intWindowLeft + ',top=' + intWindowTop);	
		msgWindow.focus();
	}

	
function OpenEditWindow(strURL, strTitle, intWidth, intHeight, scrollbars)
	{
		var intWindowLeft
		var intWindowTop
		var msgWindow
		
		
		// find out the numbers to center the screen.
		intWindowLeft = (screen.width - intWidth) / 2;
		intWindowTop = (screen.height - intHeight) / 2;
		msgWindow = window.open(strURL,strTitle,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + scrollbars + ',resizable=0,width=' + intWidth + ',height=' + intHeight + ',left=' + intWindowLeft + ',top=' + intWindowTop);	
	}	
	

//DisplayImage function
function DisplayImage(picURL,picWidth,picHeight,picTitle){
newWindow=window.open(picURL,'newWin','toolbar=no,width='+picWidth+',height='+picHeight)
newWindow.document.write('<html><head><title>'+picTitle+'<\/title><\/head><body background="'+picURL+'"><\/body><\/html>')
newWindow.resizeBy(picWidth-newWindow.document.body.clientWidth,picHeight-newWindow.document.body.clientHeight)
newWindow.focus()
}
