var Quotation = new Array();

function loadQuotations() {
	Quotation[0] = "And they that know thy name will put their trust in thee: for thou, LORD, hast not forsaken them that seek thee.<br /><br /><b>Psalm 9:9</b>";
	Quotation[1] = "And Jesus said unto him, ... For the Son of man is come to seek and to save that which was lost.<br /><br /><b>Luke 19:9,10</b>";
	Quotation[2] = "But God commendeth his love toward us, in that, while we were yet sinners, Christ died for us.<br /><br /><b>Romans 5:8</b>";
	Quotation[3] = "... God was in Christ, reconciling the world unto himself, not imputing their trespasses unto them; and hath committed unto us the word of reconciliation.<br /><br /><b>2 Corinthians 5:19</b>";
	Quotation[4] = "These things I have spoken unto you, that in me ye might have peace. In the world ye shall have tribulation: but be of good cheer; I have overcome the world.<br /><br /><b>John 16:33</b>";
	Quotation[5] = "... I am come that they might have life, and that they might have it more abundantly.<br /><br /><b>John 10:10</b>";
	Quotation[6] = "Jesus said unto her, I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live: And whosoever liveth and believeth in me shall never die. Believest thou this?<br /><br /><b>John 11:25-26</b>";
	Quotation[7] = "For by grace are ye saved through faith; and that not of yourselves: it is the gift of God: Not of works, lest any man should boast.<br /><br /><b>Ephesians 2:8,9</b>";
	Quotation[8] = "Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me.<br /><br /><b>John 14:6</b>";
	Quotation[9] = "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.<br /><br /><b>John 3:16</b>";
	Quotation[10] = "For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord.<br /><br /><b>Romans 6:23</b>";
	Quotation[11] = "For all have sinned, and come short of the glory of God;<br /><br /><b>Romans 3:23</b>";
	Quotation[12] = "Not by works of righteousness which we have done, but according to his mercy he saved us, by the washing of regeneration, and renewing of the Holy Ghost;<br /><br /><b>Titus 3:5</b>";
	Quotation[13] = "That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved.<br /><br /><b>Romans 10:9</b>";
}

function showQuotation() {
	var Q = Quotation.length;
	var whichQuotation=Math.round(Math.random()*(Q-1));
	document.write(Quotation[whichQuotation]);
	return false;
}


function popupWindows(in_address, in_windowName, in_parameters) {
	if(!window.focus)
		return true;
	try {
		//windowName = in_windowName;
		windowName = window.location.hostname.replace(/\./g,"_")+"_"+in_windowName;
		var win=window.open(in_address, windowName, in_parameters);
		win.focus();
	}
	catch(e) {}
	return false;
}


var g_address;
var g_win;


function popupAfterDelay() {
	//alert("oldaddress="+g_win.location+" setting address="+g_address);
	g_win.location = g_address;
	//alert("done");
}

function delayPopup(in_address, in_windowName, in_parameters) {
	windowName = window.location.hostname.replace(/\./g,"_")+"_"+in_windowName;
	//alert("in_windowName="+in_windowName+" windowName="+windowName);
	try {
		// Put this back in 08/12/2005 - previous error due to security settings?  (need to allow scripts or put this site in trusted list)
		var win=window.open('blank.html', windowName, in_parameters);
		// The above failing on home pc when opening second window ?? 05/28/2005 pvd
		//var win=window.open('', '', in_parameters);
		win.focus();
		with(win.document) {
			open();
			write('<body style="background: #753;">');
			write('Please wait while downloading file: <em>');
			write(in_address);
			write('</em>');
			write('</body>');
			close();
		}
		g_address = in_address;
		g_win = win;
		window.setTimeout("popupAfterDelay();", 1200);
	}
	catch(e) {
		alert("exception "+e.name+" "+e.message);
	}
	return false;
}

function sendmail(domain,user) {
	document.location.href = "mailto:" + user + "@" + domain;
}
