<!--
	var testing="/revealingTruths/";
	//var testing="";
	devpth=location.href;
	if(devpth.match("test/")) devpth="test/";
	else devpth="";

	var ric=document.domain;
	if (document.domain=="localhost"){
		var basedir="http://localhost/"+testing+devpth;
		var secdir="http://localhost/"+testing+devpth;
	}
	else{
		//var basedir="http://localhost/revealingtruths/"+testing;	//Base directory
		var basedir="http://www.revealingtruths.com/"+devpth;	//Base directory
		//var basedir="http://www.sofstrat.com/"+testing;
		var secdir="https://deona.site-secure.net/idsol/"+testing+devpth;
	}	//*/
	
	//Defualt Prefix for open window
	defuseprfx=basedir+"revealingTruths.php";
	basedir="";

	var day = new Date()
	var mn = "th";
	var colorovr="#293F70"
	var colorout="white"		//"#F3EAB9"
	
	var defSlogan_line1="Supporting";
	var defSlogan_line2="your";
	var defSlogan_line3="strategic goals";
	
	bookmarkurl="http://www.revealingtruths.com/"
	bookmarktitle="Revealing Truths Ministry - always pointing to truth"

/*********************************************************************
					BEGIN CONTACT VARIABLES
 *********************************************************************/
	var name="revealingtruths";
	var busName="Revealing Truths Ministry";
	var addr1="P. O. Box 25087";
	var addr2=""
	var city="Greenville"
	var state="SC"
	var zip="29616-5087"
	var located=" ";
	var brpoint="<br>"
	var busemail="customerservice@revealingtruths.com";
	var vemail="info@revealingtruths.com";
	var vphone="(864) 414-7813";
	var vfax="(800) 310-0575";
	var vcell="";
	var votherphone="";
	
	var ArrayNum=3;
	var ArrayDim=2;
	var servicelist= new Array(3);
	servicelist[0]=new Array(2);
	servicelist[0][0]="General Info";
	servicelist[0][1]="info@revealingtruths.com";

	servicelist[1]=new Array(2);
	servicelist[1][0]="Sales";
	servicelist[1][1]="sales@revealingtruths.com";

	servicelist[2]=new Array(2);
	servicelist[2][0]="Customer Service";
	servicelist[2][1]="service@revealingtruths.com";
	

	function listEmail(brk, twocol, tcolor){
			//alert("test");
		if(!tcolor){tcolor="#fff";}
		if(!brk) brk=brpoint;
		
		if(!twocol) { 
			rapst="";
			rapst1="";
			rapfn="";
		}
		else {
			rapst="<div style='color:"+tcolor+";float:left;width:38%;text-align:right;'>";
			raps1t="<div style='text-align:left;width:62%;'>";
			rapfn="</div>";
		}
		for (p=0;p<ArrayNum;p++){
			document.write(rapst+"<a style='color:"+tcolor+";' href='mailto:"+servicelist[p][1]+"'>"+servicelist[p][0]+"</a>"+brk+rapfn);
			if(!twocol){}
			else{
				document.write(raps1t+servicelist[p][1]+rapfn);
			}
		}	//for (p=0;p<ArrayNum;p++)
		
	}	//function listEmail()
/*********************************************************************
					END CONTACT VARIABLES
 *********************************************************************/
	

/*********************************************************************
					BEGIN MARQUEE CODING VARIABLES
 *********************************************************************/
//Specify the marquee's width (in pixels)
var marqueewidth="280px";
//Specify the marquee's height
var marqueeheight="15px";
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=1;
//configure background color:
var marqueebgcolor="#FFFFFF";
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1;
//Interval between each frame speed
var intrv=20;
//font size for marquee text
var fsize=15;

//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
var marqueecontent='<nobr><font face="Arial" style="font-size:'+fsize+';color:#C5E7E8;">"The God of heaven Himself will prosper us; therefore we His servants will arise and build..." <a href="http://bible.gospelcom.net/bible?language=english&version=NKJV&passage=Nehemiah+2:20" target="_blank">Nehemiah 2:20</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></nobr>';

////NO NEED TO EDIT BELOW THIS LINE////////////
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualwidth=''
var cross_marquee, ns_marquee
/*********************************************************************
					END MARQUEE CODING VARIABLES
 *********************************************************************/

 /*********************************************************************
					BEGIN SLIDESHOW VARIABLE
 *********************************************************************/

	/***********************************************
	* Fade-in image slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
	* This notice MUST stay intact for legal use
	* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
	***********************************************/
	
	var slideshow_width='221px' //SET IMAGE WIDTH
	var slideshow_height='55px' //SET IMAGE HEIGHT
	var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
	
	var fadeimages=new Array()
	//SET 1) IMAGE PATHS, 2) optional link, 3), optional link target:
	fadeimages[0]=["images/slide/trumpetSide.jpg", "?study", ""] //plain image syntax
	fadeimages[1]=["images/slide/health.jpg", "?health", ""] //image with link syntax
	fadeimages[2]=["images/slide/info.jpg", "?news", ""] //image with link and target syntax
	
	//alert(fadeimages[0]);
	////NO need to edit beyond here/////////////
	var preloadedimages=new Array()
	var ie4=document.all
	var dom=document.getElementById
	
	var curpos=10
	var degree=10
	var curcanvas="canvas0"
	var curimageindex=0
	var nextimageindex=1

/*********************************************************************
					END SLIDESHOW VARIABLE
 *********************************************************************/

/*********************************************************************
					BEGIN TEMPORARILY DISPLAY SOMETHING FUNCTION
 *********************************************************************/

function expnew(when, what, isimage) {
	//expnew("July 7, 2005", "THIS IS A TEST")
	//expnew("July 7, 2005", null, true)
	//expnew("July 7, 2005", "", null)
	
	var image = basedir+"images/common/new1.gif"
	
	if (typeof isimage == 'undefined' || isimage=='' || isimage == null) isimage=false;
	
	if (isimage) {
		if (typeof what == 'undefined' || what=='' || what == null) what=image;
		else what=basedir+what;
		what="<img src="+what+">"
	}	//if(isimage)

	when = new Date(when)
	date = new Date()
	
	if (when.getTime() > date.getTime()) {
		document.write(what)
	}	//if (when.getTime() > date.getTime())
}	//function expnew(when, what, isimage=false) 

