function brsite(wwwsite) {
	choice = window.confirm("You are leaving the Ontario Command Web Site. The Royal Canadian Legion, Ontario Command is not responsible for the content presented at independently-maintained branch Web sites.");
	if (choice==true) { 
		window.open(wwwsite,"Branch");
	}
}

function viewItem(iView,iSize, iDataID, sBrName){
		var sURL;
		sURL ="/shared/container.asp?"
		sURL +="main=" + iView
		sURL +="&ID=" + iDataID
		if (iView = 7) {
			sURL +="&brName=" + sBrName
		}
		switch (iSize){
			// dimension for map
			case 1:
				var mapwin = window.open(sURL,"","Height=500px; Width=450px; resizable= Yes; status= No;");
				break;
			// dimension for activity table
			case 2:
				var actwin = window.open(sURL,"","Height=450px; Width=720px; resizable= Yes; status= No;");
				break;
			// dimension for activities
			case 3:
				var evewin = window.open(sURL,"","Height=450px; Width=720px; resizable= Yes; status= No;");
				break;
			//dimension for map with links
			case 4:
				var mapwin = window.open(sURL,"","Height=550px; Width=450px; resizable= Yes; status= No;");
				break;
			// branch hours
			case 5:
				var hrWin = window.open(sURL,"","Height=320px; Width=720px; resizable= Yes; status= No;");
				break;
			// branch newsletter
			case 6:
				var newsWin = window.open(sURL,"","Height=600px; Width=750px; outerwidth=800px; resizable= Yes; status= No;");
				break;
			//otherwise
			default:
				var defwin = window.open(sURL,"","Height=450px; Width=720px; resizable= Yes; status= No;");
			
		}	 
	
	}

function showCatalogItem(iItem){
	var sURL = "/_promo/catalogItem.asp?stock=";
	sURL += iItem;
	window.open(sURL,"stock","innerHeight=620px; innerWidth=420px; height=650px; width=450px; resizable=No; status=No;");
}	
function OpenWin(linkid,iWidth,iHeight,iTop,iLeft)
    {  
		eval ("NewWin=window.open('" + linkid + "','newwin',config='width=" + iWidth + ",height=" + iHeight + ",location=no,status=no,directories=no,toolbar=no,scrollbars=no,menubar=no,resizable=no,top=" + iTop + ",left=" + iLeft + "')");
    NewWin.focus()
    }

	