// the height/width for the dialog window
h=730;
w=650;

// get the position for the dialog
wleft = (screen.width - w) / 2;
wtop = (screen.height - h) / 2;

last_tab='Page1';


// This function opens the url in a centered dialog window
function show(url)
{
    
    props='width=' + w + ', height=' + h + ', ' + 'left=' + wleft + ', top=' + wtop + ', location=no,toolbar=no,scrollbars=no,menubar=no,resizable=no,location=no,status=no';
    var win = window.open(url,'KellyGallagher', props);
    
    // Just in case width and height are ignored
    win.resizeTo(w, h);
    // Just in case left and top are ignored
    win.moveTo(wleft, wtop);
    win.focus();    
}


function showLayer(layerName) { 
	document.getElementById(layerName).style.display = '';
} 

function hideLayer(layerName) { 
	document.getElementById(layerName).style.display = 'none';
} 

function showNext(tab_name) {
	var curr = document.getElementById(tab_name);
	hideLayer(last_tab);
	showLayer(tab_name);
	last_tab=tab_name;
}