/*********************************************************************
					END TEMPORARILY DISPLAY SOMETHING FUNCTION
 *********************************************************************/

/*********************************************************************
					BEGIN POP-UP FADE IN BOX VARIABLES
 *********************************************************************/
var endtime="July 9, 2005"
var textColor="blue"
var p_fontSize="16px"
var pshow_Image=false
var pb_div='<DIV id="fadeinbox" style="filter:progid:DXImageTransform.Microsoft.RandomDissolve(duration=1) progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135) ; -moz-opacity:0">'
var pe_div="</DIV>"
var p_showText="<br><font style='color:"+textColor+";font-size:"+p_fontSize+"'>We will be closed July 4 - July 9<br>For the Holiday and Inventory Count!</font><br><br>"
var p_hide='<div align="right"><a href="#" onClick="cookieOff();return false">Turn Off</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onClick="hidefadebox();return false">Hide Box</a></div>'

var p_showWhat=pb_div+p_showText+p_hide+pe_div

/***********************************************
* Sticky Note script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
* Go to http://www.dynamicdrive.com/ for full source code
***********************************************/

//Specify display mode. 3 possible values are:
//1) "always"- This makes the fade-in box load each time the page is displayed
//2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session
//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...
// For example, 2 would display the box about (1/2) 50% of the time the page loads.

var displaymode="always"

var enablefade="yes" //("yes" to enable fade in effect, "no" to disable)
var autohidebox=["yes", 15] //Automatically hide box after x seconds? [yes/no, if_yes_hide_after_seconds]
var showonscroll="yes" //Should box remain visible even when user scrolls page? ("yes"/"no)
var IEfadelength=1 //fade in duration for IE, in seconds
var Mozfadedegree=0.05 //fade in degree for NS6+ (number between 0 and 1. Recommended max: 0.2)

////////No need to edit beyond here///////////
/*
if (get_cookie("fadedin")!="no"){
	if (parseInt(displaymode)!=NaN)
		var random_num=Math.floor(Math.random()*displaymode)
	
	if (displaymode=="oncepersession" && get_cookie("fadedin")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){
		if (window.addEventListener)
			window.addEventListener("load", initfunction, false)
		else if (window.attachEvent)
			window.attachEvent("onload", initfunction)
		else if (document.getElementById)
			window.onload=initfunction

		if(!get_cookie("fadedin")=="no")
			document.cookie="fadedin=yes"
	}	//if (displaymode=="oncepersession" && get_cookie("fadedin")=="" || displaymode=="always"...
}	//if (get_cookie("fadedin")!="no") document.cookie
*/
/*********************************************************************
					END POP-UP FADE IN BOX VARIABLES
 *********************************************************************/

/*********************************************************************
					BEGIN POP-UP FADE IN BOX FUNCTION
 *********************************************************************/
function cookieOff(){
	document.cookie="fadedin=no"
}	//function cookieOff()

function popup_Text(){
	expnew(endtime, p_showWhat,  pshow_Image)
}	//function popup_Text()
 
function displayfadeinbox(){
	var ie=document.all && !window.opera
	var dom=document.getElementById
	iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
	objref=(dom)? document.getElementById("fadeinbox") : document.all.fadeinbox
	var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
	var docwidth=(ie)? iebody.clientWidth : window.innerWidth
	docheight=(ie)? iebody.clientHeight: window.innerHeight
	var objwidth=objref.offsetWidth
	objheight=objref.offsetHeight
	objref.style.left=docwidth/2-objwidth/2+"px"
	objref.style.top=scroll_top+docheight/2-objheight/2+"px"

	if (showonscroll=="yes")
		showonscrollvar=setInterval("staticfadebox()", 50)
	
	if (enablefade=="yes" && objref.filters){
		objref.filters[0].duration=IEfadelength
		objref.filters[0].Apply()
		objref.filters[0].Play()
	}	//if (enablefade=="yes" && objref.filters)
	
	objref.style.visibility="visible"
	if (objref.style.MozOpacity){
		if (enablefade=="yes")
			mozfadevar=setInterval("mozfadefx()", 90)
		else{
			objref.style.MozOpacity=1
			controlledhidebox()
		}	//if (enablefade=="yes") else
	}	//if (objref.style.MozOpacity)
	else
		controlledhidebox()
		
}	//function displayfadeinbox()

function mozfadefx(){
	if (parseFloat(objref.style.MozOpacity)<1)
		objref.style.MozOpacity=parseFloat(objref.style.MozOpacity)+Mozfadedegree
	else{
		clearInterval(mozfadevar)
		controlledhidebox()
	}	//if (parseFloat(objref.style.MozOpacity)<1)
}	//function mozfadefx()

function staticfadebox(){
	var ie=document.all && !window.opera
	var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
	objref.style.top=scroll_top+docheight/2-objheight/2+"px"
}	//function staticfadebox()

function hidefadebox(){
	objref.style.visibility="hidden"
	if (typeof showonscrollvar!="undefined")
		clearInterval(showonscrollvar)
}	//function hidefadebox()

function controlledhidebox(){
	if (autohidebox[0]=="yes"){
		var delayvar=(enablefade=="yes" && objref.filters)? (autohidebox[1]+objref.filters[0].duration)*1000 : autohidebox[1]*1000
		setTimeout("hidefadebox()", delayvar)
	}	//if (autohidebox[0]=="yes")
}	//function controlledhidebox()

function initfunction(){
	setTimeout("displayfadeinbox()", 100)
}	//function initfunction()

function get_cookie(Name) {
	var search = Name + "="
	var returnvalue = ""
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) {
			offset += search.length
			end = document.cookie.indexOf(";", offset)
			if (end == -1)
				end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}	//if (offset != -1)
	}	//if (document.cookie.length > 0)
	return returnvalue;
}	//function get_cookie(Name)

/*********************************************************************
					END POP-UP FADE IN BOX FUNCTION VARIABLES
 *********************************************************************/

/*********************************************************************
					BEGIN FONT HIGHLIGHT VARIABLES
 *********************************************************************/
	var dhtml = 'NO', no = 0, enlarge_font = 1;
	var colorovr="#293F70"
	var colorout="white"		//"#F3EAB9"

	if (document.layers)
	    dhtml = 'NN'; // Netscape 4+ feature detected
	if (document.all) 
	    dhtml = 'IE'; // IE 4+ feature detected
/*********************************************************************
					END FONT HIGHLIGHT VARIABLES
 *********************************************************************/

