

function newwin(ref,x,y)
{
var test=ref.indexOf("http://solvimo.quicktour.fr");
if (test>=0)
 {
  ref=ref.substr(test,ref.length-test);
  var x = 400, y = 330, xMax = 1024, yMax = 768;
  if(document.all) { var xMax = screen.width, yMax = screen.height; } 
  else if(document.layers) { var xMax = window.outerWidth, yMax = window.outerHeight; }
  var xOffset = (xMax - x)/2, yOffset = (yMax - y)/2;
  window.open(ref+'&r='+window.location.href, 'QuickTour'+x, 'width='+x+',height='+y+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset);
 }
else
 {
  var test2=ref.indexOf("http://www.webvisium.com");  
  if(test2>=0){
    var x = 500 , y = 400;
                var top=(screen.height-y)/2;
    var left=(screen.width-x)/2;
    window.open(ref,'ref','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top='+top+',left='+left+',height='+y+',width='+x);
  } else {
  var test3=ref.indexOf("http://www.svp-immo.com");
                if(test3>=0){
                var x = 800 , y = 600;
                var top=(screen.height-y)/2;
    var left=(screen.width-x)/2;
                 window.open(ref,'ref','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top='+top+',left='+left+',height='+y+',width='+x);
                } else {
                var top=(screen.height-y)/2;
    var left=(screen.width-x)/2;
    window.open(ref,'ref','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top='+top+',left='+left+',height='+y+',width='+x);
                }
  }
 }
}


function tri(t) {
		if (t) {
			var tri = t.options[t.selectedIndex].value;
			document.location.href=urlsanstri+'&TRI='+tri;
			return true;
		}
	}


function temporise(param)
{
	if (param == 1)
	{
		window.focus();
		setTimeout("temporise(2)",2000);
	}
	else if (param == 2)
	{
		window.close();
	}
}

function setTYPE(){
	if(document.rechercherlogement.transaction[1].checked){
		if(document.rechercherlogement.T1.checked){
			document.rechercherlogement.T1.value = 11;
		}
		if(document.rechercherlogement.T2.checked){
			document.rechercherlogement.T2.value = 12;
		}
		if(document.rechercherlogement.T5.checked){
			document.rechercherlogement.T5.value = 13;
		}
	}
	document.rechercherlogement.submit();
	return true;									
} 

