// tech corner routines

//	webwonk@blinn.com
// wtvn@blinn.com

var name = 'bill.blinn';
var joename = 'joe.bradley';
var dom = 'techbyter';
var suf = 'com';
var atsign = '@';
var dot = '.';

function break_out() {
	if (top.location != self.location) top.location = self.location;
}

function show_big(winWid, winHi, winScroll, winContents) {
	var winSettings =
		'width=' + winWid +
		',height=' + winHi +
		',toolbar=0,location=0,' +
		'resizable=1,directories=0,' +
		'menubar=0,status=0,' +
		'scrollbars=' + winScroll;
	showIt=window.open(winContents, "showIt", winSettings);
}

function ShowBigImage(MyTarget)
{
	// set maximum height and width
	var MaxWidth = 750;
	var MaxHeight = 650;

	// place file extension in SplitMyTarget1[1]
	SplitMyTarget1 = MyTarget.split('_sm.');
	// place file name base with path in SplitMyTarget2[0]
	SplitMyTarget2 = MyTarget.split('_sm');
	// assemble the file name to display, with path
	DisplayFile = SplitMyTarget2[0] + '.' + SplitMyTarget1[1];

	// display the larger image in a new window
	BigWindow=window.open("","popwindow","width=800,height=650,resizable=1,menubar=0,toolbar=0,directories=0,location=0,status=0,scrollbars=1");
	BigWindow.document.write('<html><head><title>Jean Vormelker</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="tc.css" rel="stylesheet" type="text/css"></head>');
	BigWindow.document.write('<body bgcolor="#FFFFFF" text="#000000" onClick="javascript:window.close();">');
//	var CloseLine = "'','_parent',''";
//	BigWindow.document.write('<body bgcolor="#FFFFFF" text="#000000" onClick="window.open(' + CloseLine + ');window.close();">');
	BigWindow.document.write('<h3>Click anywhere on this window to close it.<br>');
	BigWindow.document.write('<img src="' + DisplayFile + '" border="0"></h3>');
	BigWindow.document.write('</body></html>');
}

function write_addr(id) {
	document.write('<a href="mailto:'+id+'@blinn.com">'+id+'@blinn.com</a>');
}

function write_hidden_addr() {
	document.write('<a href="mailto:'+name+atsign+dom+dot+suf+'">'+name+atsign+dom+dot+suf+'</a>');
}

function write_joe_hidden_addr() {
	document.write('<a href="mailto:'+joename+atsign+dom+dot+suf+'">'+joename+atsign+dom+dot+suf+'</a>');
}


// show_status
// Over-complicated way to set the text in the browser
// status bar.  Workaround for IE5/6.
function show_status (text) {
	window.setTimeout("window.status='" + text + "'", 0);
}

function show_addr(id,dom,suf) {
	document.write('<a href="mailto:'+id+'@'+dom+'.'+suf+'">'+id+'@'+dom+'.'+suf+'</a>');
}