var serverstata = "FALSE" ;

// this serves up pages because of the side menu
function dsply( menutopic, SubMenu, hmenustr ) { 
	document.bentry.searchmode.value = "false"  ;
	document.bentry.imgnum.value = "none" ;
	document.bentry.selectevent.value = "" ;
	document.bentry.menutopic.value = menutopic ;
	document.bentry.submenu.value = SubMenu ;
	document.bentry.hmenustr.value = hmenustr ;
	document.bentry.action = "index.php?menutopic=" + menutopic + "&submenu=" + SubMenu + "&hmenustr=" + hmenustr  ;
	document.bentry.submit( );
    return false ;
}


function dsplybigpicorsubmenu( imgnum, string, sublink ) { 
	document.bentry.searchmode.value = "false"  ;
	if ( sublink.match(/true/)) {
		document.bentry.submenu.value = string  ;
	}
	document.bentry.imgnum.value = imgnum ;
	document.bentry.target = "_self" ;
	var menutopic = document.bentry.menutopic.value ;
	var SubMenu = document.bentry.submenu.value ; 
	var hmenustr = document.bentry.hmenustr.value ; 
	// alert ( document.bentry.submenu.value + string ) ;
	if ( sublink.match(/true/)) {
		document.bentry.action = "index.php?menutopic=" + menutopic + "&submenu=" + SubMenu + "&hmenustr=" + hmenustr  ;
	} else {
		document.bentry.action = "index.php?menutopic=" + menutopic + "&submenu=" + SubMenu + "&hmenustr=" + hmenustr + "#picturetop" + string ;
	}
	document.bentry.submit( );
    return false ;
}

// this serves up pages because of the top menu - bodydata is the dir name of site data
function dsply_supertopic( hmenustr ) { 
	document.bentry.searchmode.value = "false"  ;
	document.bentry.imgnum.value = "none" ;
	document.bentry.selectevent.value = "" ;
	document.bentry.prtmode.value = "false" ;
	document.bentry.hmenustr.value = hmenustr ;
	document.bentry.menutopic.value = 'Home' ;
	document.bentry.submenu.value = 'Home' ;
	document.bentry.action = "index.php?menutopic=Home&submenu=Home&hmenustr=" + hmenustr  ;
	document.bentry.submit( );
    return false ;
}

function showevent(selectevent) { 
	document.bentry.selectevent.value = selectevent ;
	var menutopic = document.bentry.menutopic.value ;
	var SubMenu = document.bentry.submenu.value ; 
	var hmenustr = document.bentry.hmenustr.value ; 
	document.bentry.action = "index.php?menutopic=" + menutopic + "&submenu=" + SubMenu + "&hmenustr=" + hmenustr  ;
    document.bentry.submit( ) ;
    return false ;
}
function submitmonthchange(newmonth   ) { 
	document.bentry.newmonth.value = newmonth ;
	var menutopic = document.bentry.menutopic.value ;
	var SubMenu = document.bentry.submenu.value ; 
	var hmenustr = document.bentry.hmenustr.value ; 
	document.bentry.action = "index.php?menutopic=" + menutopic + "&submenu=" + SubMenu + "&hmenustr=" + hmenustr  ;
    document.bentry.submit( ) ;
    return false ;
}

function changeview( view   ) { 
	document.bentry. view.value =  view ;
	document.bentry.selectevent.value = ""  ;
	var menutopic = document.bentry.menutopic.value ;
	var SubMenu = document.bentry.submenu.value ; 
	var hmenustr = document.bentry.hmenustr.value ; 
	document.bentry.action = "index.php?menutopic=" + menutopic + "&submenu=" + SubMenu + "&hmenustr=" + hmenustr  ;
    document.bentry.submit( ) ;
    return false ;
}

function form1() { 
	document.bentry.action = "BodyPages/BodyPagesform1.php" ;
	document.bentry.submit( ) ;
    return false ;
}

function photos( menutopic, SubMenu, pic, nav, album) { 
	// alert( album ) ;
	document.bentry.album.value = album ;
	document.bentry.menutopic.value = nav ;
	document.bentry.submenu.value = pic ;
	document.bentry.menutopic.value = menutopic ;
	document.bentry.submenu.value = SubMenu ;
	document.bentry.target = "_self" ;
    document.bentry.submit( ) ;
    return false ;
}

function searchmode( menutopic, SubMenu, searchmode) { 
	// alert( SubMenu ) ;
	document.bentry.menutopic.value = menutopic ;
	document.bentry.searchmode.value = searchmode ;
	document.bentry.submenu.value = SubMenu ;
	document.bentry.target = "_self" ;
    document.bentry.submit( ) ;
    return false ;
}

function printmode( menutopic, SubMenu, prtmode) { 
	// alert( SubMenu ) ;
	document.bentry.menutopic.value = menutopic ;
	document.bentry.prtmode.value = prtmode ;
	document.bentry.submenu.value = SubMenu ;
	document.bentry.target = "_self" ;
    document.bentry.submit( ) ;
    return false ;
}

function thumbnail( menutopic, SubMenu, tn, page ) { 
	document.bentry.pagename.value = page ;
	document.bentry.tnsel.value = tn ;
	// alert (document.bentry.tnsel.value  ) ;
	document.bentry.menutopic.value = menutopic ;
	document.bentry.submenu.value = SubMenu ;
	var hmenustr = document.bentry.hmenustr.value ; 
	document.bentry.action = "index.php?menutopic=" + menutopic + "&submenu=" + SubMenu + "&hmenustr=" + hmenustr + "#thumbtop" ;
	document.bentry.submit( );
    return false ;
}



function dsplythumbnail( imgnum, anchorstring ) { 
	document.bentry.imgnum.value = imgnum ;
	document.bentry.searchmode.value = "false"  ;
	document.bentry.target = "_self" ;
	var menutopic = document.bentry.menutopic.value ;
	// alert (document.bentry.imgnum.value ) ;
	var SubMenu = document.bentry.submenu.value ; 
	var hmenustr = document.bentry.hmenustr.value ; 
	document.bentry.action = "index.php?menutopic=" + menutopic + "&submenu=" + SubMenu + "&hmenustr=" + hmenustr + "#picturetop" + anchorstring ;
	document.bentry.submit( );
    return false ;
}