/*********************************************************************
					BEGIN MARQUEE functionS
 *********************************************************************/

function scrollmarquee(){
	if (iedom){
		if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
		cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
		else
		cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
	}	//if (iedom)
	else if (document.layers){
		if (ns_marquee.left>(actualwidth*(-1)+8))
		ns_marquee.left-=copyspeed
		else
		ns_marquee.left=parseInt(marqueewidth)+8
	}	//else if (document.layers)
}	//function scrollmarquee()

function populate(){
	if (iedom){
		cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
		cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
		cross_marquee.innerHTML=marqueecontent
		actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
	}	//if (iedom)
	else if (document.layers){
		ns_marquee=document.ns_marquee.document.ns_marquee2
		ns_marquee.left=parseInt(marqueewidth)+8
		ns_marquee.document.write(marqueecontent)
		ns_marquee.document.close()
		actualwidth=ns_marquee.document.width
	}	//else if (document.layers)
	lefttime=setInterval("scrollmarquee()",intrv)
}	//function populate()

function startMarquee(){

	if (iedom)
	document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
	
	if (iedom||document.layers){
		with (document){
			document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
			if (iedom){
				write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')
				write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
				write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>')
				write('</div></div>')
			}
			else if (document.layers){
				write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')
				write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
				write('</ilayer>')
			}	//else if (document.layers)
			document.write('</td></table>')
		}	//with (document)
	}	//if (iedom||document.layers)
}	//function startMarquee()

/*********************************************************************
					END MARQUEE functionS
 *********************************************************************/

 
/*********************************************************************
					BEGIN SLIDESHOW FUNCTION
 *********************************************************************/

function beginSlideShow(){
	for (p=0;p<fadeimages.length;p++){
		preloadedimages[p]=new Image()
		preloadedimages[p].src=fadeimages[p][0]
	}
	
	if (ie4||dom)
		document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div  id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10;visibility: hidden"></div></div>')
	else
		document.write('<img name="defaultslide" src="'+fadeimages[0][0]+'">')
	
	/*
	if (ie4||dom)
		window.onload=startit
	else
		setInterval("rotateimage()",pause)
	*/
}	//function beginSlideShow()

function fadepic(){
	if (curpos<100){
		curpos+=10
		if (tempobj.filters)
			tempobj.filters.alpha.opacity=curpos
		else if (tempobj.style.MozOpacity)
			tempobj.style.MozOpacity=curpos/101
	}	//if (curpos<100)
	else{
		clearInterval(dropslide)
		nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
		tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
		tempobj.innerHTML=insertimage(nextimageindex)
		nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0
		var tempobj2=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
		tempobj2.style.visibility="hidden"
		setTimeout("rotateimage()",pause)
	}	//if (curpos<100) else
}	//function fadepic()

function insertimage(i){
	var tempcontainer=fadeimages[i][1]!=""? '<a href="'+fadeimages[i][1]+'" target="'+fadeimages[i][2]+'">' : ""
	tempcontainer+='<img src="'+fadeimages[i][0]+'" border="0">'
	tempcontainer=fadeimages[i][1]!=""? tempcontainer+'</a>' : tempcontainer
	return tempcontainer
}

function rotateimage(){
	if (ie4||dom){
		resetit(curcanvas)
		var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
		crossobj.style.zIndex++
		tempobj.style.visibility="visible"
		var temp='setInterval("fadepic()",50)'
		dropslide=eval(temp)
		curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
	}
	else
		document.images.defaultslide.src=fadeimages[curimageindex][0]
	curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0
}	//function rotateimage()

function resetit(what){
	curpos=10
	var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
	if (crossobj.filters)
		crossobj.filters.alpha.opacity=curpos
	else if (crossobj.style.MozOpacity)
		crossobj.style.MozOpacity=curpos/101
}	//function resetit(what)

function startit(){
	var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
//alert("start here with Jesus Test " +curcanvas)	
	crossobj.innerHTML=insertimage(curimageindex)
	rotateimage()
}	//function startit()

//alert ("try Jesus");
function init(){
	if (ie4||dom){
//alert("go with God");
		startit();
	}
	else
		setInterval("rotateimage()",pause);

}

/*********************************************************************
					END SLIDESHOW FUNCTION
 *********************************************************************/

/*********************************************************************
					BEGIN GENERAL NOTICE function
 *********************************************************************/

function SetCookie(cookieName,cookieValue,nDays) {
	var today = new Date();
	var expire = new Date();
	if (nDays==null || nDays==0) nDays=1;
	
	expire.setTime(today.getTime() + 3600000*24*nDays);
	document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString();
}


function successmessage(){
	document.writeln(topleftmenutext);
}

function gotoURL(url){
	window.location=url;
}	//function gotoURL(url)
/*********************************************************************
					END GENERAL NOTICE function
 *********************************************************************/

/*********************************************************************
					BEGIN CONTACT function
 *********************************************************************/
function mailAdr(nm){
	if(!nm) {nm=""}
	else {
		document.writeln("<b>"+busName+"</b>"+brpoint);
	}
	
	document.writeln(addr1+brpoint);
	if(addr2){document.writeln(addr2+brpoint);}
	document.writeln(city +", " + state + " " + zip);
}

function phone(txt){
	if(!txt){}
	else {document.writeln(txt);}
	document.writeln(vphone);
}

function fax(txt){
	if(!txt){}
	else {document.writeln(txt);}
	document.writeln(vfax);
}

function cell(txt){
	if(!txt){}
	else {document.writeln(txt);}
	document.writeln(vcell);
}

function otherphone(txt){
	if(!txt){}
	else {document.writeln(txt);}
	document.writeln(votherphone);
}

function locatedText(txt){
	if(txt){document.writeln(txt);}
	document.writeln(located);
}

function email(txt,otxt,tcolor){
	if (!tcolor){tcolor="#fff";}
	tcolor="style=\"color : "+tcolor+";\"";
	if(!txt){
		document.writeln("<a "+tcolor+"href='mailto:'"+vemail+">"+vemail+"</a>");
	}
	else {
		if(!otxt){}
		else {document.writeln(otxt);}
		document.writeln("<a href='mailto:"+txt+"'>"+txt+"</a>");
	}	//if(txt){
}	//function emailaddress(txt,otxt)

