// Global JavaScript for Jaron Brass.com

function openWindow(url, name, w, h, r) {
	nw=window.open(url,name,'width=' + w + ',height=' + h + ',resizable=' + r +',scrollbars,status,top=100,left=100');
	nw.focus();
	return false;
}

function mailLink (subject) {
{ 
  coded = "6Uvts@6UvtspvU22.1tc"
  key = "LaAuwhXqxfiFk1762rEK4UGyPD8JdoYzZebm3vn5QCHTIlVONt0BMgpcWjsR9S"
  shift=coded.length
  link=""
  for (i=0; i<coded.length; i++) {
    if (key.indexOf(coded.charAt(i))==-1) {
      ltr = coded.charAt(i)
      link += (ltr)
    }
    else {     
      ltr = (key.indexOf(coded.charAt(i))-shift+key.length) % key.length
      link += (key.charAt(ltr))
			}				
    }
			document.location = 'mailto:' + link;
    }
}

function ichatPop() {
    window.open("/ichat.jhtml?snid=liquidcrims0n","ichatpop","width=350,height=240,top=150,left=150,scrollbars,status,resizable=1");
}