// Open small (centered) browser window containing screen shot image and Close button
// - alttext argument cannot contain spaces to fully display
function ScreenShotWindow (file, W, H, title, alttext) {
	var winw = W + 50;
	var winh = H + 60;
	var winl = (screen.width - winw) / 2;   // this may not work for Netscape and IE < v4!
	winl = (winl > 0) ? winl: 0;
	var wint = (screen.height - winh) / 2;
	wint = (wint > 0) ? wint: 0;
	newwin = window.open ("", "myWindow", "resizable=no,top=" + wint + ",left=" + winl + ",width=" + winw + ",height=" + winh);
	newwin.document.write ("<HTML><HEAD><TITLE>" + title + "</TITLE></HEAD>");
	newwin.document.write ("<BODY BGCOLOR='white' onBlur='self.close();'>");
	newwin.document.write ("<CENTER><IMG SRC=" + file + " ALT=" + alttext + " BORDER='0'><P>");
	newwin.document.write ("<FORM><INPUT TYPE='button' VALUE='CLOSE' onClick='self.close();'></FORM>");
	//newwin.document.write ("<B><FONT SIZE='4'>Click window to close</FONT></B>");   //This works for Netscape!
	newwin.document.write ("</CENTER></BODY></HTML>");
	newwin.document.close();
}

function VersionInfoWindow () {
	var winw = 480;
	var winh = 330;
	var winl = (screen.width - winw) / 2;   // this may not work for Netscape and IE < v4!
	var wint = (screen.height - winh) / 2;
	newwin = window.open ("", "myWindow", "resizable=no,top=" + wint + ",left=" + winl + ",width=" + winw + ",height=" + winh);
	newwin.document.write ("<HTML><HEAD><TITLE>NEXTRUCAD Version Info</TITLE></HEAD>");
	newwin.document.write ("<BODY BGCOLOR='white' onBlur='self.close();'>");
	newwin.document.write ("<P><FONT SIZE='4'><B>v1.00:</B> Initial release<BR>");
	newwin.document.write ("<B>v1.04:</B> List of standard screw sizes added<BR>");
	newwin.document.write ("- Barrel bore diameter input changed to screw diameter<BR>");
	newwin.document.write ("- Viscosity model fitting spreadsheets included<BR>");
	newwin.document.write ("<B>v1.05:</B> Channel cross-section results form added<BR>");
	newwin.document.write ("<B>v1.10:</B> Preferences form and status bar added<BR>");
	newwin.document.write ("- Maddock/Egan channel geometry model changed<BR>");
	newwin.document.write ("- Support added for European decimal symbol<BR>");
	newwin.document.write ("- Bug fixes<BR>");
	newwin.document.write ("<B>v2.00:</B> Windows XP/2000 version<BR>");
	newwin.document.write ("- HASP HL USB keys supported exclusively<BR>");
	newwin.document.write ("<B>v2.03:</B> Symbols removed which caused problems on computers with Asian fonts<BR>");
	newwin.document.write ("<B>v2.10:</B> Partial data sets can now be saved<P></FONT>");
	newwin.document.write ("<CENTER><FORM><INPUT TYPE='button' VALUE='CLOSE' onClick='self.close();'></FORM>");
	newwin.document.write ("</CENTER></BODY></HTML>");
	newwin.document.close();
}