function emailaddress(txt,wrdtxt){
	if(!txt){}
	else {
		/*
		if(!otxt){}
		else {document.writeln(otxt);}
		*/
		if(!wrdtxt){wrdtxt=txt;}
		//else {document.writeln(wrdtxt);}
		document.writeln("<a href='mailto:"+txt+"'>"+wrdtxt+"</a>");
	}	//if(txt){
}	//function emailaddress(txt,otxt)

/*********************************************************************
					END CONTACT function
 *********************************************************************/
	
	
/*********************************************************************
					BEGIN 	DATE/TIME FUNCTIONS
 *********************************************************************/
 function txtWithseason(txt, plHld, gen){
 	/*
		plHld=1 			- place date and the begin
		plHld=0				- place at the end
		plHld=anything else	- 	place it where plHld exists
		
		gen=true			- Return general day
		gen=false			- Return season of day (morning, night, etc.)
	*/
	
	if (typeof txt!='undefine') {
		if (typeof gen!='undefine' && (gen==true)) {
			seasn=dayseason();
		}
		else {
			seasn=timeofday();
		}
		
		if (txt.indexOf(plHld)>=0) {
			rtnTxt=txt.replace(plHld,seasn);
		}	//if (txt.indexOf(plHld)>=0)
		else if(plHld==1) {
			rtnTxt=seasn +" " +txt;
			rtnTxt=txt.replace("  "," ");			//Remove possible double space
		}	//else if(plHld==1)
		else{
			rtnTxt=txt + " " + seasn;
			rtnTxt=txt.replace("  "," ");			//Remove possible double space
		}	//else
		document.write(rtnTxt);
	}	//if (typeof txt!='undefine')
	
 }	//txtWithseason(txt, plHld)
 
	function gettheDate(prefx, postfx) {
		var dt= new Array(13);
		
		dt[1]="January";
		dt[2]="February";
		dt[3]="March";
		dt[4]="April";
		dt[5]="May";
		dt[6]="June";
		dt[7]="July";
		dt[8]="August";
		dt[9]="September";
		dt[10]="October";
		dt[11]="November";
		dt[12]="December";
		//Todays = new Date();
		
		mday =day.getDate();
		// Fix the "mn" variable if needed:
		if (mday == 1) { mn = "st"; }
		else if (mday == 2) { mn = "nd"; }
		else if (mday == 3) { mn = "rd"; }
		else if (mday == 21) { mn = "st"; }
		else if (mday == 22) { mn = "nd"; }
		else if (mday == 23) { mn = "rd"; }
		else if (mday == 31) { mn = "st"; }

		//alert(day.getYear()+" is year!");
		TheDate = "" + dt[(day.getMonth()+ 1)] +" "+ day.getDate() + mn +", " + day.getYear() 
		document.writeln(prefx+TheDate+postfx);
		return ;
	}

	function dayseason(){
		ds=timeofday()
		if (ds=="morning") ds="day"
		return ds
	}	//function dayseason()
 
 function timeofday(){
 	var timeday="";

	hr = day.getHours()
	if (hr>=1 && hr<12) timeday="morning"
	else if(hr>=12 && hr<17) timeday="afternoon"
	else if(hr>=17 && hr<21) timeday="evening"
	else if(hr>=21 && hr<24) timeday="night"
	else timeday="Morning"
	return timeday;
 }
 
	function curDate(layout) {
		document.writeln(""+gettheDate(layout)+"");
	}
/*********************************************************************
					END DATE/TIME FUNCTIONS
 *********************************************************************/
/*********************************************************************
					BEGIN MENU FUNCTIONS
 *********************************************************************/
function aMenu(bt, pic,clr,aclr,bsize,asize,whichpage){
	//alert(clr+", "+aclr);
	//exit;
	oneclr=clr;
	twoclr=clr;
	threeclr=clr;
	fourclr=clr;
	fiveclr=clr;
	sixclr=clr;
	oneaclr=aclr;
	twoaclr=aclr;
	threeaclr=aclr;
	fouraclr=aclr;
	fiveaclr=aclr;
	sixaclr=aclr;
	if (whichpage=="one") oneclr="#F89E2A"
	if (whichpage=="two") twoclr="#F89E2A"
	if (whichpage=="three") threeclr="#F89E2A"
	if (whichpage=="four") fourclr="#F89E2A"
	if (whichpage=="five") fiveclr="#F89E2A"
	if (whichpage=="six") sixclr="#F89E2A"
	
	dLink(basedir+'','Home',oneclr,oneaclr,bsize,asize);
	if(pic=="nopic") 
		sep="&nbsp;&nbsp;<font color=\""+clr+"\">|</font>&nbsp;&nbsp;"
	else
		sep="<img src='"+basedir+"images/common/arrows.gif' width='14' height='11' border='0'>";
	
	//Home | About Us | Curriculum |  PTA | Events | Contact Us
	document.writeln("				&nbsp;"+sep+"&nbsp;");
	//dLink('http://www.revealingtruths.com/cgi-bin/wmail/wmail.pl','Check Email',twoclr,twoaclr,bsize,asize);
	dLink(basedir+'?aboutusweb','About Us',twoclr,twoaclr,bsize,asize);
	document.writeln("				&nbsp;"+sep+"&nbsp;");
	dLink(basedir+'?webservices','Curriculum',threeclr,threeaclr,bsize,asize);
	document.writeln("				&nbsp;"+sep+"&nbsp;");
	dLink(basedir+'?pricing','PTA',fiveclr,fiveaclr,bsize,asize);
	document.writeln("				&nbsp;"+sep+"&nbsp;");
	dLink(basedir+'?pricing','Events',fiveclr,fiveaclr,bsize,asize);
	document.writeln("				&nbsp;"+sep+"&nbsp;");
	dLink(basedir+'?pricing','Contact Us',fiveclr,fiveaclr,bsize,asize);
	document.writeln("				&nbsp;"+sep+"&nbsp;");
	/*dLink(basedir+'','Support','white','100','100');
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	
	dLink(basedir+'','Downloads','white','100','100');
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	*/
	if(bt=="Yes") footertag()
}	//function aMenu()

