<!-- 
window.defaultStatus="Welcome to Couples for Christ";

function swapImage(name, source) {
	document.images[name].src = source;
    return true;
}

function SabiMoAraw() {
	var petsa_ngayon = new Date();
	var araw = petsa_ngayon.getDay();
	var buwan = petsa_ngayon.getMonth();
	var petsa = petsa_ngayon.getDate();
	var taon = petsa_ngayon.getYear();
	
	return Araw[araw] + Buwan[buwan] + petsa + ", " + taon;
}

Araw = new Array(7);
Araw[0] = "Sunday ";
Araw[1] = "Monday ";
Araw[2] = "Tuesday ";
Araw[3] = "Wednesday ";
Araw[4] = "Thursday ";
Araw[5] = "Friday ";
Araw[6] = "Saturday ";

Buwan = new Array(12);
Buwan[0] = "January ";
Buwan[1] = "February ";
Buwan[2] = "March ";
Buwan[3] = "April ";
Buwan[4] = "May ";
Buwan[5] = "June ";
Buwan[6] = "July ";
Buwan[7] = "August ";
Buwan[8] = "September ";
Buwan[9] = "October ";
Buwan[10] = "November ";
Buwan[11] = "December ";

function quotes() {
	var a = Math.round(Math.random()*(17))
	quote = new Array
	quote[0] = 'The Lord is compassionate and gracious, slow to anger, abounding in love. <i>Psalm 103:8</i>' 
	quote[1] = 'God said, "I have loved you with an everlasting love; I have drawn you with loving-kindness." <i>Jeremiah 31:3</i>' 
	quote[2] = 'God is our refuge and strength, an ever-present help in trouble. <i>Psalm 46:1</i>' 
	quote[3] = 'God said, "I will strengthen you and help you; I will uphold you with my righteous right hand." <i>Isaiah 41:10</i>' 
	quote[4] = 'God said, "Call upon me in the day of trouble; I will deliver you, and you will honor me." <i>Psalm 50:15</i>' 
	quote[5] = 'You are forgiving and good, O Lord, abounding in love to all who call to you. <i>Psalm 86:5</i>' 
	quote[6] = 'How gracious he will be when you cry for help! As soon as he hears, he will answer you. <i>Isaiah 30:19</i>' 
	quote[7] = 'The Lord will guide you always. <i>Isaiah 58:11</i>' 
	quote[8] = 'The Lord himself goes before you and will be with you; he will never leave you nor forsake you. <i>Deuteronomy 31:8</i>' 
	quote[9] = 'This God is our God for ever and ever; he will be our guide even to the end. <i>Psalm 48:14</i>' 
	quote[10] = 'Jesus Christ is the same yesterday and today and forever. <i>Hebrews 13:8</i>' 
	quote[11] = 'The Lord Jesus Christ said, "Do not let your hearts be troubled. Trust in God; trust also in me." <i>John 14:1</i>' 
	quote[12] = 'God said, "Fear not, for I have redeemed you; I have summoned you by name; you are mine." <i>Isaiah 43:1</i>' 
	quote[13] = 'Do not fear, for I am with you. <i>Isaiah 41:10</i>' 
	quote[14] = 'The Lord is close to the brokenhearted and saves those who are crushed in spirit. <i>Psalm 34:18</i>' 
	quote[15] = 'Be strong and courageous. For the Lord your God will be with you wherever you go. <i>Joshua 1:9</i>' 
	quote[16] = 'The Lord Jesus Christ said, "I tell you the truth, my Father will give you whatever you ask in my name." <i>John 16:23</i>' 
	quote[17] = 'If you believe, you will receive whatever you ask for in prayer. <i>Matthew 21:22</i>' 
	return quote[a]
}

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);}

function gen_link(fayls) {
	var my_links = new Array()
	my_links[0] = 'http://cfc1.tripod.com/cgi-bin/guestbook.htm'
	my_links[1] = 'view1.htm'
	my_links[2] = 'view2.htm'
	my_links[3] = 'view3.htm'
	my_links[4] = 'view4.htm'
	my_links[5] = 'view5.htm'
	my_links[6] = 'view6.htm'
	my_links[7] = 'view7.htm'
	my_links[8] = 'view8.htm'
	my_links[9] = 'view9.htm'

	var new_links = ''
	var x = 0
	var y = 0
	for (i=my_links.length; i>=1; i--){
		x++
		if (my_links[i] == fayls) {
			new_links =  new_links + '<b>' + x + "</b> "
		} else {
			new_links =  new_links + '<a href="' + my_links[y] + '">' + x + '</a> '
		}
		if (y == 0) {
			y = my_links.length - 1
		} else {
			y--
		}
	}
	return new_links
}

document.write('<link rel="STYLESHEET" type="text/css" href="cfc.css">');
document.write('</head>');
document.write('<body class="bg" vlink="#0000FF" topmargin="8" leftmargin="8" rightmargin="0" marginwidth="0">');

function validateCode() {
	txt = document.gbook.comments.value;
	if ((txt.indexOf("<") > -1) || (txt.indexOf(">") > -1)){
		alert("Sorry HTML code are not allowed.");
		document.gbook.comments.focus();
		return false;
	}
	return true;
}
// -->
