// JavaScript Document

var popUpWin=0;
var win_sizes = new Array(10);
win_sizes[0] = ("dialogWidth=500,dialogHeight=500");

function openWinView(url_str, size_index)
{
	var left = 50;
	var top = 50;
  popUpWin = showModalDialog(url_str, 'popUpWin', 'toolbar=no,edge=sunken,location=no,directories=no,center=yes,status=no,resizable=yes,'+win_sizes[size_index]+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
function FORM_ELE_MO(e)
{
	if (!e)
	var e=window.event;
	var S=e.srcElement;
	while (S.tagName!="TD")
	{S=S.parentElement;}
	S.className="MOUSE_OVER";
}
function FORM_ELE_MU(e)
{
	if (!e)
	var e=window.event;
	var S=e.srcElement;
	while (S.tagName!="TD")
	{S=S.parentElement;}
	S.className="MOUSE_OUT";
}
function isDateBefore(minDate,checkDate){
	minDate = (minDate);
	checkDate = (checkDate);
	
	/*var Year_1 = minDate.getYear(); 
	var Month_1 = minDate.getMonth(); 
	var Day_1 = minDate.getDay();
	
	var Year_2 = checkDate.getYear(); 
	var Month_2 = checkDate.getMonth(); 
	var Day_2 = checkDate.getDay();*/
	/*minDate.setHours(24);
	minDate.setMinutes(0);
	checkDate.setHours(24);
	checkDate.setMinutes(0);*/
	//alert(Year_1 + " " + Month_1 + " "+Day_1+"\n"+Year_2 + " " + Month_2 + " "+Day_2+"\n1>>>>>"+minDate.valueOf() + " 2>>>>>"+checkDate.valueOf());
	
	/*if( ( (Year_2==Year_1) && ( (Month_2<=Month_1) ) || (Year_2<Year_1) ))
	{
		if( (Month_2 == Month_1) && (Day_2 < Day_1) )
			return true;
		else if(Month_2 < Month_1)
			return true;
		else if(Year_2 < Year_1)
			return true;
	}*/
	if(checkDate.valueOf() < minDate.valueOf())
		return true;
	else
		return false;
}
function isDateAfter(maxDate,checkDate){
	//maxDate = convertCalendarDate(maxDate);
	//checkDate = convertCalendarDate(checkDate);
	
	/*var Year_1 = maxDate.getYear(); 
	var Month_1 = maxDate.getMonth(); 
	var Day_1 = maxDate.getDay();
	
	var Year_2 = checkDate.getYear(); 
	var Month_2 = checkDate.getMonth(); 
	var Day_2 = checkDate.getDay();
	
	minDate.setHours(24);
	minDate.setMinutes(0);
	checkDate.setHours(24);
	checkDate.setMinutes(0);*/
	
	/*if( ( (Year_2==Year_1) && (Month_2>=Month_1) ) || (Year_2>Year_1) )
	{				
		if( (Month_2 == Month_1) && ( Day_2 > Day_1 ) )
			return true
		else if(Month_2 > Month_1)
			return true;
		else if(Year_2 > Year_1)
			return true;
	}*/
	if(checkDate.valueOf() > minDate.valueOf())
		return true;
	else
		return false;
}
function convertCalendarDate(sdate){
	//return sdate;
	var vl = sdate.split("/");
	return new Date(vl[1],(vl[2]),vl[0]);
}
function convertCalendarDateTime(date,time){
	date = convertCalendarDate(date);
	stime = time.split(":");
	return new Date(date.getYear(),date.getMonth(),date.getDate(),stime[0],stime[1],0,0);
}
function LoadDoc(url)
{
	document.location = url;
}







































/*
 * Creativyst(R) Ballistic Scroller:
 *
 *      (C) Copyright 2004 - 2007 Creativyst, Inc.
 *                ALL RIGHTS RESERVED
 *
 * Use of this software in running applications, with
 * or without modification, is permitted provided
 * that the conditions published at:
 * www.creativyst.com/Prod/18/Scroller/BalScr.htm 
 * are met.
 *
 *    This software may not be redistributed
 *
 *     - This comment may not be removed -
 *
 * v1.0f
*/


/* Configurations:
 *  bsWidth         The width of the scroller
 *  bsHeight        The height of the scroller
 *  bsMoveIncr      How far to move on each frame
 *  bsFrameRate     How often (in miliseconds) to move the frame
 *  bsPauseDelay    How long to pause (in milisecs) between each message
 *  bsUseBalistics  1 to slow down near end of scroll.
 *
 *  See below for how to add static and/or dynamic content for display
 *
*/
var bsWidth=160;
var bsHeight=175;
var bsMoveIncr=10;
var bsFrameRate = 40;       // was 40
var bsPauseDelay = 9000;
var bsUseBallistics = 2;    // 0 for linear movers

var bsContent=new Array();  // don't change
bsContent[0] = "";


/* Static Content:
 *  Fill elements of the bsContent[] array with static messages you'd like
 *  to display on the scroller.  You can use the ballistic scroller to
 *  display only these static messages, or you can include a static
 *  message or two to be displayed along with dynamic JSMsg feed data (see below).
 *
 *  Delete or comment out these array lines (but not the above declaration)
 *  if you don't want to display static messages.
 *
*/
bsContent[0] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>And I give them eternal life, and they shall never perish; neither shall anyone snatch them out of My hand.<br> <i>John 10:28</i></font><hr width='75%'>";
bsContent[1] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>For I know the thoughts I think toward you, thoughts of peace, not of evil, to give you an expected end.<br> <i>Jeremiah 29:11</i></font><hr width='75%'  >";

bsContent[2] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>If ye be willing and obedient, ye shall eat the good of the land.<br> <i>Isaiah 1:19</i></font><hr width='75%'>";
bsContent[3] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>Beloved, I wish above all things that thou mayest prosper and be in health, even as thy soul prospereth.<br> <i>3 John 1:2</i></font><hr width='75%'>";

bsContent[4] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>There shall nothing cast their young, nor be barren, in thy land: the number of thy days I will fulfil.<br> <i>Exodus 23:26</i></font><hr width='75%'>";
bsContent[5] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>He who pursues righteousness and love finds life, prosperity and honor.<br><i>Proverbs 21:21</i></font><hr width='75%'>";

bsContent[6] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>But thanks be to God, who gives us the victory through our Lord Jesus Christ.<br> <i>1 Corinthians 15:57</i></font><hr width='75%'>";

bsContent[7] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>And He said to me, My grace is sufficient for you, for My strength is made perfect in weakness.<br> <i>2 Corinthians 12:9</i></font><hr width='75%'>";

bsContent[8] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>And we know that all things work together for good to those who love God, to those who are the called according to His purpose.<br> <i>Romans 8:28</i></font><hr width='75%'>";

bsContent[9] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>No temptation has overtaken you except such as is common to man; but God is faithful, who will not allow you to be tempted beyond what you are able, but with the temptation will also make the way of escape, that you may be able to bear it.<br><i>1 Corinthians 10:13</i></font><hr width='75%'>";

bsContent[10] = "<br><b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>So shall My word be that goes forth from My mouth; It shall not return to Me void, But it shall accomplish what I please, And it shall prosper in the thing for which I sent it.<br><i>Isaiah 55:11</i></font><hr width='75%'>";

bsContent[11] = "<br>&nbsp;<b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>Heaven and earth will pass away, but My words will by no means pass away.<br> <i>Mark 13:31</i></font><hr width='75%'>";

bsContent[12] = "<br>&nbsp;<b><font face='Trebuchet MS, Helvetica, sans-serif' size='-2' style='padding:7px; '>You did not choose Me, but I chose you and appointed you that you should go and bear fruit, and that your fruit should remain, that whatever you ask the Father in My name He may give you.<br> <i>John 15:16</i></font><hr width='75%'>";









// bsContent[2] = "And did we mention it's <strong>JSMsg Ready<\/strong>?";
// bsContent[3] = "<strong>JSMsg<\/strong> lets you display <strong><em>dynamic<\/em><\/strong> information from outside JSMsg feeds ...<P\/><UL><LI>Set <B>one<\/B> variable!<LI><strong>NO<\/strong> server-side scripting!<\/UL> :-)";
// bsContent[4] = "An example of dynamic content from a <strong>JSMsg<\/strong> file follows...";




/* Dynamic Content (JSMsg feeds):
 *  JSMsgNS     
 *      Namespace of the JSMsg feed who's messages you'd
 *      like to display.  You must include the JSMsg
 *      link in a JavaScript <SCRIPT> tag ABOVE this
 *      script.
 *
 *      You may display messages from multiple JSMsg feeds
 *      by listing multiple namespaces in the JSMsgNS variable.
 *      e.g.  
 *
 *          JSMsgNS = "ciq cvtnew"; 
 *
 *      Leave this set to JSMsgNS = ""; if you only need
 *      to display static messages from the above arrays.
 *
 *  JSMsgSeq
 *      Messages from muliple newsfeeds are normally interleaved
 *      but they can be sequential by setting the JSMsgSeq variable
 *      to 1
 *
*/
var JSMsgNS = "";
var JSMsgSeq = 0;


/* ==========================================================================
 * End of user configurable variables
 * ==========================================================================
*/



var bsOrgArray = new Array(); bsOrgArray[0] = ""; var Cur_i = 0; var DOMObj; var IEObj; var NS4xObj; var BalIncr = bsMoveIncr; var beenHere; var MousePaused = 0; var MessagePaused = 0; var MsgPauseNow = bsPauseDelay; var bsISRWaiting = 0; var bsOrgArray = new Array(); function bsInitialize()
{ var divobj, cpyi; for(cpyi = 0;cpyi < bsContent.length;cpyi++) { bsOrgArray[cpyi] = bsContent[cpyi];}
bsContent = JSMsgIf(bsContent, JSMsgNS, JSMsgSeq); if(document.getElementById) { divobj = document.getElementById('ScrollerFrame'); divobj.style.width = bsWidth + 'px'; divobj.style.height = bsHeight + 'px'; divobj = document.getElementById('bsWindow'); divobj.style.width = bsWidth + 'px'; divobj.style.height = bsHeight + 'px'; divobj = document.getElementById('bsMover'); divobj.style.width = bsWidth + 'px'; divobj.style.height = bsHeight + 'px'; DOMObj=eval( document.getElementById('bsMover') ); DOMObj.innerHTML = bsContent[Cur_i]; DOMObj.style.top=bsHeight + 'px'; moverDOM();}
else if(document.all) { ScrollerFrame.style.width = bsWidth; IEObj=eval(MoverWin); IEObj.innerHTML=bsContent[Cur_i]; IEObj.style.pixelTop=bsHeight; sizeup=IEObj.offsetHeight; moverIE();}
else if(document.layers) { if(!beenHere) { beenHere = 1; setTimeout("bsInitialize()", 1000);}
NS4xObj=document.SlideWindow.document.SlideMover; NS4xObj.document.write(bsContent[Cur_i]); NS4xObj.document.close(); moverNS4x();}
}
function moverDOM()
{ var reducer; var myTop = parseInt(DOMObj.style.top); BallisticsProc(myTop); reducer = (myTop-BalIncr); if(myTop>(BalIncr)) { DOMObj.style.top=reducer + 'px'; if(!MousePaused && !MessagePaused) { bsISRWaiting++; setTimeout("moverDOM()",bsFrameRate);}
}
else{ PauseTop();}
}
function moverIE()
{ var myTop = parseInt(IEObj.style.pixelTop); BallisticsProc(myTop); if (IEObj.style.pixelTop>=bsMoveIncr) { IEObj.style.pixelTop-=BalIncr; if(!MousePaused && !MessagePaused) { bsISRWaiting++; setTimeout("moverIE()",bsFrameRate);}
}
else{ PauseTop();}
}
function moverNS4x()
{ BallisticsProc(NS4xObj.top); if(NS4xObj.top>=bsMoveIncr) { NS4xObj.top-=BalIncr; if(!MousePaused && !MessagePaused) { bsISRWaiting++; setTimeout("moverNS4x()",bsFrameRate);}
}
else{ PauseTop();}
}
function BallisticsProc(ThisTop)
{ if(bsUseBallistics &&
BalIncr > 2 ) { if(ThisTop < (bsHeight/7)) { BalIncr = bsMoveIncr - 1;}
if(ThisTop < (bsHeight/8) ) { BalIncr = bsMoveIncr - 3;}
if(ThisTop < (bsHeight/10) ) { BalIncr = bsMoveIncr - 7;}
if(ThisTop < 8) { BalIncr = 1;}
BalIncr = (BalIncr < 1 ? 1 : BalIncr);}
}
function PauseTop()
{ MessagePaused = 1; setTimeout("ChangeContent()", MsgPauseNow);}
function ChangeContent()
{ MessagePaused = 0; MsgPauseNow = bsPauseDelay; if(!MousePaused) { Cur_i++; if(Cur_i >= bsContent.length) { Cur_i = 0;}
if(document.getElementById) { DOMObj.style.top=bsHeight + 'px'; BalIncr = bsMoveIncr; setTimeout("MakeDOMChangeNow()",3); moverDOM();}
else if(document.all) { IEObj.style.pixelTop=bsHeight
IEObj.innerHTML=bsContent[Cur_i]
BalIncr = bsMoveIncr; moverIE();}
else { NS4xObj.document.write(bsContent[Cur_i]); NS4xObj.document.close(); NS4xObj.top=bsHeight; BalIncr = bsMoveIncr; moverNS4x();}
}
else { MsgPauseNow = bsFrameRate;}
}
function MakeDOMChangeNow()
{ DOMObj.innerHTML=bsContent[Cur_i];}
function MousePause()
{ MousePaused = 1;}
function MouseStart()
{ MousePaused = 0; if(!MessagePaused) { if(document.getElementById) { moverDOM();}
else if(document.all) { moverIE();}
else { moverNS4x();}
}
}
function RunScroller()
{ var msg; msg = ''; msg += '<DIV ID="ScrollerFrame" CLASS="ScrollerFrame">'; if(!document.getElementById && !document.all) { msg += '<ilayer name="SlideWindow" width="' + bsWidth + '"; height="' + bsHeight + '";>\n'; msg += '<layer name="SlideMover" width="' + bsWidth + '"; onMouseover="MousePause();" onMouseout="MouseStart();">'; msg += '<\/layer>'; msg += '<\/ilayer>';}
document.write(msg); if (document.getElementById || document.all) { document.write('<div id="bsWindow" class="bsWindow" style="position:relative;overflow:hidden;width:' +bsWidth+ ';height:' +bsHeight+ ';clip:rect(0 ' +bsWidth+ ' ' +bsHeight+ ' 0);" onMouseover="MousePause();" onMouseout="MouseStart();">'); document.write('<div id="bsMover" class="bsMover" style="position:relative;width:'+bsWidth+';">'); document.write('<\/div><\/div>');}
document.write('<\/DIV>'); bsInitialize();}
function JSMsgIf(msgAr, myNs, mySeq)
{ var TotNS,LongestNS; var NSAr = new Array(); var i,j,k,o; if(!myNs) { myNs = "";}
if(!mySeq) { mySeq = 0;}
o = msgAr.length; if(myNs) { NSAr = myNs.split(" "); TotNS = NSAr.length; LongestNS = 0; j = 0; for(i = 0;i < TotNS;i++) { j = jsmMetaMsg(NSAr[i], "MetaCount"); if(j > LongestNS) { LongestNS = j;}
}
if(!j) { return(msgAr);}
k = o; if(mySeq) { for(j = 0;j < TotNS;j++) { for(i = 0;i < LongestNS;i++) { if(jsmMetaMsg(NSAr[j],"MetaCount") <= i) { continue;}
msgAr[k] = jsmGetN(NSAr[j], "LinkTitle", i); if(!msgAr[k]) { msgAr[k] = jsmGetN(NSAr[j], "Body", i); msgAr[k] += "<BR>   -"; t = jsmGetN(NSAr[j], "Attrib",i); if(t.length > 17) { t = t.substr(0,14); t += "...";}
msgAr[k] += t;}
msgAr[k] = msgAr[k].replace(/&/g, "&"); msgAr[k] = msgAr[k].replace(/&apos;/g, "\'"); k++;}
}
}
else { for(j = 0;j < LongestNS;j++) { for(i = 0;i < TotNS;i++) { if(jsmMetaMsg(NSAr[i],"MetaCount") <= j) { continue;}
msgAr[k] = jsmGetN(NSAr[i], "LinkTitle", j); if(!msgAr[k]) { msgAr[k] = jsmGetN(NSAr[i], "Body", j); msgAr[k] += "<BR>   -"; t = jsmGetN(NSAr[i], "Attrib",j); if(t.length > 17) { t = t.substr(0,14); t += "...";}
msgAr[k] += t;}
msgAr[k] = msgAr[k].replace(/&/g, "&"); msgAr[k] = msgAr[k].replace(/&apos;/g, "\'"); k++;}
}
}
}
return(msgAr);}
function jsmGetN(ns,MsgPart,number)
{ var rv, c, er; c = "rv = " + ns + ".GetN('" + MsgPart + "'," + number + ");"; er = eval(c); return(rv);}
function jsmGet(ns,MsgPart,offset)
{ var rv, c, er; c = "rv = " + ns + ".Get('" + MsgPart + "'," + offset + ");"; er = eval(c); return(rv);}
function jsmGetDay(ns,MsgPart)
{ var rv, c, er; c = "rv = " + ns + ".GetDay('" + MsgPart + "');"; er = eval(c); return(rv);}
function jsmMetaMsg(ns,MsgPart)
{ var rv, c, er; c = "rv = " + ns + ".MetaMsg('" + MsgPart + "');"; er = eval(c); return(rv);}











































