function display(element) {
	var but = document.getElementById(element);
	but.style.display = 'block'
}
function hide(element) {
	var but = document.getElementById(element);
	but.style.display = 'none'
}

function resizeHeight(altezza,id){
	var TotAltezza = altezza;
	var thisOne = document.getElementById(id);
	thisOne.style.height = TotAltezza + "px";
}
function setTop(altezza,id){
	var TotAltezza = altezza;
	document.getElementById(id).style.top = TotAltezza + "px";
}
function linkInTopFrame(link,frame){
        top.frames[frame].location.href = link;
}
var timerId;
function startTrigger(n){
	if(!n){
		n = 5000;
	}
	if(!timerId){
        	timerId = setTimeout('hide("listProductsFloating");stopTrigger();', n);
	}
}
function stopTrigger(){
	clearTimeout(timerId);
	timerId = false;
}
/* ajax */
function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}