function Popup(url,pWidth,pHeight) {
	var large = screen.width;
	large = (large/2)-(pWidth/2);
	var haut = screen.height;
	haut = (haut/2)-(pHeight/2);
	window.open(url,'','fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+pWidth+',height='+pHeight+',top='+haut+',left='+large+',true');
}

function printStPreview(){
	var curUrl = window.location.href;
	url = curUrl.substring(0, curUrl.lastIndexOf("/"))+"/print_"+curUrl.substring(curUrl.lastIndexOf("/")+1);
	w = window.open(url,'700x600','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,width=700,height=600');
	w.focus();
	void(0);
}

var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1); 

function printPage() {
  if (pr) // NS4, IE5
    window.print()
  else if (da && !mac) // IE4 (Windows)
    vbPrintPage()
  else // other browsers
  { 
  alert("Votre navigateur ne peut lancer l'impression par ce raccourci.");
  return false;
  }
}
function goSearch(element)
{
switch(element)
{
	case '1':
		window.open('/recherche/distributeurs/index.asp?p=http://www.epcos.com/web/distributors/parameterSearch.jsp%3Flocale=fr%26distributorId=16%26shop=no%26cssurl=C%3A%2FdistributorServer%2Fdistributor',"_top");
		break;
	case '2':
		window.open('/recherche/distributeurs/index.asp?p=http://www.epcos.com/web/distributors/searchOrderingCode.jsp%3Flocale=fr%26distributorId=16%26shop=no%26cssurl=C%3A%2FdistributorServer%2Fdistributor',"_top");
		break;
	case '4':
		window.open('/recherche/distributeurs/index.asp?p=http://www.epcos.com/web/distributors/searchXREF.jsp%3Flocale=fr%26distributorId=16%26shop=no%26cssurl=C%3A%2FdistributorServer%2Fdistributor',"_top");
		break;
}
}