<!--

var isN4, isN6, isIE, isIE5, isIE6, isIE7, isOpera8, isFirefox, isSafari, isMac
var thebrowser = ""
var coll = ""
var styleobj = ""
var bgcolorobj = ""


isN4 = false;
isN6 = false;
isIE = false;
isIE5 = false;
isIE6 = false;
isIE7 = false;
isOpera8 = false;
isFirefox = false;
isSafari = false;
isMac = false;

if (navigator.appVersion.indexOf("Mac") != -1)
{
isMac = true;
}

if (parseInt(navigator.appVersion) >= 4)
{


navigator.userAgent.indexOf("Opera") != -1



	if (navigator.appName == "Netscape")
	{
		if (document.getElementById && !document.all)
		{
		isN6 = true;
		thebrowser = 'isN6';
		bgcolorobj  = 'background-color';
		
		if (navigator.userAgent.indexOf("Firefox") != -1)
			{
			isFirefox = true;
			thebrowser = 'isFirefox';
			bgcolorobj  = 'background-color';
			}
			
		if (navigator.userAgent.indexOf("Safari") != -1)
			{
			isSafari = true;
			thebrowser = 'isSafari';
			bgcolorobj  = 'background-color';
			}
		
		}
		else
		{
		if (document.layers)
		{
		isN4 = true;
		thebrowser = 'isN4';
		bgcolorobj  = 'bgcolor';
		}
		}
	}
	else
	{
		
	
		if (navigator.userAgent.indexOf("Opera") != -1 && (parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("Opera")+6)) >= 8) )
		{
		isOpera8 = true;
		thebrowser = 'isOpera8';
		bgcolorobj  = 'background-color';
		//alert(parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("Opera")+6)));
		}
		
		if (parseInt(navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE")+5)) > 6 && navigator.userAgent.indexOf("Opera") == -1)
		{
		isIE7 = true;
		isIE6 = true;
		thebrowser = 'isIE7';
		bgcolorobj  = 'background-color';
		}
		else
		{
		
		if (navigator.appVersion.indexOf("MSIE 6") != -1 && navigator.userAgent.indexOf("Opera") == -1)
		{
		isIE6 = true;
		thebrowser = 'isIE6';
		bgcolorobj  = 'background-color';
		}
		else
		{
		
		if (navigator.appVersion.indexOf("MSIE 5") != -1 && navigator.userAgent.indexOf("Opera") == -1)
		{
		isIE5 = true;
		thebrowser = 'isIE5';
		bgcolorobj  = 'background-color';
		}
		else
		{
			if (navigator.appVersion.indexOf("MSIE 4") != -1)
			{
			isIE = true;
			thebrowser = 'isIE4';
			coll = 'all.';
			styleObj = '.style';
			bgcolorobj  = 'background-color';
			}
			else
			{
			isIE7 = true;
			isIE6 = true; // set this as well
			thebrowser = 'isIE7';
			bgcolorobj  = 'background-color';
			}	

		}
	  }
	 }
	}

	/*
	// for testing
	if( isIE || isIE5 || isIE6 || isN4 || isN6 || isOpera)
	{
	top.location.href = "new_browser_needed.cfm";
	}	
	*/
	
	//alert(isIE5 + '-' + isIE6 + '-' + isN4 + '-' + isN6 + '-' + isFirefox + '-' + isOpera8 + '-' + isSafari);
	
	if(!isIE5 && !isIE6 && !isN4 && !isN6 && !isIE7 && !isFirefox && !isOpera8 && !isSafari)
	{
	top.location.href = "new_browser_needed.htm";
	}	
	

}

function getObjLeft(obj) {

	if (isN4)
	{
	// this is not working
	return obj.left
	}
	
	if (isN6)
	{
	return obj.pixelLeft
	}
	
	if (isIE || isIE5 || isIE6)
	{	
	return obj.pixelLeft
	}
	
}

