function loadContactPosition()
{
    //var position = $('position').getValue();
    new Ajax.Updater({ success: 'contactContent', onLoading: Loading('contactContent', 'Content') },
			'resources/modules/contact/main.php',
			{
				method: 'post',
				parameters: {Page: 'Admin', Action: 'loadPosition'}
			}
	);
}
function saveContactPosition()
{
    var position = $('position').getValue();
    new Ajax.Updater({ success: 'contactContent', onLoading: Loading('contactContent', 'Content') },
			'resources/modules/contact/main.php',
			{
				method: 'post',
				parameters: {Page: 'Admin', Action: 'savePosition', Position: position}
			}
	);
}
function loadContactDetails(langCode)
{
    new Ajax.Updater({ success: 'contactContent', onLoading: Loading('contactContent', 'Content') },
			'resources/modules/contact/main.php',
			{
				method: 'post',
				parameters: {Page: 'Admin', Action: 'loadDetails', LangCode: langCode}
			}
	);
}
function saveContactDetails()
{
    var langCode = $('language').getValue();
    var phone = $('phone').getValue();
    var fax = $('fax').getValue();
    var email = $('email').getValue();
    var web = $('web').getValue();
    var address = $('address').getValue();
    new Ajax.Updater({ success: 'contactContent', onLoading: Loading('contactContent', 'Content') },
			'resources/modules/contact/main.php',
			{
				method: 'post',
				parameters: {Page: 'Admin', Action: 'saveDetails', LangCode: langCode, Phone: phone, Fax: fax, Email: email, Web: web, Address: address}
			}
	);
}
function sendContactForm()
{
    var gName = $('gName').getValue();
    var gEmail = $('gEmail').getValue();
    var gText = $('gText').getValue();
    new Ajax.Updater({ success: 'content', onLoading: Loading('content') },
			'resources/modules/contact/main.php',
			{
				method: 'post',
				parameters: {Action: 'sendForm', gName: gName, gEmail: gEmail, gText: gText}
			}
	);
}
