// JavaScript Document
function newwindow(url) {
	// Set width and height
	var winWidth = 400;
	var winHeight = 600;
	// Set Window position
	var winTop = 0;
	var winLeft = 0;
	// Set other attributes
	var toolbar = "no";
	var location = "no";
	var directories = "no";
	var status = "no";
	var menubar = "no";
	var scrollbar = "yes";
	var resizable = "no";
	var atts="width="+winWidth+",height="+winHeight+",top="+winTop+",screenY="+winTop+",left="+winLeft+",screenX="+winLeft+",scrollbars="+scrollbar;
	// open the window
	window.open(url,'',atts);
}

function viewBasket(url) {
	// Set width and height
	var winWidth = 600;
	var winHeight = 800;
	// Set Window position
	var winTop = 0;
	var winLeft = 0;
	// Set other attributes
	var toolbar = "no";
	var location = "no";
	var directories = "no";
	var status = "no";
	var menubar = "no";
	var scrollbar = "yes";
	var resizable = "no";
	var atts="width="+winWidth+",height="+winHeight+",top="+winTop+",screenY="+winTop+",left="+winLeft+",screenX="+winLeft+",scrollbars="+scrollbar;
	// open the window
	window.open(url,'',atts);
}

function backToMap() {
	//alert("hello");
	// not valid but works
	//window.location = "http://localhost:8080/MultiClient/index.faces";
	// proper W3C method - works also
	location.href = "../index.faces";
}

function ShowHide(div) {		
		//alert("show" + div);		
		//var IfrRef = document.getElementById('DivShim');
		var div = document.getElementById(div);
		div.style.visibility = 'visible';	
		//alert("hit else statement");		
		
	}
	
	// This is only for the div that holds all the page content
	function HideAll(div) {
			var div = document.getElementById(div);
			div.style.visibility = 'hidden';	
		

	}
	