function getObjTop(obj) {

	if (isN4)
	{
	// this is not working
	return obj.top
	}
	
	if (isN6)
	{
	return obj.pixelTop
	}
	
	if (isIE || isIE5 || isIE6)
	{	
	return obj.pixelLeft
	}
}


function getObjHeight(obj) {

	if (isN4)
	{
	// this is not working
	return obj.style.clip.height
	}
	
	if (isN6)
	{
	return obj.offsetHeight
	}
	
	if (isIE5 || isIE6)
	{	
	return obj.clientHeight
	}
	
	if (isIE)
	{
	// not working in IE4
	return obj.clientHeight
	}

}

function getObjWidth(obj) {

	if (isN4)
	{
	// this is not working
	return obj.style.clip.width
	}
	
	if (isN6)
	{
	return obj.offsetWidth
	}
	
	if (isIE5 || isIE6)
	{	
	return obj.clientWidth
	}


	if (isIE)
	{
	// not working in IE4	
	return obj.clientWidth
	}
	
	
}

function getInsideWindowWidth() {

	if (isN4 || isN6)
	{
	return window.innerWidth
	}

	
	if (isIE5 || isIE6)
	{
	return document.body.clientWidth
	}

	if (isIE)
	{
	return document.body.innerWidth
	}



}

function getInsideWindowHeight() {

	if (isN4 || isN6)
	{
	return window.innerHeight
	}

	if (isIE5 || isIE6)
	{
	return document.body.clientHeight
	}

	if (isIE)
	{
	return document.body.innerHeight
	}



}

function shiftTo(obj, x, y) {

	if (isN4)
	{
	obj.moveTo(x,y)
	}
	
	if (isIE)
  	{

	document.all.banner.style.pixelLeft = x;
	document.all.banner.style.pixelTop = y;

	// obj.pixelLeft = x
	// obj.pixelTop = y
	}

  	if (isIE5 || isIE6)
  	{
	obj.pixelLeft = x
	obj.pixelTop = y
	}
  
  	if (isN6)
  	{
	obj.left = x
	obj.top = y
	 // document.getElementById("banner").style.left = x;
  	// document.getElementById("banner").style.top = y;
  	}

	
}

function centerIt(idPicked) {

// obj is the dthml positional container object
var obj
var contentObj
var thecon

thecon = "banner";


// if (isIE)
// {
// obj = eval("document." + coll + thecon + ".style");
// contentObj = eval("document." + thecon);
// }


if (isIE)
{

var strw, stry

strx = eval("document.all.banner.clientWidth");
stry = eval("document.all.banner.clientHeight");

// strx = eval("document.all." + idPicked + ".clientWidth");
// stry = eval("document.all." + idPicked + ".clientHeight");


var x = Math.round((getInsideWindowWidth()/2) - (strx/2))
var y = Math.round((getInsideWindowHeight()/2) - (stry/2))

obj= eval("document.all.banner.style");
//contentObj = eval("document.all.banner");

// obj= eval("document." + idPicked + ".style");
// contentObj = eval("document." + idPicked);

}

if (isN4)
{

//Netscape 4 work around
var strw, stry

strx = eval("document." + idPicked + ".clip.width");
stry = eval("document." + idPicked + ".clip.height");

var x = Math.round((getInsideWindowWidth()/2) - (strx/2))
var y = Math.round((getInsideWindowHeight()/2) - (stry/2))

obj= eval("document." + idPicked);
//contentObj = eval("document." + idPicked);

}

if (isN6 || isIE5 || isIE6)
{
obj = eval("document.getElementById('" + idPicked  + "')" + ".style");
contentObj = eval("document.getElementById('" + idPicked  + "')");

//obj = eval("document.getElementById('banner')" + ".style");
//contentObj = eval("document.getElementById('banner')");

var x = Math.round((getInsideWindowWidth()/2) - (getObjWidth(contentObj)/2));
var y = Math.round((getInsideWindowHeight()/2) - (getObjHeight(contentObj)/2));

}

shiftTo(obj, x, y);

obj.visibility = "visible";

}  //end function centerIt()




