function getSpecialLink() {
	new Ajax.Request('/index/special',{
		method: 'post',
		onSuccess: function(a_objResponse) {
			Element.update('spnSpecial', a_objResponse.responseText);
		}
	});
}

function getArticleTeaser() {
	Element.update('spnArticle', '<img src="/img/ajax-loader.gif" height="16" width="16" alt="Loading ..." />');

	new Ajax.Request('/pro/index/article',{
		method: 'post',
		onSuccess: function(a_objResponse) {
			Element.update('spnArticle', a_objResponse.responseText);
		}
	});
}

function getNewsTeaser() {
	Element.update('spnNews', '<img src="/img/ajax-loader.gif" height="16" width="16" alt="Loading ..." />');

	new Ajax.Request('/pro/index/news',{
		method: 'post',
		onSuccess: function(a_objResponse) {
			Element.update('spnNews', a_objResponse.responseText);
		}
	});
}

function getEventTeaser() {
	Element.update('spnEvent', '<img src="/img/ajax-loader.gif" height="16" width="16" alt="Loading ..." />');

	new Ajax.Request('/pro/index/event',{
		method: 'post',
		onSuccess: function(a_objResponse) {
			Element.update('spnEvent', a_objResponse.responseText);
		}
	});
}

function doContact(a_objForm) {
	Element.update('spnAjaxStatus', '<img src="/img/ajax-loader.gif" height="16" width="16" align="absmiddle" alt="Loading ..." />');

	new Ajax.Request('/pro/content/docontact',{
		parameters : Form.serialize(a_objForm),
		method: 'post',
		onSuccess: function(a_objResponse) {
			Element.update('spnAjaxStatus', '');
			Element.update('spnStatus', a_objResponse.responseText);
		}
	});

	return false;
}

function toggleDetails() {
	blnObj = $('pMsgList');
	imgObj = $('imgExpangMsg');

	if (blnObj.style.display == 'none') {
		blnObj.style.display = '';
		imgObj.src = '/img/misc/admin/icon/minus.gif';
		imgObj.alt = 'Hide message';
		imgObj.title = 'Hide message';
	}

	else {
		blnObj.style.display = 'none';
		imgObj.src = '/img/misc/admin/icon/plus.gif';
		imgObj.alt = 'Show message';
		imgObj.title = 'Show message';
	}
}

function getEventList() {
	Element.update('spnTarget', '<img src="/img/ajax-loader.gif" height="16" width="16" alt="Loading ..." />');

	new Ajax.Request('/pro/events/listevents',{
		method: 'post',
		onSuccess: function(a_objResponse) {
			Element.update('spnTarget', a_objResponse.responseText);
		}
	});
}

function getNewsList() {
	Element.update('spnTarget', '<img src="/img/ajax-loader.gif" height="16" width="16" alt="Loading ..." />');

	new Ajax.Request('/pro/news/listnews',{
		method: 'post',
		onSuccess: function(a_objResponse) {
			Element.update('spnTarget', a_objResponse.responseText);
		}
	});
}

function getArticlesList() {
	Element.update('spnTarget', '<img src="/img/ajax-loader.gif" height="16" width="16" alt="Loading ..." />');

	new Ajax.Request('/pro/resources/listarticles',{
		method: 'post',
		onSuccess: function(a_objResponse) {
			Element.update('spnTarget', a_objResponse.responseText);
		}
	});
}

function adjustTextSize(a_strMode) {
	$('spnTarget').className = 'size' + a_strMode;

	switch(a_strMode) {
		case '1':
			$('aSize1').style.fontWeight = 'bold';
			$('aSize2').style.fontWeight = '';
			$('aSize3').style.fontWeight = '';
			break;

		case '2':
			$('aSize1').style.fontWeight = '';
			$('aSize2').style.fontWeight = 'bold';
			$('aSize3').style.fontWeight = '';
			break;

		case '3':
			$('aSize1').style.fontWeight = '';
			$('aSize2').style.fontWeight = '';
			$('aSize3').style.fontWeight = 'bold';
			break;
	}
}

//
//function highlitePage(a_strTarget) {
//	window.document.getElementById(a_strTarget).style.backgroundColor = '#FEF4A5';
//}
//
//function goBack() {
//	history.back();
//}
//
//function setPaymentMethodInformation(a_strValue) {
//	var objForm = window.document.frmMain;
//	var objSpan = window.document.getElementById('spnNumber');
//
//	switch (a_strValue) {
//		case 'CH':
//			objForm.txtChkMONum.disabled = false;
//			objForm.txtBank.disabled = false;
//			objForm.txtChkMONum.style.backgroundColor = '#fff';
//			objForm.txtBank.style.backgroundColor = '#fff';
//			objSpan.innerHTML = 'Cheque No.: <span class="red">*</span>';
//			break;
//
//		case 'MO':
//			objForm.txtChkMONum.disabled = false;
//			objForm.txtBank.disabled = true;
//			objForm.txtBank.style.backgroundColor = '#F1F1F1';
//			objForm.txtChkMONum.style.backgroundColor = '#fff';
//			objSpan.innerHTML = 'Money Order No.: <span class="red">*</span>';
//			break;
//
//		default:
//			objForm.txtChkMONum.disabled = true;
//			objForm.txtBank.disabled = true;
//			objForm.txtChkMONum.style.backgroundColor = '#F1F1F1';
//			objForm.txtBank.style.backgroundColor = '#F1F1F1';
//			objSpan.innerHTML = 'Cheque/MO No.: <span class="red">*</span>';
//			break;
//	}
//}