/*	dsp standard JavaScript Collection v2.01
 *  last edited 31.07.2004 15:58:09
 */

/* opens popup windows v1.02
 * param: url - string
 * param: width - int
 * param: height - int
 * param: mode - int (1 = regular, 2 = fullscreen)
 */
function popup( url, width, height, mode ) {
	if (width == null) { width = 700; }
	if (height == null) { height = 600; }
	if (mode == null) { mode = 1; }
	if (mode == 1) {
		splashWin = window.open(url, Math.ceil(Math.random()), 'scrollbars=auto, resizable=yes, width='+width+', height='+height);
	} else {
		splashWin = window.open(url, Math.ceil(Math.random()), 'fullscreen=1, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=no, resizable=0' );
        splashWin.resizeTo(width, height);
	}
	if (parseInt(navigator.appVersion) >= 4) {
		splashWin.moveTo((screen.width/2)-(width/2),(screen.height/2)-(height/2));
	}
	splashWin.focus();
}

/* prints botsafe email v1.01
 * param: name - string
 * param: tld - string
 * param: alt - string
 */
function prntMl(name, tld, alt) {
	if (name == null) { name = 'ps'; }
	if (tld == null) { tld = 'bearworks.de'; }
	if (alt == null) { alt = name + "&#64\;" + tld; }
	document.write("<a href=\"mailto:" + name);
	document.write("&#64\;" + tld + "\">");
	document.write(alt + "</a>");
}

