
	function get_size() 
	{
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) 
		{
			//Non-IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;

		} else if(
				( document.documentElement && 
					( document.documentElement.clientWidth || document.documentElement.clientHeight ) 
				) 
		)
		{
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;

		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
		{

			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}

		//window.alert( 'Width = ' + myWidth );
		//window.alert( 'Height = ' + myHeight );

		return myWidth ;
	}

	function showstatus( dothis )
	{
		
		var test	= 'Wil jij een slimme marketeer worden?              Ga naar SlimVerdienen.com !!!';
		var tmp		= window.status;
		var len		= tmp.length;
		var newlen	= len+1;

		if (
			( window.status != test ) ||
			( window.status != 'Klaar' )
		)
		{
			window.status	= test.substr( test , newlen );
		}else{
			if (
				( dothis == 1 )
			)
			{
				dothis = 2 ;
				window.status	= '';
			}else{
				dothis = 1 ;
				window.status	= test;
			}
		}

		setTimeout( 'showstatus( \"' + dothis + '\" )' , 100 );

	}

	function save_settings( f )
	{
		var id = 'save_settings';

		document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
		var obj = new ajaxObject( f , id , '../ajax/save_settings.php' );
		obj.update();
	}

	function save_password( f )
	{
		var id = 'save_pw';

		document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
		var obj = new ajaxObject( f , id , '../ajax/save_pw.php' );
		obj.update();
	}

	function del_img( f , file )
	{
		var id = 'del_menubalk';

		document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
		var obj = new ajaxObject( f , id , '../ajax/del_img.php?f=' + file );
		obj.update();
	}

	function do_update( f )
	{
		var id = 'do_update';

		document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
		var obj = new ajaxObject( f , id , '../ajax/do_update.php' );
		obj.update();

	}

	function set_default_colors( f )
	{
		var id = 'set_default_colors';

		if ( confirm( 'Weet u zeker dat u alle kleur-instellingen wilt terugzetten naar de standaardwaarden?' ) )
		{
			document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
			var obj = new ajaxObject( f , id , '../ajax/set_default_colors.php' );
			obj.update();
		}
	}
	
	function connection_active( f )
	{
		var id = 'connection';

		document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
		var obj = new ajaxObject( f , id , '../ajax/ajax_connection.php?all=0' );
		obj.update();

	}

	function connection_selected( f )
	{
		var id = 'connection';

		document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
		var obj = new ajaxObject( f , id , '../ajax/ajax_connection.php?all=1' );
		obj.update();

	}

	function ajax_dichtheid( f )
	{
		var id = 'dichtheid';

		document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
		var obj = new ajaxObject( f , id , '../ajax/ajax_dichtheid.php' );
		obj.update();

	}

	function ajax_set_setup( f , id , val )
	{

		document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
		var obj = new ajaxObject( f , id , '../ajax/ajax_set_setup.php?field=' + val );
		obj.update();

	}

	function ajax_set_setup_contact( f , id )
	{

	
		document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
		var obj = new ajaxObject( f , id , '../ajax/ajax_set_setup_contactform.php' );
		obj.update();

	}	
	

	function ajax_set_setup_menudir( f , id )
	{

	
		document.getElementById(id).innerHTML = '<img border=0 src=\"../images/loader.gif\" >';
		var obj = new ajaxObject( f , id , '../ajax/ajax_set_setup_menudir.php' );
		obj.update();

	}

	function checkChars( sText , ValidChars )
	{

		var IsNumber=true;
		var Char;

		for (i = 0; i < sText.length && IsNumber == true; i++) 
		{ 
			Char = sText.charAt(i); 
			if (ValidChars.indexOf(Char) == -1) 
			{
				//alert( 'Teken: ' + Char + ' (' + sText + '-' + ValidChars + ')' );
				IsNumber = false;
			}
		}
		return IsNumber;
   
	}