function textMenu(bt, pic,clr,aclr,bsize,asize,whichpage,menu,ref){
	/*
		bsize - size and font before most over, can be
				size alone or size and font
				(i.e. - '12,Times Romans')
		asize - size and font when mouse is over, can be
				size alone or size and font
				(i.e. - '12,Times Romans')
		
	*/
	//textMenu('','nopic','','','12,Arial','','1','Home,About Us,Curriculum, PTA,Events,Contact Us','')
	//textMenu('','nopic','pink','green','12,Arial Narrow','10','1','Home,About Us,Curriculum, PTA,Events,Contact Us',',about.htm,cur.htm,pta.htm,event.htm,contact.htm')
	
	//Initialize variables
	fntSz="12px";
	fntFam="Arial";
	curColor="#F89E2A";
	sMenu = menu.split(',');
	href = ref.split(',');
	shwSep = false;
	writeMenu="";
	j=0;
	i=whichpage-1;
	
	//Check if a font family was given mouse over
	fntA=asize.split(',');
	if(typeof fntA[0] != 'undefined') fntSzA=fntA[0]+'px';
	else fntSzA=fntSz;
	
	if(typeof fntA[1] != 'undefined') fntFamA=fntA[1];
	else fntFamA=fntFam;

	//Check if a font family was given
	fntB=bsize.split(',');
	if(typeof fntB[0] != 'undefined') fntSz=fntB[0]+'px';
	if(typeof fntB[1] != 'undefined') fntFam=fntB[1];

	if(pic=="nopic") 
		sep="<font color=\""+clr+"\">|</font>"
	else
		sep="<img src='"+basedir+"images/common/arrows.gif' width='14' height='11' border='0'>";
	
	styl='<style>'+"\n"+
		'	a#mnu { '+"\n"+
		'		text-decoration: none\;'+"\n"+
		'		color :'+clr+'\;'+"\n"+
		'	}'+"\n"+
		'	a:hover#mnu {'+"\n"+
		'		color :'+aclr+'\;'+"\n"+
		'		font-size:'+fntSzA+"\;\n"+
		'		font-family:'+fntFamA+"\;\n"+
		'	}'+"\n"+
		'	#mnu_cur{'+"\n"+
		'		color :'+curColor+'\;'+"\n"+
		'	}'+"\n"+
	'</style>'+"\n";
	
	k=0;
	//Parse through the menu variable; check for 7 menus
	while (k<=6) {
		if (j > 1) return;
		if (typeof sMenu[k] != 'undefined'){
			if(shwSep == true){
				writeMenu=writeMenu + "&nbsp\;"+sep+"&nbsp\;\n";
			}	//if(shwSep == True)
			
			mrk="A";
			stlNm="mnu";
			if(k==i) {
				mrk="Font"; 
				stlNm="mnu_cur";
			}
			//else writeMenu=writeMenu + "mnu_cur";
			
			writeMenu=writeMenu + '<'+mrk+'  id="'+ stlNm + '" HREF="';
			if (typeof href[k] != 'undefined') writeMenu=writeMenu + href[k];
			//document.writeln(
			writeMenu=writeMenu +'" >'+sMenu[k]+'<\/'+mrk+'>'+"\n";
			shwSep=true;
		}	//if (typeof sMenu[0] != 'undefined')
		else {shwSep = false}
		k=k+1;
	}	//while (k<6)
	
	document.writeln(styl);
	document.writeln(writeMenu);
		
}//function textMenu(bt, pic,clr,aclr,bsize,asize,whichpage,menu,ref){

function access(aBase,suf){
	if (!aBase){
		aBase="";
	}
	
	if (!suf){
		suf="";
	}
	else if (suf=="Software"){
		suf="of";
	}

	//contactusof
	document.write("				<font class='smfont'>");
	document.write("					<a href='"+aBase+"?contactus"+suf+"' class='orange' style='font-weight:bold;font-size:13px;' title='Contact US'>Contact Us</a>  |"); 
	document.write("					<a href='"+aBase+"'><img src='"+aBase+"images/common/home.gif' width='13'"); 
	document.write("					height='14' border='0' alt='Home'></a>&nbsp;");
	document.write("					|&nbsp;");
	document.write("					<a href='"+basedir+"?mail'>");
	document.write("						<img src='"+aBase+"images/common/email.gif' "); 
	document.write("						border='0' alt='Check Email'>");
	document.write("					</a>&nbsp;&nbsp;");
	document.write("					|&nbsp;");
	document.write("					<a href='?admin'>");
	document.write("						<img src='"+aBase+"images/common/key.gif' width='9'"); 
	document.write("						height='14' border='0' alt='Key Info'>");
	document.write("					</a>&nbsp;&nbsp;");
	document.write("				</font>");
}	//function access()

function htmlheader(){
	document.writeln("<script type='text/javascript'>");
	document.writeln("//HV Menu- by Ger Versluis (http://www.burmees.nl/)");
	document.writeln("//Submitted to Dynamic Drive (http://www.dynamicdrive.com)");
	document.writeln("//Visit http://www.dynamicdrive.com for this script and more");
	document.writeln("function Go(){return}");
	document.writeln("</script>");
	document.writeln("<script type='text/javascript' src='"+basedir+"functions/exmplmenu_var.js'></script>");
	document.writeln("<script type='text/javascript' src='"+basedir+"functions/menu_com.js'></script>");
	document.writeln("<noscript>Your browser does not support script</noscript>");
}	//
 
function manualMenu(){
	//alert("this is a test");
	//htmlheader();
	document.writeln("			<div id='MenuPos' style='position:absolute;margin-top : -9px;margin-left:-22;'> </div>");
}	//manualMenu()

/*********************************************************************
					END MENU FUNCTIONS
 *********************************************************************/
/*********************************************************************
					BEGIN WINDOW FUNCTIONS
 *********************************************************************/
function lrgPrint(urlinfo){ 
	if(urlinfo=="webinfo"){
		url="otherinfo/webdevinfo.htm";
	}	//
	else if(urlinfo=="priceinfo"){
		url="otherinfo/webpricingChart.htm";
	}	//
	/*
	alert(basedir+" test");
	*/
	winOpen(url,'cinfo','468','600','100','100','1',basedir);
		/*
	<a href="javascript:winOpen('<?echo $basehtml;?>otherinfo/webdevinfo.htm','cinfo','668','600','100','100','1')" style="color:blue;">
		Click Here</a>
		*/
	
}	//function lrgPrint()
 
