jQuery( window ).ready( function ()
{
	jQuery( '#Size_Chart' ).dialog(
	{
		autoOpen: false,
		bgiframe: true,
		dialogClass: 'success-dialog',
		modal: false,
		resizeable: false,
		stack: true,
		width: '550px'
	});
	
	jQuery( '#Error_Dialog' ).dialog(
	{
		autoOpen: true,
		bgiframe: true,
		dialogClass: 'error-dialog',
		modal: false,
		resizeable: false,
		stack: true,
		width: '375px'
	});
	
	jQuery( '#JS_Error_Dialog' ).dialog(
	{
		autoOpen: false,
		bgiframe: true,
		dialogClass: 'error-dialog',
		modal: false,
		resizeable: false,
		stack: true,
		width: '375px'
	});
		
	jQuery( '#Success_Dialog' ).dialog(
	{
		autoOpen: false,
		bgiframe: true,
		dialogClass: 'success-dialog',
		modal: false,
		resizeable: false,
		stack: true,
		width: '400px'
	});
});

function openSizeChart()
{
	jQuery( '#Size_Chart' ).dialog( 'open' );
	
	jQuery( '#Size_Chart' ).css( 'width', 528 + 'px' );
}

function closeSizeChart()
{
	jQuery( '#Size_Chart' ).dialog( 'close' );
}

function openError()
{
	jQuery( '#Error_Dialog' ).dialog( 'open' );
}

function closeError()
{
	jQuery( '#Error_Dialog' ).dialog( 'close' );
}

function openJSError()
{
	jQuery( '#JS_Error_Dialog' ).dialog( 'open' );
}

function closeJSError()
{
	jQuery( '#JS_Error_Dialog' ).dialog( 'close' );
}

function openSuccess()
{
	jQuery( '#Success_Dialog' ).dialog( 'open' );
}

function closeSuccess()
{
	jQuery( '#Success_Dialog' ).dialog( 'close' );
}