// -- Take care of differences betwen NS6 and IE4/5 regarding
// -- cursor type names.
//var ns6=document.getElementById&&!document.all
//hp=(ns6)?"pointer":"hand";
//function showHand(id) {
// var s=getstyle(id)
// s.cursor=hp;
//}

// --------------------------------------------------------------------------------
// Write secure mail address	
// --------------------------------------------------------------------------------

var user;
var domain;
var suffix;
function jemail(user, domain, suffix){
	document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix +  '</a>');
}
function cemail(user, domain, suffix){
	document.write(user + '@' + domain + '.' + suffix);
}

// --------------------------------------------------------------------------------
// Hide status bar msg script- by javascriptkit.com
// använd:  onMouseover="return hidestatus()">
// configure status message to show
// --------------------------------------------------------------------------------

var statusmsg=""
function hidestatus(){
	window.status=statusmsg
	return true
}

// --------------------------------------------------------------------------------
/*
url: url of your popup
x,y: popup width and height (your popup will be centered in the screen of course)
name: your popup name (useful if you want to call multiple pages on the same popup)
sb: set it to 1 to have scrollbars
rs: set it to 1 to make the popup resizable
st: set it to 1 to display status
lt: set it to 1 to have location
tb: set it to 1 to have toolbars
<a onclick = "popupper('yourpage.html',100,100,'pop',1,1,1,1,1)" href = "javascript:void(0)">popup</a>
*/
// --------------------------------------------------------------------------------

function popupper(url,x,y,name,sb,rs,st,lt,tb) {
	var win = null;
	var centerwidth=(screen.width/2)-(x/2);
	var centerheight=(screen.height/2)-(y/2);
	var scrollbarstext = 'scrollbars = no,';
	var resizabletext = 'resizable = no,';
	var statustext = 'status = no,';
	var locationtext = 'location = no,';
	var toolbartext = 'toolbar = no,';
	var features = '';
	if (sb == 1){
	  scrollbarstext = 'scrollbars = yes,'
	}
	if (rs == 1){
	  resizabletext = 'resizable = yes,'
	}
	if (st == 1){
		statustext = 'status = yes,'
	}
	if (lt == 1){
		locationtext = 'location = yes,'
	}
	if (tb == 1){
		toolbartext = 'toolbar = yes,'
	}
	features = scrollbarstext+resizabletext+statustext;
	features = features + locationtext+toolbartext;
	features = features + 'width = '+x+',height = '+y;
	features = features + ',top = ' + centerheight;
	features = features + ',left = ' + centerwidth;
	win = window.open(url, name, features);
}