function moveIt(idPicked, moveDirection) {

// obj is the dthml positional container object
var obj
var contentObj

if (isIE || isN4)
{
obj = eval("document." + coll + idPicked + styleObj)
contentObj = eval("document." + coll + idPicked)
}

if (isN6 || isIE5 || isIE6)
{
obj = eval("document.getElementById('" + idPicked + "')" + ".style");
contentObj = eval("document.getElementById('" + idPicked + "')");
}


var xLeft = getObjLeft(obj);
var yTop = getObjTop(obj);

switch (moveDirection) {

case 'left':
	xLeft += -1;
	yTop += 0;
	break;
case 'right':
	xLeft += 1;
	yTop += 0;
	break;
case 'up':
	xLeft += 0;
	yTop += -1;
	break;
case 'down':
	xLeft += 0;
	yTop += 1;
	break;
}

shiftTo(obj, xLeft, yTop);

obj.visibility = "visible";

}  //end function moveIt(moveDirection)


function showOrHide(idPicked,v) {

// obj is the dthml positional container object
var obj
var contentObj

if (isIE || isN4)
{
obj = eval("document." + coll + idPicked + styleObj);
}

if (isN6 || isIE5 || isIE6)
{
obj = eval("document.getElementById('" + idPicked + "')" + ".style");
}

obj.visibility = v;

}  //end function showOrHide(idPicked,v)

function HideAllObj(pageindex)
{

var allobj;

// All Obj

allobj = new Array();

//allobj[0] = 'homemembersnav';
//allobj[0] = 'home_main_nav';
for (i=0; i < news.length; i++)
{
allobj[i] = news[i][0]
}

if (pageindex=='')
{
allobj[news.length] = 'news_nav';
}

var objx;

//Loop through to create each inner menu link
for (j=0; j < allobj.length; j++)
{

if (isN6 || isIE5 || isIE6)
{
objx = eval("document.getElementById('" + allobj[j] + "')" + ".style");
}

if (isN4)
{
objx = eval("document." + allobj[j]);
}

if (isIE)
{
objx = eval("document.all." + allobj[j] + ".style");
}

objx.visibility =  'hidden';

}// for j

}// HideAllObj()

function showOrHideObj(menuindex,menustatus)
{

//alert(menuindex);

HideAllObj();

var vstatus;

// Check whether obj is to be on = 1 or off = 0
if ( menustatus == 1)
{
vstatus = 'visible';
}
else
{
vstatus = 'hidden';
}

var objv;

if (isN6 || isIE5 || isIE6)
{
objv = eval("document.getElementById('" + menuindex + "')" + ".style");
}

if (isN4)
{
objv = eval("document." + menuindex);
//objv = eval("document." + coll + menuindex + styleObj);
}

if (isIE)
{
objv = eval("document.all." + menuindex + ".style");
}


objv.visibility = vstatus;


}// end showOrHideObj



function openWindow(locURL,windowtype)
{

// Initialize Variables for the Screen.


if (windowtype == 'display')
{
XPos = 200;
YPos = 150;
XWidth = 500;
YHeight = 200;
constLocation = 'yes';
constMenubar = 'yes';
constScrollbars = 'yes';
constStatus = 'yes';
constTitlebar = 'yes';
constToolbar = 'yes';
constResizable = 'yes';
window.newWindow = '';
}


if (windowtype == 'pdf')
{
XPos = 0;
YPos = 0;
XWidth = 600;
YHeight = 480;
constLocation = 'no';
constMenubar = 'no';
constScrollbars = 'yes';
constStatus = 'no';
constTitlebar = 'yes';
constToolbar = 'no';
constResizable = 'yes';
window.newWindow = '';
}

if (windowtype == 'api')
{
XPos = 0;
YPos = 0;
XWidth = 600;
YHeight = 480;
constLocation = 'no';
constMenubar = 'no';
constScrollbars = 'no';
constStatus = 'no';
constTitlebar = 'yes';
constToolbar = 'no';
constResizable = 'no';
window.newWindow = '';
}


// If the Browser can understand the screen object, set window coordinates

if (window.screen)
	{
	XPos = ((screen.availWidth - XWidth) / 2);
	YPos = ((screen.availHeight - YHeight) / 2);
	}

// If the window is open, just refresh the contents, otherwise create new window

if (window.newWindow)
	{
	newWindow.location.href = locURL;
	}
else
	{
	newWindow = window.open(locURL,windowtype,'location=' + constLocation + ',menubar=' + constMenubar + ',scrollbars=' + constScrollbars + ',status=' + constStatus + ',titlebar=' + constTitlebar + ',toolbar=' + constToolbar + ',resizable=' + constResizable + ',width=640,height=' + YHeight + ',left=' + XPos + ',top=' + YPos);

	if (! newWindow.opener)
		{
		newWindow.opener = window;
		}
		
	if (newWindow.focus)
		{
		newWindow.focus();
		}	
		
	}
	
		

}// end of openWindow(locURL)


