// JavaScript Document
function popup(obj, x, y, w, h, opts)
{
    if (x < 0) x = self.screen ? (screen.width - w) >> 1 : 0;
    if (y < 0) y = self.screen ? (screen.height - h) >> 1 : 0;
    var args = 'width=' + w + ',height=' + h + ',left=' + x + ',top=' + y;
    if (opts != '') args = args + ',' + opts;

    if (typeof(obj)=='string') {
    	if (obj.indexOf('mailto') == -1) {
        	window.open(obj, '_blank', args).focus();
        }
        else {
        	return true;
        }
    }
    else {
    	if (obj.href.indexOf('mailto') == -1) {
        	window.open(obj.href, obj.target, args).focus();  
        }    
        else {
        	return true;
        }  
     } 
    return false;
}