function submit_registration()
{
	var a = encodeURIComponent( $('input#screen').val() );
	var b = encodeURIComponent( $('input#name').val() );
	var c = encodeURIComponent( $('input#email').val() );
	var d = encodeURIComponent( $('input#www').val() );
	var e = encodeURIComponent( $('select#country').val() );
	var twit = encodeURIComponent( $('input#twitter').val() );
	var f = $("input[name=news]:checked").val(); 
	var z = encodeURIComponent( $('input#checker').val() );

	if ((a == '') || (c == '') && (z == ''))
	{
		$('#form-return').html("<p style=' color: #f00;'>You missed some required fields.</p>");
		$('#form-return p').fadeOut(9000);
	}
	else
	{
		$.post('/script/register.script.php', { register : 'true', action : 'reg', screen : a, name : b, email : c, www : d, country : e, news: f, t : twit }, 
		function(html){
			register_inform(html)
		});
	}

	return false;
}

function register_inform(text)
{
//alert(text);
	if (text == 'true')
	{
		$('#form-return').html("<p style=' color: #0c0;'>Thanks for registering. Check your email (and your spam box) for a confirmation note. If you do not recieve one contact us as contact [at] indexhibit [dot] org.</p>");

		$('#forms-closer').slideUp();
	}
	else
	{
		$('#form-return').html(text);
		$('#form-return p').fadeOut(9000);
	}

	return false;
}

function submit_forgotten()
{
	var a = encodeURIComponent( $('input#exh_u_email').val() );
	var z = encodeURIComponent( $('input#checker').val() );

	if ((a == '') || (z != ''))
	{
		$('#form-return').html("<p style=' color: #f00;'>You need to input your email address.</p>");
		$('#form-return p').fadeOut(9000);
	}
	else
	{
		$.post('/script/confirmation.script.php', { register : 'true', action : 'iforgot', exh_u_email : a }, 
		function(html){
			$('#form-return').html(html);
		});
	}

	return false;
}

function contented() 
{ 
	var frame_x = $('body').width(); 
	$('#menu').css('width', 205);
	$('#content').css('width', frame_x-205);
}

//$(document).ready( function() { contented(); } );
//$(window).resize( function() { contented(); } );
