function isUndefined(v) {
    var undef;
    return v===undef;
}

function raw_popup(url, target, features) {
    // pops up a window containing url optionally named target, optionally having features
    if (isUndefined(features)) features = _POPUP_FEATURES;
    if (isUndefined(target  )) target   = '_blank';
    var theWindow = window.open(url, target, features);
    theWindow.focus();
    return theWindow;
}

function link_popup(src, features) {
    // to be used in an html event handler as in: <a href="..." onclick="link_popup(this,...)" ...
    // pops up a window grabbing the url from the event source's href
    return raw_popup(src.getAttribute('href'), src.getAttribute('target') || '_blank', features);
}

function sizer() {
if (navigator.appVersion.indexOf("AOL")>0){
} else {
	imgurl=document.photo.href
	ubsr = navigator.appName.indexOf("etscape")
	usys = navigator.appVersion.indexOf('Win')
	iheight = document.photo.height;
	iwidth = document.photo.width;
	if (ubsr>0) {
		iwidth = iwidth+6;
		iheight = iheight+49
	} else {
		iwidth = iwidth+12;
		iheight = iheight+28
	}
	iheight += 16;
	if (iheight < 100) {
		iheight = 100;
	}
	if (iwidth < 110) {
		iwidth = 110;
	}
	if (iwidth > window.screen.width) {
		iwidth=window.screen.width
	}
	if (iheight > window.screen.height) {
		iheight=window.screen.height
	}
	window.resizeTo(iwidth, iheight);
	window.focus();
	if (screen.width) {
		xmove = (screen.width - iwidth)/2
		ymove = (screen.height - iheight)/2
		window.moveTo(xmove,ymove);
	}
}
}