function winOpen(url,winName,h,w,l,t,s,useprfx){
	/*
	if(typeof useprfx == "undefined") {useprfx="";} else {useprfx=defuseprfx;}
	*/

	if(!useprfx) {useprfx=defuseprfx;}
	else if(useprfx == "rev") useprfx=basedir;
	url=useprfx+url;
	
	
//alert("test "+url);

	if(s=="") s='no';
	
	msg=window.open(url,winName,'width='+w+',height='+h+',left='+l+',top='+t+',titlebar=no,scrollbars='+s);
	msg.window.onblur="window.close()";
	msg.focus();

	//msg.document.titlebar=false;

}	//function winOpen(){

/*********************************************************************
					END WINDOW FUNCTIONS
 *********************************************************************/

/*********************************************************************
					BEGIN IMAGES FUNCTIONS
 *********************************************************************/
function MM_preloadImages() { //v3.0
  var d=document,kj; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
   
}
/*********************************************************************
					END IMAGES FUNCTIONS
 *********************************************************************/
 
/*********************************************************************
					BEGIN HEADER/FOOTER FUNCTIONS
 *********************************************************************/

function footertag(stYear,prvPolicy, terms){
	//			revealingtruths Technology &copy Copyright 2003 - 2004.  All rights reserved.

	if (!stYear) {
		stYear=day.getYear();
	}
	else {
		stYear=stYear+" - "+day.getYear();
	}
	document.writeln("<font class='orange'>"+busName+" &copy "+stYear+"</font>");

	document.writeln(".&nbsp;&nbsp;All rights reserved.");
	if(prvPolicy==true)
		document.write("&nbsp;&#183&nbsp;<a class='orange' href='?policy'>Privacy Policy</a>")
	
	if(terms==true)
		document.write("&nbsp;&#183&nbsp;<a class='orange' href='?servicelevelagreement'>Terms of Use</a>")
}	//function footertag()
/*********************************************************************
					BEGIN HEADER/FOOTER FUNCTIONS
 *********************************************************************/

/*********************************************************************
					BEGIN FONT HIGHLIGHT FUNCTIONS
 *********************************************************************/
function mover(object,afr,aclr) {
    //alert ("Can we win mover???");
	if (dhtml == 'IE') {
        eval(object + '.style.color = "'+aclr+'"');
        if (enlarge_font==1)
           eval(object + '.style.fontSize = "'+afr+'%"');
        }	//if (dhtml == 'IE')
    else if (dhtml == 'NN') {
        eval('document.layers["' + object +
             'b"].moveBelow(document.layers["' + object + 'a"])');
        eval('document.layers["' + object + 'b"].visibility="hide"');
        eval('document.layers["' + object + 'a"].visibility="show"');
        }	//else if (dhtml == 'NN')
}	//function mover(object)

function mout(object,bfr,bclr) {
    //alert ("Can we win???");
	if (dhtml == 'IE') {
        eval(object + '.style.color = "'+bclr+'"');
        eval(object + '.style.fontSize = "'+bfr+'%"');
        }
    else if (dhtml == 'NN') {
        eval('document.layers["' + object +
            'a"].moveBelow(document.layers["' + object + 'b"])');
        eval('document.layers["' + object + 'a"].visibility="hide"');
        eval('document.layers["' + object + 'b"].visibility="show"');
        }
}	//function mout(object)

function dLink(href,text,bclr,aclr,bfr,afr) {
    //check is any of the variables are left out and set them
    if (typeof bfr == "undefined") {bfr='100';}
	if (typeof afr == "undefined") {afr='100';}
    if (typeof bclr == "undefined") {bclr='white';}
	if (typeof aclr == "undefined") {aclr='blue';}
	/*
	ts='" onMouseOut="mout(\'link'+no;
    ts+='\','+bfr+',\''+bclr+'\')" onMouseOver="mover(\'link';	
	alert ("Can we win???   " +bclr);
	return 0;*/
	if (dhtml == 'IE') {
        document.write('<A  STYLE="text-decoration : none; color:'+bclr+'" HREF="'+href);
        document.write('" onMouseOut="mout(\'link'+no);
        document.write('\','+bfr+',\''+bclr+'\')" onMouseOver="mover(\'link');
        document.write(no+'\','+afr+',\''+aclr+'\')" ID="link'+no+'">'+text);
        document.write('<\/A>');
        }	//if (dhtml == 'IE')
    else if (dhtml == 'NN') {
        document.write('<LAYER NAME="link'+no);
        document.write('a" VISIBILITY="hide"><A  STYLE="text-decoration : none; color:'+bclr+'" HREF="');
        document.write(href);
        document.write('" onMouseOut="mout(\'link'+no);
        document.write('\','+bfr+',\''+bclr+'\')" CLASS="different">'+text);
        document.write('<\/A><\/LAYER><LAYER NAME="link');
        document.write(no+'b"><A HREF="'+href);
        document.write('" onMouseOver="mover(\'link'+no);
        document.write('\','+afr+',\''+aclr+'\')" CLASS="normal">'+text);
        document.write('<\/A><\/LAYER>');
        }	// else if (dhtml == 'NN')
    else {
        document.write('<A HREF="'+href);
        document.write('" STYLE="text-decoration : none; color:'+bclr+'">'+text+'<\/A>');
        }
     no+=1;
}	//function dLink(href,text)
/*********************************************************************
					END FONT HIGHLIGHT FUNCTIONS
 *********************************************************************/

 
/*********************************************************************
					BEGIN VALIDATE FUNCTIONS
 *********************************************************************/

