//Open window for forum
	function ForumPop(pagehtml,pagename) {
		winda = window.open(pagehtml, pagename, "width=670,height=470,resizable=yes,scrollbars=yes,toolbar=yes,top=10,left=10")
		winda.focus()	}

//Large popup
	function BigPop(pagehtml,pagename) {
		winda = window.open(pagehtml, pagename, "width=620,height=440,resizable=yes,scrollbars=yes,top=10,left=10")
		winda.focus()	}

//Small popup
	function SmallPop(pagehtml,pagename) {
		winda = window.open(pagehtml, pagename, "width=400,height=340,resizable=yes,scrollbars=yes,top=10,left=10")
		winda.focus()	}

//Customisable popup
	function CustPop(pagehtml,pagename,popw,poph) {
		winda = window.open(pagehtml, pagename, "width="+popw+",height="+poph+",resizable=yes,scrollbars=no,top=10,left=10")
		winda.focus()	}

//Popup for beer reviews
	function ReviewPop(pagehtml,pagename) {
		winda = window.open(pagehtml, pagename, "width=460,height=380,resizable=yes,scrollbars=yes,top=30,left=30")
		winda.focus()	}

//Beer review pulldown
	function BeerRev(form) {
	var myindex=form.dest.selectedIndex
	parent.reviewopinion.location.href=(form.dest.options[myindex].value);	}

//Our homebrews pulldown
// You can output to ANY frame using:  parent.[framename].location.href
	function OurHB(form) {
	var myindex=form.dest.selectedIndex
	parent.ourbrews.location.href=(form.dest.options[myindex].value);	}	

// Force frames of Q+A section into the full page
	function CheckFrameQ() {
	if (self.location == top.location)  
	top.location.href = 'http://www.homebrewandbeer.com/qanda.html';}

// Force frames of Review section into the full page
	function CheckFrameR() {
	if (self.location == top.location)  
	top.location.href = 'http://www.homebrewandbeer.com/reviews.html';}

// Force frames of Our Homebrews section into the full page
	function CheckFrameO() {
	if (self.location == top.location)  
//	This line was to try and allow popup windows from main page
//	if (self.location == top.location && document.referrer != "http://www.homebrewandbeer.com")  
	top.location.href = 'http://www.homebrewandbeer.com/ourhomebrews.html';}

//If a review has not been loaded by its own site and if it's not in a frame
//This appears to work but is not implemented as google doesn't index the reviews
	function CheckFrameRef() {
	if (self.location == top.location && document.referrer != "www.homebrewandbeer.com")  
	top.location.href = 'http://www.homebrewandbeer.com/reviews.html';}