function openNewWindow(locURL,winWidth,winHeight)
{

// Initialize Variables for the Screen.

XPos = 400;
YPos = 0;
XWidth = winWidth;
YHeight = winHeight;
constLocation = 'no';
constMenubar = 'no';
constScrollbars = 'no';
constStatus = 'no';
constTitlebar = 'no';
constToolbar = 'no';
constResizable = 'no';
//window.newWindow = '';


// If the Browser can understand the screen object, set window coordinates

if (window.screen)
	{
	YPos = ((screen.availHeight - YHeight) / 2);
	}

// If the window is open, just refresh the contents, otherwise create new window

if (window.newWindow)
	{
	if (isN4){
	newWindow.close();
	}
	else
	{
	newWindow.close();
	}
	newWindow = window.open(locURL,"newWindow",'location=' + constLocation + ',menubar=' + constMenubar + ',scrollbars=' + constScrollbars + ',status=' + constStatus + ',titlebar=' + constTitlebar + ',toolbar=' + constToolbar + ',resizable=' + constResizable + ',width=' + XWidth + ',height=' + YHeight + ',left=' + XPos + ',top=' + YPos);

	//newWindow.location.href = locURL;
	}
else
	{
	newWindow = window.open(locURL,"newWindow",'location=' + constLocation + ',menubar=' + constMenubar + ',scrollbars=' + constScrollbars + ',status=' + constStatus + ',titlebar=' + constTitlebar + ',toolbar=' + constToolbar + ',resizable=' + constResizable + ',width=' + XWidth + ',height=' + YHeight + ',left=' + XPos + ',top=' + YPos);

	if (! newWindow.opener)
		{
		newWindow.opener = window;
		}
	}
	
		
if (newWindow.focus)
	{
	newWindow.focus();
	}
}// end of openNewWindow(locURL)




function openNewWindowScroll(locURL,winWidth,winHeight,spot)
{

// Initialize Variables for the Screen.

XPos = 220;
YPos = 0;
XWidth = winWidth;
YHeight = winHeight;
constLocation = 'no';
constMenubar = 'no';
constScrollbars = 'yes';
constStatus = 'no';
constTitlebar = 'no';
constToolbar = 'no';
constResizable = 'yes';
window.newWindow2 = '';


// If the Browser can understand the screen object, set window coordinates

if (window.screen)
	{
	YPos = ((screen.availHeight - YHeight) / 2);
	}

// If the window is open, just refresh the contents, otherwise create new window

if (window.newWindow2)
	{
	if (isN4){
	newWindow2.close();
	}
	else
	{
	newWindow2.close();
	}
	newWindow2 = window.open(locURL+ '?#' +  spot.toUpperCase(),"newWindow2",'location=' + constLocation + '#' + spot +',menubar=' + constMenubar + ',scrollbars=' + constScrollbars + ',status=' + constStatus + ',titlebar=' + constTitlebar + ',toolbar=' + constToolbar + ',resizable=' + constResizable + ',width=' + XWidth + ',height=' + YHeight + ',left=' + XPos + ',top=' + YPos);

	//newWindow.location.href = locURL;
	}
else
	{
	newWindow2 = window.open(locURL+ '?#' + spot.toUpperCase(),"newWindow2",'location=' + constLocation + ',menubar=' + constMenubar + ',scrollbars=' + constScrollbars + ',status=' + constStatus + ',titlebar=' + constTitlebar + ',toolbar=' + constToolbar + ',resizable=' + constResizable + ',width=' + XWidth + ',height=' + YHeight + ',left=' + XPos + ',top=' + YPos);

	if (! newWindow2.opener)
		{
		newWindow2.opener = window;
		}
	}
	
		
if (newWindow2.focus)
	{
	newWindow2.focus();
	}
}// end of openNewWindow(locURL)



