function thanks(){
	alert("10x");
	window.location="index.php";
/*
	closeForm();
	popUp = document.getElementById('formBox');	
	popUp.className = 'formBox';
	popUp.style.left = (getScrollXY()[0]+((getSizes()[0]-410)/2))+ "px";
	popUp.style.top = (getScrollXY()[1])+ "px";
	popUp.style.visibility = 'visible';
	var popUp2 = document.getElementById('formBox2');
	popUp2.innerHTML = 'pls w8...';
	new Draggable('formBox',{handle:'handle1',endeffect:false});
	new Ajax.Updater('formBox2', 'jax/pool_popup.jax.php', {evalScripts:true, method:'post', postBody:''});
*/
}



function getScrollXY() {
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  return [ scrOfX, scrOfY ];
}


function closeForm() {
	popUp = document.getElementById('formBox');			
	popUp.style.visibility = 'hidden';
	var popUp2 = document.getElementById('formBox2');	
	popUp2.innerHTML = 'Wait...';
	document.onclick = '';
	//closeBox();
}

function enable_time()
{
	param=document.getElementById('tip');
	targ=document.getElementById('locatie_timp_min');
	//alert(param.value);	
	if(param.value==2)
		targ.disabled=false;
	else
		targ.disabled=true;
}

function getSizes() {
  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, myHeight ]
}


function showImgs(id){
	//alert(":))");
	closeForm();
	popUp = document.getElementById('formBox');	
	//popUp.className = 'formBox';
	popUp.style.left = (getScrollXY()[0]+((getSizes()[0]-410)/2))+ "px";
	popUp.style.top = (getScrollXY()[1])+ "px";
	popUp.style.visibility = 'visible';
	
	var popUp2 = document.getElementById('formBox2');
	popUp2.innerHTML = 'pls w8...';
	new Draggable('formBox',{handle:'handle1',endeffect:false});
	new Ajax.Updater('formBox2', 'jax/show_imgs.jax.php', {evalScripts:true, method:'post', postBody:'id='+id});
}
