// Common JavaScript functions
// (c) 2002 Alistair J. Bowness / Genetix Computer Consultancy

function genLink( cURL, cDesc, cTarget ) {
	var txtOutput = '<a href="' + cURL + '" ';
	if ( cTarget != "" ) {
		txtOutput = txtOutput + 'target="' + cTarget + '" ';
	}
	
	txtOutput = txtOutput + 'onMouseOver="return winStatus( &#39;' + cDesc + '&#39; )" ';
	txtOutput = txtOutput + 'onMouseOut="return winStatus( &#39;&#39; )">';
	
	document.write( txtOutput );
}

function winStatus( cTxt ) {
	if ( cTxt != "" ) { 
		window.status = "Click here to " + cTxt;
	} else {
		window.status = "";
	}
	
	return true;
}