function openNewWindowEmailPreview(locURL,winWidth,winHeight,theform)
{

var formObj

// Initialize Variables for the Screen.

XPos = 400;
YPos = 0;
XWidth = winWidth;
YHeight = winHeight;
constLocation = 'no';
constMenubar = 'no';
constScrollbars = 'yes';
constStatus = 'no';
constTitlebar = 'no';
constToolbar = 'no';
constResizable = 'yes';
window.newWindowEmailPreview = '';


// If the Browser can understand the screen object, set window coordinates

if (window.screen)
	{
	YPos = ((screen.availHeight - YHeight) / 2);
	}

// If the window is open, just refresh the contents, otherwise create new window

if (window.newWindowEmailPreview)
	{
	if (isN4){
	newWindowEmailPreview.close();
	}
	else
	{
	newWindowEmailPreview.close();
	}
	newWindowEmailPreview = window.open(locURL,"newWindowEmailPreview",'location=' + constLocation +',menubar=' + constMenubar + ',scrollbars=' + constScrollbars + ',status=' + constStatus + ',titlebar=' + constTitlebar + ',toolbar=' + constToolbar + ',resizable=' + constResizable + ',width=' + XWidth + ',height=' + YHeight + ',left=' + XPos + ',top=' + YPos);

	//newWindow.location.href = locURL;
	}
else
	{
	newWindowEmailPreview = window.open(locURL,"newWindowEmailPreview",'location=' + constLocation + ',menubar=' + constMenubar + ',scrollbars=' + constScrollbars + ',status=' + constStatus + ',titlebar=' + constTitlebar + ',toolbar=' + constToolbar + ',resizable=' + constResizable + ',width=' + XWidth + ',height=' + YHeight + ',left=' + XPos + ',top=' + YPos);

	if (! newWindowEmailPreview.opener)
		{
		newWindowEmailPreview.opener = window;
		}
	}
	
		
if (newWindowEmailPreview.focus)
	{
	newWindowEmailPreview.focus();
	}
	
	

theform.action = "provider_listserver_email_addedit_preview.cfm";
theform.target = "newWindowEmailPreview";

	
}// end of openNewWindowEmailPreview(locURL,winWidth,winHeight)



function submitForm(theform)
{

theform.action = "provider_listserver_email_addedit_process.cfm?approve=no";
theform.target = "_top"; 

	
}// end of submitForm

function submitFormApprove(theform)
{

theform.action = "provider_listserver_email_addedit_process.cfm?approve=yes";
theform.target = "_top"; 

	
}// end of submitFormApprove


function submitFormReview(theform,id,therpid)
{
var thestring, nonechecked

thestring = "provider_listserver_review_process.cfm?id=" + id + "&therpid=" + therpid;

nonechecked = 1;
for (i=0; i < theform.lists.length; i++)
{ 
if(theform.lists[i].checked)
{
nonechecked = 0
}
}

if (nonechecked)
{
alert("Please select at least one list." + thestring);
	  //formObj.lists.focus();
	  return false 
}
   
theform.action = thestring; 
theform.target = "_top"; 
return turn;
	
}// end of submitFormReview(theform,id,therpid)


