/* File: site.js */

function OpenComments(c) {
	window.open(c,
		'comments',
		'width=480,height=535,scrollbars=yes,status=yes');
}

function OpenTrackback(c) {
	window.open(c,
		'trackback',
		'width=480,height=535,scrollbars=yes,status=yes');
}

function go1() {
	if(document.choosemonth.select1.options[document.choosemonth.select1.selectedIndex].value != "none") {
		location = document.choosemonth.select1.options[document.choosemonth.select1.selectedIndex].value
 	}
}

function myInit() {
	if (document.getElementById) {
		el = document.getElementById("search");
		el.focus();
	}
}

// rollover submit form button script
// copyright 1999-2001 Idocs, Inc. http://www.idocs.com/tags/
// Distribute this script freely, but keep this 
// notice with the code.
var submitRolls = new Object();
function submitroll(src, oversrc, name)
{
this.src=src;
this.oversrc=oversrc;
this.name=name;
this.alt="Submit Query";
this.write=submitroll_write;
}
function submitroll_write()
{
var thisform = 'document.forms[' + (document.forms.length - 1) + ']';
submitRolls[this.name] = new Object();
submitRolls[this.name].over = new Image();
submitRolls[this.name].over.src = this.oversrc;
submitRolls[this.name].out = new Image();
submitRolls[this.name].out.src = this.src;
document.write
(
'<A onMouseOver="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' + 
' onMouseOut="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' + 
' HREF="javascript:'
);
if (this.sendfield)
{
if (! this.sendvalue)
this.sendvalue = 1;
document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';");
}
document.write(thisform + '.submit();void(0);"');
if (this.msg)document.write(' onClick="return confirm(\'' , this.msg, '\')"');
document.write('>');
document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH='  + this.width);
if (this.otheratts)document.write(' ' + this.otheratts);
document.write('></A>');
if (this.sendfield)
{
document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendfield + '">');
document.forms[document.forms.length - 1].elements[this.sendfield].value='';
}
}
// end rollover submit form button script

// hide email address/mailto link from non-JavaScript-aware browsers
var lhs = "info";     // change this to your username/alias
var rhs = "uxmatters.com";  // change this to your domain
function print_mail_to_link() {
	document.write("<a href=\"mailto");
	document.write(":" + lhs + "@");
	document.write(rhs + "\">info&#64uxmatters&#46;com<\/a>");
}
function print_e_mail_address() {
	document.write(lhs + "@" + rhs);
}
// end hide email address/mailto link from non-JavaScript-aware browsers
