	var ajaxObjects = new Array();
	
	function oznZavBlogResp(ajaxIndex){
		//var r=document.getElementById("regdominfo");
		rt=ajaxObjects[ajaxIndex].xmlhttp.responseText;
		if (rt=='1'){
			document.getElementById('pictblset').style.display='';
			//r.innerHTML = "Adresa blogu (doména) je již<br> registrovaná.";
		}else{
			document.getElementById('pictblset').style.display='none';
		}
		//alert(rt);
	}

	function oznZavBlog(val){
		// alert(val);
		//alert(document.f.impinf.value);
		
			var ajaxIndex = ajaxObjects.length;
	   		ajaxObjects[ajaxIndex] = new sack();
	   		ajaxObjects[ajaxIndex].requestFile = '/scripts/oznblog.php?b='+val+'&t='+document.f.impinf.value;
			ajaxObjects[ajaxIndex].method = "POST";
	//		ajaxObjects[ajaxIndex].onLoading = whenLoading;
	//		ajaxObjects[ajaxIndex].onLoaded = whenLoaded; 
	//		ajaxObjects[ajaxIndex].onInteractive = whenInteractive;
	   		ajaxObjects[ajaxIndex].onCompletion = function(){ oznZavBlogResp(ajaxIndex); };
			ajaxObjects[ajaxIndex].runAJAX();
			document.getElementById('infotext').style.visibility='hidden';
	}
	function openInfoText(){
		//oznZavBlog(val);
		//alert(document.f.impinf.value);
		if(document.getElementById('pictblset').style.display == 'none'){
			document.getElementById('infotext').style.visibility='';
		}else{
			alert('Na obsah tohoto blogu jste už upozornil.');
		}
	}	
		
	//document.getElementById('pictblset').style.display='none';
	