/* *********************************************************** 
 *	FUNCTION:	open_link
 *	PURPOSE: 	open new window
 * ********************************************************* */

//function open_link(url, width, height, name, location, scrollbars, resizable) {
function open_link(url, width, height) {
  // width, height, name, location and scrollbars are optional
  //
  // Pop up a new window named LoudDog with a default size of 685 x 480
  // window name of LoudDog and no location bar.


  var namenum = Math.round(Math.random() * 10000);
  if (width      == null) width=680;
  if (height     == null) height=450;
  var name="ClearBead" + namenum;
  var location='no';
  var scrollbars='no';
  var resizable='no';
  var opts="menubar=no,toolbar=no,scrollbars=" + scrollbars + ",resizable=" + resizable + ",fullsize=no,width="
           + width + ",height=" + height + ",location=no";

  winref=window.open(url,name,opts);
  winref.focus();
}

/* *********************************************************** 
 *	FUNCTION:	closewin
 *	PURPOSE: 	close an opened window
 * ********************************************************* */
 
function closewin() {
	window.close();
	}


function safe(text){
	var alink = new Array;
	var name = new Array;
	alink['jake'] = 'm&#97;il&#116;&#111;:jake&#64;&#106;&#97;&#107;e&#50;006&#46;&#99;&#111;m';
	alink['webmaster'] = 'm&#97;&#105;&#108;&#116;o&#58;web&#109;as&#116;e&#114;&#64;&#106;ake2006&#46;c&#111;m';
	name['jake'] = 'j&#97;ke&#64;&#106;&#97;&#107;e&#50;&#48;&#48;&#54;&#46;&#99;om';
	name['webmaster'] = '&#119;&#101;&#98;ma&#115;ter&#64;&#106;&#97;&#107;&#101;&#50;&#48;&#48;&#54;&#46;co&#109;';
	
	document.write('<a href="' + alink[text] + '">' + name[text] + '</a>');
}

