function popup(url,a,b) {
	var breedte = a ? a : 350;
	var hoogte = b ? b : 250;
	var boven = Math.floor((top.screen.height - hoogte)/2);
	var links = Math.floor((top.screen.width - breedte)/2);

	var popup = window.open(url,'news','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width='+breedte+',height='+hoogte+',screenX='+links+',screenY='+boven+',left='+links+',top='+boven);
	popup.opener = self;
	popup.focus();
}


function mailCreator() {
// properties
this.at = "@";
this.domain = "damiaanactie"
this.country = ".be";
this.name = false;
this.label = false;
this.setStr = false;
this.error = "NO EMAIL";

	// private function
	this.createAddress = function() {
	this.setStr = "<a href='mailto:";
	this.setStr += this.name + "'>";
	this.setStr += this.label;
	this.setStr += "</a>";
	}
	// public function
	this.writeAddress = function(name,domain,country,label) {
	//this.name = name + this.at + this.domain + this.country;
	this.name = name + this.at + domain + '.' + country;
	this.label = (label) ? label : this.name;
	this.createAddress();
	if(this.setStr) document.write(this.setStr);
	else document.write(this.error);
	}
		
}

em = new mailCreator();

function getResolution() {
	if (screen.width && screen.height) {
		scrWidth = screen.width;
		scrHeight = screen.height;
	} else {
		scrWidth = 0;
		scrHeight = 0;
	}
	var resolution = scrWidth + 'x' + scrHeight;
	return resolution;
}

var res = getResolution();
function writeLink(profile_id,profile_name) {
	homeString = '';
	homeString = "<a href=\"home.cfm?profile=";
	homeString += profile_id + "&res=";
	homeString += res + "\" onMouseOver=\"img_act('" ;
	homeString += profile_name + "')\" onMouseOut=\"img_inact('";
	homeString += profile_name + "')\">";
	document.write(homeString);
}