function writeChkFrm(one,two,three,four,five){
	document.writeln("<script>");
	document.writeln("	function checkForm(theForm) {");
	document.writeln("	    var why = '';");
	document.writeln("	");
	if (one) document.writeln("		why += isEmpty(theForm.name.value,'"+one+"');");
	if (two) document.writeln("		why += isEmpty(theForm.email.value,'"+two+"');");
	if (three) document.writeln("		why += isEmpty(theForm.subject.value,'"+three+"');");
	document.writeln("		why += isEmpty(theForm.feedback.value,'Feedback Note');");
	//document.writeln("		why += isEmpty(theForm.state.value,'State');");
	//document.writeln("		why += isEmpty(theForm.zip.value,'Zip'); ");
	document.writeln("		");
	document.writeln("		/*  ");
	document.writeln("		alert(phone+' is phone#.');");
	document.writeln("		return false;");
	document.writeln("		");
	document.writeln("		//Check area code and phone number");
	document.writeln("			ph =isEmpty(theForm.areacode.value,'Area Code');");
	document.writeln("			ph +=isEmpty(theForm.phone.value,'Phone Number');");
	document.writeln("			if (!ph){ ");
	document.writeln("				phone='('+theForm.areacode.value+')'+theForm.phone.value;");
	document.writeln("				why += checkPhone(phone,'Phone Number');");
	document.writeln("			}");
	document.writeln("			else {");
	document.writeln("				//alert(ph);");
	document.writeln("				why +=ph;");
	document.writeln("			}");
	document.writeln("	");
	document.writeln("			ph =isEmpty(theForm.workareacode.value,'Work Area Code');");
	document.writeln("			ph +=isEmpty(theForm.workphone.value,'Work Phone Number');");
	document.writeln("			if (!ph){ ");
	document.writeln("				phone='('+theForm.workareacode.value+')'+theForm.workphone.value;");
	document.writeln("				why += checkPhone(workphone,'Work Phone Number');");
	document.writeln("			}");
	document.writeln("			else {");
	document.writeln("				//alert(ph);");
	document.writeln("				why +=ph;");
	document.writeln("			}");
	document.writeln("	");
	document.writeln("		//");
	document.writeln("		*/  ");
	document.writeln("	    why += checkEmail(theForm.email.value,'Email Address');");
	document.writeln("	    //why += isEmpty(theForm.ssn.value,'SS #');");
	document.writeln("	");
	document.writeln("	    if (why != '') {");
	document.writeln("		   alert(why);");
	document.writeln("	       return false;");
	document.writeln("	    }");
	document.writeln("		return true;");
	document.writeln("	}	//function checkForm(theForm)");
	document.writeln("</script>");
}

	
function imgSwitch(img, pswitch) {
	if(document.images) {
		if(!pswitch) img=defImg;
		else {
			document.getElementById(toBx).firstChild.nodeValue="Pure air, sunlight, abstemiousness, rest, exercise, proper diet, the use of water, trust in divine power--these are the true remedies. Every person should have a knowledge of nature's remedial agencies and how to apply them.";
		}
		document.healtimg.src=img;
	}	//if(document.images)
}	//function imgSwitch(img, switch)

function DisplayTxt(fr, to, mnu,cur) {
   //var newtxt = document.form1.newtitle.value;
   var org = document.getElementById(fr);
   var des = document.getElementById(to);
   des.innerHTML=org.innerHTML;
   document.getElementById(fr+"Menu").className =cur;
   return
   newtxt.firstChild.nodeValue=txt.firstChild.nodeValue;
   
//alert(fr+"txt "+txt.firstChild.nodeValue);   

	if(lstBox!="") {
		document.getElementById(lstBox).style.color=lstBoxClr;
		document.getElementById(lstBox).style.background="";
   }
   lstBox=fr;
   lstBoxClr=document.getElementById(fr).style.color;
   document.getElementById(fr).style.color="orange";
   document.getElementById(fr).style.background="blue";

//alert("value is "+txt.firstChild.nodeValue);
}	//function ChangeTxt(fr, to)

function ChangeTxt(fr, to) {
   //var newtxt = document.form1.newtitle.value;
   var txt = document.getElementById(fr+"txt");
   var newtxt = document.getElementById(to);
   newtxt.firstChild.nodeValue=txt.firstChild.nodeValue;
   
//alert(fr+"txt "+txt.firstChild.nodeValue);   

	if(lstBox!="") {
		document.getElementById(lstBox).style.color=lstBoxClr;
		document.getElementById(lstBox).style.background="";
   }
   lstBox=fr;
   lstBoxClr=document.getElementById(fr).style.color;
   document.getElementById(fr).style.color="orange";
   document.getElementById(fr).style.background="blue";

//alert("value is "+txt.firstChild.nodeValue);
}	//function ChangeTxt(fr, to)



function getVars(rtnVar,varName) 
{ 
/*	rtnVar	- return a variable value, blank if no
	Purpose of this function is to 
	parse the url parameters for a specified parameter
	[only possible when rtnVar have some value and
	varName is valid]
	or to get all the parameters and their name in
	one string separated by a comma (,)
	example : 
		
*/
     //check if no url parm
	 if (document.location.href.indexOf('?')<=1) return "";
	 var temp = "";
	 varArray = document.location.href.split('?')[1].split('&'); 

     for(var x=0; x<varArray.length; x++) 
     { 
          var tmp = varArray[x].split('='); 
		  if (rtnVar && tmp[x]==varName) {
		  	return unescape(tmp[x+1]);
		  }
		  else if (!rtnVar) {
          	//eval(unescape(tmp[x]) + '="' + unescape(tmp[x+1]) + '"'); 
			if(x>0) mrk=","; else mrk="";	//+" t");
			temp=temp+mrk+unescape(tmp[0])+","+unescape(tmp[1]);
		  }
		  else{
		  	temp="";
		  }
     } 
	 return temp;
} 	//function getVars(rtnAll,varName) 

