// open new window
function openNewWindow(linkObj){
	try{
		window.open(linkObj.getAttribute('href'), 'popupLink', 'width=720,height=600,scrollbars=yes,toolbars=yes,resizable=yes,location=yes,menubar=yes');
	}
	catch(e){
		// error
	}
}

// open new image window
// change the image later
function openImageWindow(linkObj){
	try	{
		newwindow2=window.open('', 'popup', 'width=720,height=600,scrollbars=yes,toolbars=no,resizable=yes');
		var tmp = newwindow2.document;
		tmp.write('<html><head><title>Image</title>');
		tmp.write('<style type="text/css">body { margin: 0; padding: 0; } #header { border-bottom: 1px solid #ccc; padding: 5px; margin: 0 0 10px 0; } #imageBox { text-align: center; } #imageBox img { border: 1px solid #000; margin: 5px;} a:link, a:visited { color: #000; } a:hover, a:active { color: #369; } #imageClose { float: right; padding: 35px 10px 5px 5px;} </style>');
		tmp.write('</head><body>');
		tmp.write('<p id="imageClose"><a href="javascript:self.close()">Close</a></p>');
		//tmp.write('<div id="header"><img src="http://atlas.cc.ucf.edu:8080/myUCF/myUCFNews/images/logo.png" alt="" /></div>');
		tmp.write('<div id="header"><img src="http://myucfnews.ucf.edu/myUCF/myUCFNews/images/myUcfNewsLogo.jpg" alt="" /></div>');
		tmp.write('<div id="imageBox">');
		tmp.write('<img src="' + linkObj.getAttribute('href') + '" alt="" />');
		tmp.write('<p>' + linkObj.getAttribute('title') + '</p>');
		tmp.write('</div>');
		tmp.write('</body></html>');
		tmp.close();
	}
	catch(e){
		// error
	}	
}