function ShowDate()
{

var months=new Array(13);
				months[1]="January";
				months[2]="February";
				months[3]="March";
				months[4]="April";
				months[5]="May";
				months[6]="June";
				months[7]="July";
				months[8]="August";
				months[9]="September";
				months[10]="October";
				months[11]="November";
				months[12]="December";
				var time=new Date();
				var lmonth=months[time.getMonth() + 1];
				var date=time.getDate();
				var year=time.getYear();
				if (year < 2000)    // Y2K Fix, Isaac Powell
				year = year + 1900; // http://onyx.idbsu.edu/~ipowell
				document.write(lmonth + " " + date + ", " + year);
				
}// end ShowDate()

function openNewWindowEEDayPics(locURL,winWidth,winHeight)
{

// Initialize Variables for the Screen.

XPos = 450;
YPos = 100;
XWidth = winWidth;
YHeight = winHeight;
constLocation = 'no';
constMenubar = 'no';
constScrollbars = 'yes';
constStatus = 'no';
constTitlebar = 'no';
constToolbar = 'no';
constResizable = 'no';
window.EEDayPics = '';

	EEDayPics = window.open(locURL,"EEDayPics",'location=' + constLocation + ',menubar=' + constMenubar + ',scrollbars=' + constScrollbars + ',status=' + constStatus + ',titlebar=' + constTitlebar + ',toolbar=' + constToolbar + ',resizable=' + constResizable + ',width=' + XWidth + ',height=' + YHeight + ',left=' + XPos + ',top=' + YPos);

}// end of openNewWindowEEDayPics(locURL)
		
function openNewWindowBHNNews(locURL,winWidth,winHeight)
{

//var formObj



// Initialize Variables for the Screen.

XPos = 400;
YPos = 0;
XWidth = winWidth;
YHeight = winHeight;
constLocation = 'no';
constMenubar = 'no';
constScrollbars = 'no';
constStatus = 'no';
constTitlebar = 'no';
constToolbar = 'no';
constResizable = 'yes';
window.newWindowBHNNews = '';


// If the Browser can understand the screen object, set window coordinates

if (window.screen)
	{
	YPos = ((screen.availHeight - YHeight) / 2);
	}

// If the window is open, just refresh the contents, otherwise create new window

if (window.newWindowBHNNews)
	{
	if (isN4){
	newWindowBHNNews.close();
	}
	else
	{
	newWindowBHNNews.close();
	}
	newWindowBHNNews = window.open(locURL,"newWindowBHNNews",'location=' + constLocation +',menubar=' + constMenubar + ',scrollbars=' + constScrollbars + ',status=' + constStatus + ',titlebar=' + constTitlebar + ',toolbar=' + constToolbar + ',resizable=' + constResizable + ',width=' + XWidth + ',height=' + YHeight + ',left=' + XPos + ',top=' + YPos);

	//newWindow.location.href = locURL;
	}
else
	{
	newWindowBHNNews = window.open(locURL,"newWindowBHNNews",'location=' + constLocation + ',menubar=' + constMenubar + ',scrollbars=' + constScrollbars + ',status=' + constStatus + ',titlebar=' + constTitlebar + ',toolbar=' + constToolbar + ',resizable=' + constResizable + ',width=' + XWidth + ',height=' + YHeight + ',left=' + XPos + ',top=' + YPos);

	if (! newWindowBHNNews.opener)
		{
		newWindowBHNNews.opener = window;
		}
	}
	
		
if (newWindowBHNNews.focus)
	{
	newWindowBHNNews.focus();
	}
	
	

//theform.action = "provider_listserver_email_addedit_preview.cfm";
//theform.target = "newWindowEmailPreview";


//alert('here form name -' + theform.name );

//theform.action = ""
//theform.submit();

//alert('subject - ' + theform.email_subject.value + '-')
//alert('here form name 2 -' + theform.name );


	
}// end of function openNewWindowBHNNews(locURL,winWidth,winHeight,theform)


//-->