var newwindow = '';

function popitup(url, height, width, scrollBars) {
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = url;
	}
	else
	{
		newwindow=window.open(url,'','height=' + height + ',width=' + width + ',status=yes,scrollbars=' + scrollBars);
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}

function getEmail() { }


function decode(s) {
	var result = '';
	var c;
	var code;
	for (var i = 0; i < s.length; i++) {
	  var c = s.charAt(i);
	  var code = s.charCodeAt(i);
	  if (((c > 'a') && (c <= 'z')) || ((c > 'A') && (c <= 'Z'))) {
	    code = code - 1;
	    c = String.fromCharCode(code);
	  } else if (c == 'a') {
	    c = 'z';
	  } else if (c == 'A') {
	    c = 'Z';
	  } else if (c == '^') {
	    c = '@';
	  } else if (c == ',') {
	    c = '.';
	  }
	  result = result + c;
	}
	return result;
}

function decodeEmail(s) {
	return ('mailto:' + decode(s));
}

