function submit_registration()
{
	var a = encodeURIComponent( $('input#exh_u_screen').val() );
	var b = encodeURIComponent( $('input#exh_u_name').val() );
	var c = encodeURIComponent( $('input#exh_u_email').val() );
	var d = encodeURIComponent( $('input#exh_u_www').val() );
	var e = encodeURIComponent( $('select#exh_u_country').val() );
	var f = $("input[name=exh_u_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', exh_u_screen : a, exh_u_name : b, exh_u_email : c, exh_u_www : d, exh_u_country : e, exh_u_news: f }, 
		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(); } );