<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);
if(win.focus){win.focus();}}
function CloseNewWin(){if(win!=null && win.open)win.close()}
//window.onfocus=CloseNewWin;


function security(){
NewWindow('secure.php','FAQ','500','330','no','center');
}

function sample(){
NewWindow('sample.php','Sample','800','450','yes','center');
}

function jokecontest(){
NewWindow('jokecontest.php','JokeContest','600','620','yes','center');
}

function faq(){
NewWindow('function.php?function=get_faqs','FAQ','600','400','yes','center');
}

function friendmail(){
NewWindow('send2friend2.php','send2friend','600','470','yes','center');
}

function privacy(){
NewWindow('privacy.php','privacy','600','250','yes','center');
}

function why(){
NewWindow('why.php','Why','600','400','yes','center');
}

function courts(){
NewWindow('approved.php','Courts','600','400','yes','center');
}

function contact(){
NewWindow('contact.php','Courts','480','480','no','center');
}

function reviewchapters(){
NewWindow('chapterlisting.php','Chapters','740','640','auto','center');
}

function reviewchaptersp(){
NewWindow('chapterlisting.php','Chapters','740','640','auto','center');
}

function qreview(what){
NewWindow(what,'Review','800','500','yes','center');
}

function pop(what){
NewWindow(what,'Locations','480','480','yes','center');
}


function show_chap(chap,subc)
{
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
//var dom = (document.getElementById && !document.all)? 1: 0;
What = 'chapreview';

	if(!ns && !ie && !w3) return;
	if(ie)		chprevDiv=eval('document.all[What].style');
	else if(ns)	chprevDiv=eval('document.layers[What]');
	else if(w3)	chprevDiv=eval('document.getElementById(What).style');

//  var obj = (dom)? document.getElementById(What): document.all[What];
var iframeobj=document.getElementById? document.getElementById("chapframe") : document.all.chapframe
iframeobj.src='viewchap.php?chap='+chap+'&sub='+subc+''
//	document.chapframe.location.href = 'viewchap.php?chap='+chap+'&sub='+subc+'';
        if (ie||w3){
        chprevDiv.visibility="visible";
		chprevDiv.display = "block";
        }else{
        chprevDiv.visibility ="show"; 
		chprevDiv.display = "block";
		}
//     obj.style.visibility = "visible";
//     obj.style.display = "block"; // If this looks wrong, try 'inline'

}

function hide_chap()
{
var dom = (document.getElementById && !document.all)? 1: 0;
What = "chapreview";
var iframeobj=document.getElementById? document.getElementById("chapframe") : document.all.chapframe
  var obj = (dom)? document.getElementById(What): document.all[What];
     obj.style.visibility = "hidden";
     obj.style.display = "none";
//	document.chapframe.location.href = '';
iframeobj.src= '';
}


function pop(what,w,h){
NewWindow(what,'Test',w,h,'no','center');
}
// -->
