var teststring



/////////////////////////////////////////////
function showwhoarewe()
{
	if (document.getElementById("whoarewebody").innerHTML != "")
	{
		document.getElementById("whoarewebody").innerHTML=""
	}
	else
	{
		document.getElementById("whoarewebody").innerHTML="<img src='http://www.commonwealthchapel.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		}
		var url="showwhoarewe.asp"
		url=url+"?sid="+Math.random()
		xmlHttp.onreadystatechange=stateChangedshowwhoarewe
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}
} 

function stateChangedshowwhoarewe() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("whoarewebody").innerHTML=xmlHttp.responseText
	} 
}
///////////////////////

/////////////////////////////////////////////
function showpurpose()
{
	if (document.getElementById("purposebody").innerHTML != "")
	{
		document.getElementById("purposebody").innerHTML=""
	}
	else
	{
		document.getElementById("purposebody").innerHTML="<img src='http://www.commonwealthchapel.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		}
		var url="showpurpose.asp"
		url=url+"?sid="+Math.random()
		xmlHttp.onreadystatechange=stateChangedshowpurpose
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}
} 

function stateChangedshowpurpose() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("purposebody").innerHTML=xmlHttp.responseText
	} 
}
///////////////////////

/////////////////////////////////////////////
function showbelieve()
{
	if (document.getElementById("believebody").innerHTML != "")
	{
		document.getElementById("believebody").innerHTML=""
	}
	else
	{
		document.getElementById("believebody").innerHTML="<img src='http://www.commonwealthchapel.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		}
		var url="showbelieve.asp"
		url=url+"?sid="+Math.random()
		xmlHttp.onreadystatechange=stateChangedshowbelieve
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}
} 

function stateChangedshowbelieve() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("believebody").innerHTML=xmlHttp.responseText
	} 
}
///////////////////////

/////////////////////////////////////////////
function showworship()
{
	if (document.getElementById("worshipbody").innerHTML != "")
	{
		document.getElementById("worshipbody").innerHTML=""
	}
	else
	{
		document.getElementById("worshipbody").innerHTML="<img src='http://www.commonwealthchapel.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		}
		var url="showworship.asp"
		url=url+"?sid="+Math.random()
		xmlHttp.onreadystatechange=stateChangedshowworship
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}
} 

function stateChangedshowworship() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("worshipbody").innerHTML=xmlHttp.responseText
	} 
}
///////////////////////

/////////////////////////////////////////////
function showwhat()
{
	if (document.getElementById("whatbody").innerHTML != "")
	{
		document.getElementById("whatbody").innerHTML=""
	}
	else
	{
		document.getElementById("whatbody").innerHTML="<img src='http://www.commonwealthchapel.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		}
		var url="showwhat.asp"
		url=url+"?sid="+Math.random()
		xmlHttp.onreadystatechange=stateChangedshowwhat
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}
} 

function stateChangedshowwhat() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("whatbody").innerHTML=xmlHttp.responseText
	} 
}
///////////////////////
/////////////////////////////////////////////
function showglobal()
{
	if (document.getElementById("globalbody").innerHTML != "")
	{
		document.getElementById("globalbody").innerHTML=""
	}
	else
	{
		document.getElementById("globalbody").innerHTML="<img src='http://www.commonwealthchapel.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		}
		var url="showglobal.asp"
		url=url+"?sid="+Math.random()
		xmlHttp.onreadystatechange=stateChangedshowglobal
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}
} 

function stateChangedshowglobal() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("globalbody").innerHTML=xmlHttp.responseText
	} 
}
///////////////////////

/////////////////////////////////////////////
function showtextbox4()
{
	if (document.getElementById("textbox4").innerHTML != "")
	{
		document.getElementById("textbox4").innerHTML=""
	}
	else
	{
		document.getElementById("textbox4").innerHTML="<img src='http://www.commonwealthchapel.com/loading.gif'>"
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		}
		var url="showtextbox4.asp"
		url=url+"?sid="+Math.random()
		xmlHttp.onreadystatechange=stateChangedshowtextbox4
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}
} 

function stateChangedshowtextbox4() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("textbox4").innerHTML=xmlHttp.responseText
	} 
}
///////////////////////






function GetXmlHttpObject()
{ 
	var objXMLHttp=null
		if (window.XMLHttpRequest)
		{
		objXMLHttp=new XMLHttpRequest()
		}
		else if (window.ActiveXObject)
		{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
		}
	return objXMLHttp
} 

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) /2 -100;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
