uhel = 0;
amplY = 15;
amplX = 35;

function doMove()
{

	obj=document.getElementById("Maskot");
	
	
	sW = (document.body.clientWidth-900)/2;
	if (sW<0) {
	  sW=0;
	}

	topValue = 10 + Math.cos((uhel*3.1457)/180)* amplY;
	leftValue = sW + Math.sin((uhel*3.1457)/180)* amplX;
	
	obj.style.top = topValue+"px";
	obj.style.left = leftValue+"px";
	
	uhel = uhel + 10;
	if (uhel==180) {
	}
	if (uhel==360) {
		uhel = 0;
	}
	setTimeout('doMove()',40);
}


function RemoveDangerousTAGS(obj)
{
  var TAG = new Array();
  TAG[0] = "<script";	
  TAG[1] = "<iframe";	
  TAG[2] = "<?";	
  TAG[3] = "<input";	
  TAG[4] = "<font";	
  TAG[5] = "<strong";	
  TAG[6] = "<b";	
  TAG[7] = "<u";	
  TAG[8] = "<i";	
  _tmp = obj.value;

  err = false;
  for (i=0; i<TAG.length; i++) {
	if ( _tmp.toUpperCase().indexOf( TAG[i].toUpperCase() )!=-1 ) err = true;
  }
  if (err==true) {
    obj.value = "";
    alert("Pokoušíte se vkládat nepovolené znaky nebo značky !!!");  
  }

//  obj.focus();	
}

function CheckStatus()
{
	var status = 1;
	
	status = ( (formSEND.ebNICK.value!='')||(formSEND.ebNAME.value!='') ) ? (status*1):(status*0);
	status = (formSEND.taTEXT.value!='') ? (status*1):(status*0);
	
	btn = document.getElementById("bSubmit");
	btn.disabled = true;
	if (status==1)
		btn.disabled = false;
}

