// Script added by Andrew Havis 7/11/2003
		
		var thedate = new Date();
		var thetime = thedate.getTime();
		var day = thedate.getDate();
		var rawmonth = thedate.getMonth();
		var month = '/' + (rawmonth + 1) + '/';
		var year = thedate.getYear() + ' ';
		var rawhour = thedate.getHours();

		// If statements - included so the 'time generated' makes more sense.
		if ( rawhour < 12 ) {

		hour = rawhour + ':';
		ap = ' am';

		}

		else

		if ( rawhour == 12 ) {

		hour = rawhour + ':';
		ap = ' pm';

		}

		else

		if ( rawhour > 12 ) {

		hour = ( rawhour - 12 ) + ':';
		ap = ' pm';

		}

		var rawminute = thedate.getMinutes();
		if ( rawminute < 10 ) {

		minute = ( '0' + rawminute ) + ':';

		}

		else

		if ( rawminute >= 10 ) {

		minute = rawminute + ':';

		}

		var rawsecond = thedate.getSeconds();
		if ( rawsecond < 10 ) {

		second = ( '0' + rawsecond );

		}

		else

		if ( rawsecond >= 10 ) {

		second = rawsecond;

		}


function new_window(url, site_name) {
var genmsg = 'Pop-up window generated at '
var fullstop = '.'
var s_width = screen.width;
var s_height = screen.height;
var newwin = window.open('','newwin','width=640, height=480, resizable=yes, menubar=yes, status=yes');
var title = 'Library Website Link - ' + site_name;
newwin.document.writeln('<!-- Library Pop-up Frameset Page -->');
newwin.document.writeln('<!-- ' + genmsg + day + month + year + ' ' + hour + minute + second + ap + ' -->\n');
newwin.document.writeln('<!-- Screen Resolutions Detected: -->');
newwin.document.writeln('<!-- Width: ' + s_width + ' - Height: ' + s_height + ' -->\n');
newwin.document.writeln('<HTML>');
newwin.document.writeln('<HEAD>');
newwin.document.writeln('<SCR' + 'IPT>');
newwin.document.writeln('function closeMe() {');
newwin.document.writeln('window.close();');
newwin.document.writeln('return false;');
newwin.document.writeln('}');
newwin.document.writeln('<\/SCR' + 'IPT>');
newwin.document.writeln('<TITLE>' + title + '</TITLE>');
newwin.document.writeln('</HEAD>');
if ( s_width == 1024 && s_height == 768 ) {
newwin.document.writeln('<FRAMESET ROWS="13%, *">');
}
else if ( s_width == 800 && s_height == 600 ) {
newwin.document.writeln('<FRAMESET ROWS="15%, *">');
}
else {
newwin.document.writeln('<FRAMESET ROWS="17%, *">');
}
newwin.document.writeln('<FRAME NAME="top" SRC="exlink/top.html" NORESIZE SCROLLING="No">');
newwin.document.writeln('<FRAME NAME="main" SRC="' + url + '" NORESIZE SCROLLING="Auto">');
newwin.document.writeln('<NOFRAMES>');
newwin.document.writeln('<BODY BGCOLOR="SkyBlue" BACKGROUND="images/background/paleblue.jpg">');
newwin.document.writeln('<CENTER><P><B><I>' + title + '</I></B></P></CENTER>');
newwin.document.writeln('<P>The library weblinks work best in a frames-compliant browser. However, you can still access the requested website by clicking the link below.</P>');
newwin.document.writeln('<P><A HREF="' + url + '">Please click here to continue</A></P>');
newwin.document.writeln('</BODY>');
newwin.document.writeln('</NOFRAMES>');
newwin.document.writeln('</FRAMESET>');
newwin.document.writeln('</HTML>');

// Move the window to the top left-hand corner of the screen
newwin.moveTo(0,0)
}