function go(url,page,typeB) {
   window.location.href = url+'?pagenum='+page+'&typeB='+typeB;
  
  //   document.form1.action = 'lyon-vente-maison-appartement.php.php?pagenum='+page;
//   document.form1.submit();
}

function changeImg(img) {
 document.getElementById("img_ann").style.display='block';
 document.getElementById("flash_map").style.display='none';
 var big_photo = document.getElementById('big_pict') ;
// big_photo.src = '../images/normal/'+img;
 big_photo.src = img;
}

/*function changeImg(img) {
 var img_ann = document.getElementById('img_ann') ;
 str = '<img id="big_pict" style="margin-left:-5px;border: 1px solid #FFFFFF;" src="'+img+'" border=0>';
 img_ann.innerHTML = str;
}
*/

function map() {
 document.getElementById("img_ann").style.display='none';
 document.getElementById("flash_map").style.display='block';
}

function textCounter(name, count, charlimit) {
if (name.value.length > charlimit) // if too long...trim it!
name.value = name.value.substring(0, charlimit);
// otherwise, update 'characters left' counter
else 
count.value = charlimit - name.value.length;
}
