function checkAction( id ){

	var allOption = new Array('area_categories', 'area_sections', 'area_newsfeeds', 'area_contacts', 'area_weblinks', 'area_content', 'area_themes');
	var themesOption = new Array( 'area_categories', 'area_sections' );
	
	var numAll = allOption.length;
	var numThemes = themesOption.length;

	var checkOption = document.getElementById(id);



	if( id == 'area_all'){
		if(checkOption.checked==true){
			for( i=0; i< numAll; i++){
				document.getElementById( allOption[i] ).checked=true;
			}
		}else{
			for( i=0; i< numAll; i++){
				document.getElementById( allOption[i] ).checked=false;
			}
		}
	}else{
		if( id == 'area_themes' ){
			if(checkOption.checked == true){
				for( i=0; i< numThemes; i++){
					document.getElementById( themesOption[i] ).checked=true;
				}
			}else{
				for( i=0; i< numThemes; i++){
					document.getElementById( themesOption[i] ).checked=false;
				}
			}
		}
	}
}

function checkChecked(){
	url = window.location.href;

	if(url.search('allWebSite') != -1 ){
		//alert(url.search('allWebSite')+'all');
		document.getElementById( 'area_all' ).checked=true;
		document.getElementById( 'area_themes' ).checked=true;
		//checkAction( 'area_all' );

	}else{
		if(url.search('themes')  != -1 ){
			//alert( url.search('themes')  + 'themes');
			document.getElementById( 'area_themes' ).checked=true;
			//checkAction( 'area_themes' );

		}
	}

}