function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function network_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
/*/
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
/*/
//Highlight form element- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com
// <FORM onKeyUp="highlight(event)" onClick="highlight(event)">

  function squirrelmail_loginpage_onload() {
    document.forms[0].js_autodetect_results.value = '1';
    document.forms[0].elements[0].focus();
  }

var highlightcolor="#81A0C0"

var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}
//
if (self != top) top.location.replace(self.location);
//
var ns4class=''
//
// make sure folks don't submit a form entry twice ;)
function submitonce(theform){
	//if IE 4+ or NS 6+
	if (document.all||document.getElementById){
	//screen thru every element in the form, and hunt down "submit" and "reset"
	for (i=0;i<theform.length;i++){
	var tempobj=theform.elements[i]
	if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
	//disable em
	tempobj.disabled=true
	}
	}
}
// clear a field.. for search fields and such
// usage:   <input type="text" value="Search this site" onFocus="clearText(this)">
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
//
// Confirmation Message Button
//
// href="" onClick="tmt_confirm('Are%20you%20sure%20you%20want%20to%20perform%20this%20action?');return document.MM_returnValue">
//
function tmt_confirm(msg){
	document.MM_returnValue=(confirm(unescape(msg)));
}
//
//
//
function obscurefield(callingElement) {
  callingElement.elements[0].value = "*******";
}
//
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Please check the box if you agree with the listed User Registration Agreement & Biblical Truths.');
return false;
}else
return true;
}
//
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
	field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
	countfield.value = maxlimit - field.value.length;
}
function stTBgr()
{
	fontSize += 1;
	if (fSize == 1)
	{
		if (fontSize > 16) fontSize = 16;
	}
	else 
	{
		if (fontSize > 19) fontSize = 19;	// +3px for the serif font
	}
	stSetObj();
	stObj.style.fontSize = fontSize + 'px';
	stSavePrefs();
};
	
function stTSmr()
{
	fontSize -= 1;
	if (fSize == 1)
	{
		if (fontSize < 9) fontSize = 9;
	}
	else 
	{
		if (fontSize < 12) fontSize = 12;	// +3px for the serif font
	}
	stSetObj();
	stObj.style.fontSize = fontSize + 'px';
	stSavePrefs();
};
function fizz() 
{
	if (skin)
	{
		yyy = -1000;
		skin.width = 0;
		if (ieX || ie4 || ns6) 
		{
			skin.visibility = 'hidden';
			skin.display    = 'none';	// fixes a scrollbar bug in IE5 for Mac - still not happy with it
		}
		if (ns4) skin.visibility = 'hide';
	}
	else return;
};
////////////////////
function MM_preloadImages() { //v3.0
  var d=document; 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];}
}
//////////////
// auto form seclect mouse...
/////////////////
function focusTextField (form) { 
        // first, validate form objects 
        if ((typeof form != 'object') || (typeof form.elements != 'object')) { 
                return false; 
        } 
        // set array of elements 
        var elements = form.elements; 
        // loop through array of elements, finding the first empty input field 
        // set focus to that field 
        for (var i = 0; i < elements.length; i++) { 
                if ((elements[i].type != 'text') && 
                        (elements[i].type != 'password') && 
                        (elements[i].type != 'textarea')) 
                { 
                        continue; 
                } 
                if (elements[i].name == 'helpbox') { 
                        continue; 
                } 
                if (elements[i].value == '') { 
                        elements[i].focus(); 
                        break; 
                } 
        } 
        return true; 
}
///////////////////////////////
// COPY TO CLIPBOARD
//////////////////////////////
//specify whether contents should be auto copied to clipboard (memory)
//Applies only to IE 4+
//0=no, 1=yes
var copytoclip=1
//
function HighlightAll(theField)
{
	var tempval=eval("document."+theField)
	tempval.focus()
	tempval.select()
	if (document.all&&copytoclip==1)
	{
		therange=tempval.createTextRange()
		therange.execCommand("Copy")
		window.status="Contents highlighted and copied to clipboard!"
		setTimeout("window.status=''",1800)
	}
}
//