var vfname = 1;
var vlname = 1;
var vemail = 1;
var vadres = 1;
var vphone = 1;
function checkf(strname) {
	if (strname=='soji') vfname=0;
	else vfname=1;
}

function checkl(strname) {
	if (strname=='sand') vlname=0;
	else vlname=1;
}

function checke(strname) {
	if (strname=='soujisama@gmail.com') vemail=0;
	else vemail=1;
}

function checka(strname) {
	if (strname=='somewhere') vadres=0;
	else vadres=1;
}

function checkp(strname) {
	if (strname=='0808') vphone=0;
	else vphone=1;
}

function verify() {
	if (vfname==0 && vlname==0 && vemail==0 && vphone==0 && vadres==0) document.getElementById('submit').disabled=false;
	else document.getElementById('submit').disabled=true;
}

function larger() {
	var e = document.getElementsByTagName('*');
	for(i=0;i<e.length;i++) {
	     // if(e[i].style.fontSize) var s = parseInt(e[i].style.fontSize.replace("px",""));
	     // else var s = 10;
		s = e[i].style.fontSize + 2;
                e[i].style.fontSize = s+"px";
	}
}

function getXmlHttpObject() {
	if(window.XMLHttpRequest) return new XMLHttpRequest();
	if(window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
	return null;
}
function stateChanged() {
	if(xmlhttp.readyState == 4) {
		document.getElementById('prayer').innerHTML=xmlhttp.responseText;
	}
}

function prayer(n) {		bar = document.getElementById('prayer');
	bar.innerHTML="<br/><br/><br/><br/><span style='margin-top:200px;margin-left:270px;'><img src='images/loading.gif' alt='...loading...'/></span>";		bar.style.visibility="visible";
	document.getElementById('close').style.visibility="visible";
	xmlhttp=getXmlHttpObject();
	if(xmlhttp==null) return;
	url="getPrayer.php?var="+n+"&sid="+Math.random();
	xmlhttp.onreadystatechange=stateChanged;
	xmlhttp.open("GET",url,true);		xmlhttp.send(null);
}

function cprayer() {
	document.getElementById('prayer').style.visibility="hidden";
	document.getElementById('close').style.visibility="hidden";
}
