function flaWin(url,x,y){
	if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 800, yMax=600;

    var xOffset = (xMax - x)/2, yOffset = (yMax - y)/2;
	window.open(url,'futureWin','width='+x+',height='+y+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+', menubar=no, resizable=no, scrollbar=no, status=no, toolbar=no, titlebar=no');
}


function openWin2(url,x,y){
	if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 800, yMax=600;

    var xOffset = (xMax - x)/2, yOffset = (yMax - y)/2;
	window.open(url,'futureWin','width='+x+',height='+y+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',resizable=no,status=no,scrollbars=yes,toolbar=no');
}


function openWin3(url,x,y){
	if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 800, yMax=600;

    var xOffset = (xMax - x)/2, yOffset = (yMax - y)/2;
	window.open(url,'futureWin','width='+x+',height='+y+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',resizable=yes,status=yes,scrollbars=yes,toolbar=yes');
	}


function showMailTo(prefix, domain, br){
	if(!br)
       document.write('<a href="mailto:'+prefix+'@'+domain+'">'+prefix+'@'+domain+'</a>');	
	else
	   document.write('<a href="mailto:'+prefix+'@'+domain+'">'+prefix+'<br/>@'+domain+'</a>');
}

function popWindow(url,x,y){
	if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 800, yMax=600;

    var xOffset = (xMax - x)/2, yOffset = (yMax - y)/2;
	window.open(url,'futureWin','width='+x+',height='+y+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+', menubar=no, resizable=no, scrollbar=no, status=no, toolbar=no, titlebar=no');
}

function emailPage(title, url){
	popWindow('emailpage.php?title='+title+'&link='+url,500,400);
}



