// JavaScript Document
var xmlHttp




var finalForm;

function finalCheckOut(str,str2)
	{ 
		
	finalForm=str2;
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
			 {
			 alert ("Browser does not support HTTP Request")
			 return false;
			 }
		var url="reviewActPay.php"
		url=url+"?id="+str
		url=url+"&sid="+Math.random()
		xmlHttp.onreadystatechange=stateChanged5
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}

function stateChanged5() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 

	}
  else{
	  document.getElementById("display").innerHTML='<img src="images/loading.gif"><br>Processing';	
	  return false;
	  }
}
/* basic information*/
function viewBasicAjax(str)
	{ 
	
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
			 {
			 alert ("Browser does not support HTTP Request")
			 return
			 }
		var url="viewBasic.php"
		url=url+"?id="+str
		url=url+"&sid="+Math.random()
		xmlHttp.onreadystatechange=stateChanged 
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
  response=xmlHttp.responseText;
  
  document.getElementById("display").innerHTML=response;
	}
  else{
	  document.getElementById("display").innerHTML='<img src="images/loading.gif"><br>Loading';	
  }
}
/* Family Information*/

function viewFamilyAjax(str)
	{ 
	
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
			 {
			 alert ("Browser does not support HTTP Request")
			 return
			 }
		var url="viewFamily.php"
		url=url+"?id="+str
		url=url+"&sid="+Math.random()
		xmlHttp.onreadystatechange=stateChanged2 
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}

function stateChanged2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
  response=xmlHttp.responseText;
  
  document.getElementById("display").innerHTML=response;
	}
  else{
	  document.getElementById("display").innerHTML='<img src="images/loading.gif"><br>Loading';	
  }
}

/* HOBBies */

function viewHobbiesAjax(str)
	{ 
	
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
			 {
			 alert ("Browser does not support HTTP Request")
			 return
			 }
		var url="viewHobbies.php"
		url=url+"?id="+str
		url=url+"&sid="+Math.random()
		xmlHttp.onreadystatechange=stateChanged3
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}

function stateChanged3() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
  response=xmlHttp.responseText;
  
  document.getElementById("display").innerHTML=response;
	}
  else{
	  document.getElementById("display").innerHTML='<img src="images/loading.gif"><br>Loading';	
  }
}
/*viewImages*/

function viewImagesAjax(str)
	{ 
	
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
			 {
			 alert ("Browser does not support HTTP Request")
			 return
			 }
		var url="viewImage.php"
		url=url+"?id="+str
		url=url+"&sid="+Math.random()
		xmlHttp.onreadystatechange=stateChanged4
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}

function stateChanged4() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
  response=xmlHttp.responseText;
  
  document.getElementById("display").innerHTML=response;
	}
  else{
	  document.getElementById("display").innerHTML='<img src="images/loading.gif"><br>Loading';	
  }
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}

