// blackfarm.de: Common Javascripts
// MM [01/2005] --> manni@farmlands.de


function imagePopUp(name, width, height, category) {
	url = "../../images/" + category + "/" + name + ".jpg";
	winl = (screen.width - width) / 2;
	wint = (screen.height - height) / 2;
    eval("BlackFarmPopup = window.open(url, 'PopupWindow', 'scrollbars=no,toolbar=no,location=no,top='+wint+',left='+winl+'directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width="+ width +",height="+ height +"');");
    BlackFarmPopup.focus();
}

function pagePopUp(file, width, height) {
	url = "../content/" + file;
	winl = (screen.width - width) / 2;
	wint = (screen.height - height) / 2;
    eval("BlackFarmPopup = window.open(url, 'PopupWindow', 'scrollbars=no,toolbar=no,location=no,top='+wint+',left='+winl+'directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width="+ width +",height="+ height +"');");
    BlackFarmPopup.focus();
}


function getEmail(email_name, domain_name) {
	document.write('E-Mail: <a href=\"mailto:' + email_name + '@' + domain_name + '\">');
	document.write(email_name + '@' + domain_name + '</a>');
}