function swapDiv(to){	//alert(document.getElementById('localHeader').style.className);	content2 = '<ul><li><a href="#">PSC religious heritage event to feature Obama pastor</a></li><li><a href="#">New and different approaches to General Conference expected</a></li><li><a href="#">Steele earns BMCR endorsement</a></li><li><a href="#">Episcopal candidates gatther in Dallas</a></li><li class="last"><a href="#">Pastoral leadership and church growth efforts earn kuds</a></li></ul><p><a href="#">More News</a></p>';	content1 = '<ul><li><a href="#">Global Link 1</a></li><li><a href="#">Global Link 2</a></li><li><a href="#">Global Link 3</a></li><li><a href="#">Global Link 4</a></li><li class="last"><a href="#">Global Link 4</a></li></ul><p><a href="#">More Global News</a></p>';	if (to == 1){		tar1 = document.getElementById('localHeader');		tar2 = document.getElementById('globalHeader');		if (tar1.className == 'active'){			tar1.className = 'last';		}		if (tar2.className != 'active'){			tar2.className = 'active';		}		document.getElementById('jlinks').innerHTML = content1;	}	if (to == 2){		tar1 = document.getElementById('localHeader');		tar2 = document.getElementById('globalHeader');		if (tar1.className != 'active'){			tar1.className = 'active';		}		if (tar2.className == 'active'){			tar2.className = 'last';		}		document.getElementById('jlinks').innerHTML = content2;	}}function changeFontSize(inc){  p = document.getElementsByTagName('p');  for(n=0; n<p.length; n++) {    if(p[n].style.fontSize) {       size = parseInt(p[n].style.fontSize.replace("px", ""));    } else {       size = 12;    }    if (p[n].className != 'f-left'){		p[n].style.fontSize = size+inc + 'px';	}   }}function checkPEM(){			if (isEmail(document.getElementById('pem').value) == false){				alert('You must provided a valid email address before trying to retreave a password.');				return false;			}		}				function checkLOG(){			if (document.getElementById('u').value == ''){				alert('You must provided a username');				return false;			}else if (document.getElementById('p').value == ''){				alert('You must provided a password');				return false;			}		}				function isEmail(str) {			var supported = 0;			if (window.RegExp) {				var tempStr = "a";				var tempReg = new RegExp(tempStr);				if (tempReg.test(tempStr)) supported = 1;				}			if (!supported)				return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);				var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");				var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");			return (!r1.test(str) && r2.test(str));		}