//window.defaultStatus='australiens.net';

window.defaultStatus='Australiens.net - The Australian PsyTrance Network';

function displayStarsign(strStarsign) {
	if (strStarsign) {
		divStarsign.innerHTML = '<b>' + strStarsign + '</b>';
	} else {
		divStarsign.innerHTML = '';
	}
}

function mouseOver(objItem, strStatus) {
	objItem.style.borderWidth = '1px';
	objItem.style.borderStyle = 'solid';
	//objItem.style.borderColor = '#8596AF';
	objItem.style.borderLeftColor = '#8596AF';
	objItem.style.borderRightColor = '#8596AF';
	objItem.style.borderTopColor = '#52637F';
	objItem.style.borderBottomColor = '#52637F';
	objItem.style.color = '#FFFFFF';
	objItem.style.backgroundColor='#52637F';
	window.status = strStatus;
}

function mouseOut(objItem) {
	//objItem.style.borderWidth = '1px';
	//objItem.style.borderStyle = 'none';
	objItem.style.borderColor = '#666666';
	objItem.style.backgroundColor='';
	objItem.style.color = '';
	window.status = '';
}



function displayStatus(strStatus) {
	window.status = strStatus;
	return true;
}

function defStatus() {
	window.status = '';
	return true;
}

function alienMouseOver(alienLogoID) {
	document.alienLogoID.style.filter='Chroma(Color=#000000) Glow(Color=#6666FF, Strength=20)';
	return true;
}

function alienMouseOut(alienLogoID) {
	document.alienLogoID.style.filter='';
	return true;
}

function toggleSelectAll(flgSelectAll) {
//	alert('Value: ' + flgSelectAll);

	if (flgSelectAll == false) {
		for(var i=0; i<document.frmIM.length; i++){
			if(document.frmIM.elements[i].type == "checkbox") { 
				document.frmIM.elements[i].checked = false; 
			}
		}
	} else {
		for(var i=0; i<document.frmIM.length; i++) {
			if(document.frmIM.elements[i].type == "checkbox") { 
				document.frmIM.elements[i].checked = true; 
			}
		}
	}
}

function switchSection(objSection) {
	if(objSection.className=='profileHeadingClosed') {
		objSection.parentNode.className='profileDivOpen';
		objSection.nextSibling.className='profileListOpen';
		objSection.className = 'profileHeadingOpen';
	} else {
		objSection.parentNode.className='profileDivClosed';
		objSection.nextSibling.className='profileListClosed';
		objSection.className = 'profileHeadingClosed';
	}
	return 0;
}

/*
function whatsonSubmitHandler(mode, active) {
	if(mode == 'edit') { 
		// Editing record, handle date change functionality.


	} else {
		// Adding new record, handle radio button.
		if(document.getElementById('radDisagree').checked) {
			alert('You must read and accept the Terms & Conditions before Continuing'); 
			return false;
		}
	}

}
*/

function checkTerms() {
	if(document.getElementById('radDisagree').checked) {
		alert('You must read and accept the Terms & Conditions before Continuing'); 
		return false;
	}
}

function checkDateChange(origStartYear, origStartMonth, origStartDay) {
	var newStartYear = document.getElementById('fldStartDateYear').value;
	var newStartMonth = document.getElementById('fldStartDateMonth').value;
	var newStartDay = document.getElementById('fldStartDateDay').value;

	if( (origStartYear != newStartYear) || (origStartMonth != newStartMonth) || (origStartDay != newStartDay) ) {
		if(window.confirm( 'By changing your events date, your event will \nrequire new authorisation before it is listed.  Continue?')) {
			return true;
		} else {
			return false;
		}
	}
}