function sendEmailFrm(path,col,row,nm,em,subj,fdk,rtnvar,varN){
	//Now you can pass variables on the fly
	// possible variable: 
	/*		Subject
			name
			fremail
			subject
			feedback
	*/
	
	var name =  "";
	var fremail =  "";
	var subject =  "";
	var feedback =  "";
	
	//Get the variable subject if it's passed
	//First find out how many variables we're looking for
	var hold=varN;
	var xstr = new Array();
	var i=0;
	var havecm=0;
	
	//Test for undefined
	if (typeof rtnvar == 'undefined') rtnvar="";
	if (typeof varN == 'undefined') {varN=""; hold="";}
	
	//Parse all requested variables 
	while (hold.indexOf(",")>0) {
		n=hold.indexOf(",");
		xstr[i]=hold.substring(0,n);
		
		i=i+1;

		hold=hold.substring(n+1,hold.length);
		if(hold!=""){havecm=1}
	}	
	
	if (havecm=="1"){	//if there multiple parameters needed
		xstr[i]=hold;
		var txt=getVars();
		hld=txt;
		for (var x=0;x<xstr.length;x++){
			strt=txt.indexOf(xstr[x])+xstr[x].length+1;
			if (xstr[x] == txt.substring(txt.indexOf(xstr[x]),txt.indexOf(xstr[x])+xstr[x].length)) {
				//txt.substring(txt.indexOf(xstr[x]),txt.indexOf(xstr[x])+xstr[x].length)
				hld=txt.substring(strt,txt.length);
				len=hld.indexOf(",");
				if (len<=0) len=hld.length;
				
				val=hld.substring(0,len);
				eval('var ' + xstr[x] + '="' + val + '"');
				//alert (xstr[x]+" - " +  val);
			}	//if (xstr[x] == txt.substring(txt.indexOf(xstr[x]),txt.indexOf(xstr[x])+xstr[x].length))
		} // for (x=0;x<xstr.length;x++){
	}
	else {	// if one or less parameter needed
	}
  
  
	//Initialize all the possible variables
	//if (typeof variable1Name == 'undefined')
	if(typeof name == 'undefined') name="";
	if(typeof fremail == 'undefined') fremail="";
	if(typeof subject == 'undefined') subject="";
	if(typeof feedback == 'undefined') feedback="";
	//subject=findVar(Vars,'subject');

	//
	//Write the validate form script in memory
	writeChkFrm(nm,em,subj);

	if (!path) pth="."; else pth=path;
	if (!col) cl=27; else cl=col;
	if (!row) rw=3; else rw=row;
	document.writeln("<script type=\"text/javascript\" src=\"./functions/validateform.js\"></script>");
	document.writeln("<form name='custInfo' method=post action=\""+pth+"/functions/processfeedback.php\" class=\"SmContent\" onsubmit=\"return checkForm(this)\">");
	document.writeln("<input type=hidden name=\"toemail\" value=\""+vemail+"\">");
	if (nm) {
		document.writeln(nm+": <br>");
		document.writeln("<input value=\""+name+"\" type=text name=\"name\" size="+cl+"><br>");
	}
	if (em) {
		document.writeln(em+": <br>");
		document.writeln("<input value=\""+fremail+"\" type=text name=\"email\" size="+cl+"><br>");
	}
	if (subj) {
		document.writeln(subj+": <br>");
		document.writeln("<input value=\""+subject+"\" type=text name=\"subject\" size="+cl+"><br>");
	}
	if (!fdk) {
		fdk="Your feedback";
	}
	
	document.writeln(fdk+":<br>");
	//cl=cl+170;
	//rw=rw/6;
	document.writeln("<textarea value=\""+feedback+"\" name=\"feedback\" rows="+rw+" cols="+(cl-4)+">");
	document.writeln("</textarea><br><br>");
	document.writeln("&nbsp;&nbsp;<input type=submit value=\"Send feedback\">");
	document.writeln("<input type=\"hidden\" name=\"to\" value=\""+vemail+"\">");
	document.writeln("</form>");
}	//function sendEmailFrm(path,col,row,nm,em,subj)
/*********************************************************************
					END VALIDATE FUNCTIONS
 *********************************************************************/
 
/*********************************************************************
					BOOKMARK FUNCTIONS

<!-- Begin
 *********************************************************************/
 
function addbookmark() {
	if (document.all)
	window.external.AddFavorite(bookmarkurl,bookmarktitle)
}	//function addbookmark()
/*********************************************************************
					END BOOKMARK FUNCTIONS
 *********************************************************************/
 
/*********************************************************************
					Show bible verse FUNCTIONS
 *********************************************************************/
	function bTxt(){
		//javascript:winOpen('"+mbasedir+"marketing.php','cinfo','368','400','100','100')
		//http://www.biblegateway.com/passage/?search=1%20jo%201:3&version=9
	}	//function bTxt()
	
//alert("testing this kinda thing");
function testr(){
	alert("testing this kinda thing");
	return false;
}

function rdValue(val, nm,wd,ht,s,t){
		//winOpen('?bibleTxt&txt='+val,'cinfo','368','400','100','100');
		//javascript:rdValue(this.form.txt.value,'cinfo','368','400','100','100')
/*alert("Are we here? "+val);
return false;*/
		nocolon=val.match(":");
		$srcl="";
		if(val.match("-") || !nocolon) $srcl="Yes";
//alert("val "+val);		
		winOpen('?bibleTxt&txt='+val,nm,wd,ht,s,t,$srcl);
		
		//return false;
	}	//function rdValue(val,nm='cinfo',wd='368',ht='400',s='100',t='100')

/*********************************************************************
					END Show bible verse FUNCTIONS
 *********************************************************************/

 
/*********************************************************************
					BEGIN SEARCH FUNCTIONS
 *********************************************************************/
 	function searchTxt(val, nm,wd,ht,s,t){
		//winOpen('?bibleTxt&txt='+val,'cinfo','368','400','100','100');
		//javascript:searchTxt(this.form.txt.value,'cinfo','368','400','100','100')
//alert("Are we here?"+val);		
		if (val==""){return false;}
		
		frTw=val.substring(0,2);
		
		if (frTw=="b:") {
			val=val.substring(2,val.length);
			$srcl="";
			rdValue(val, nm,wd,ht,s,t);
		}	//if (frTw=="b:")
		else {
			alert ("coming soon!!!");			
		}
		
	}	//function rdValue(val,nm='cinfo',wd='368',ht='400',s='100',t='100')
/*********************************************************************
					END SEARCH FUNCTIONS
 *********************************************************************/


function rthidefadebox(){
	objref=document.getElementById("showTxt");
	objref.style.visibility="hidden";

	document.getElementById("shw").href="javascript:rtshowfadebox()";
	objref.firstChild.nodeValue="";
}	//function rthidefadebox()

function rtshowfadebox(){
//alert("test"+document.getElementById("shw").href);	
	objref=document.getElementById("showTxt");
	objref.style.visibility="visible";
	objref.style.width="400px";
	objref.style.height="80px";
	
	document.getElementById("shw").href="javascript:rthidefadebox()";
}	//function rthidefadebox()

function sda_truth_display(ans) {
/*
<strong class="underline_ans" onclick="sda_truth_display('ans1')" id="q1" name="q1">
<b id="ans1" name="ans1" style="visibility:hidden;">&nbsp;&nbsp;healed&nbsp;&nbsp;</b></strong> 
*/
	var ie=document.all && !window.opera;
	var dom=document.getElementById;
	objref=(dom)? document.getElementById(ans) : document.all(ans);
	if (objref.style.visibility=="visible"){
		objref.style.visibility="hidden";
	}	//if (objref.style.visibility=="visible")
	else {
		objref.style.visibility="visible";
	}	//if (objref.style.visibility=="visible") else
	//alert ('test now');
}	//sda_truth_display

-->