

function quicklink(basePath){

var newURL=document.forms['search'].query.value;
var bQuicklink = false; 
if (newURL.match("[0-9]{6}")){
	window.location.href = "/" + newURL;
	bQuicklink = true;
}else{

if ((newURL.indexOf("en/") == 0) || (newURL.indexOf("de/")) == 0){
  newURL = "/" + newURL;
  bQuicklink = true;
}

if (newURL.match(/\d{1,2}-www|\d{1,2}-INT|\d{1,3}-www|\d{1,3}-INT|\d{1,4}-www|\d{1,4}-INT|\d{1,5}-www|\d{1,5}-INT|\d{1,6}-www|\d{1,6}-INT/)){
  newURL = "http://" + window.location.host + basePath + "/" + newURL ;
  bQuicklink = true;
}else{
if (newURL.match(/^(\d{1,2}|\d{1,3}|\d{1,4}|\d{1,5}|\d{1,6})/)){
  newURL = "http://" + window.location.host + basePath + "/" + newURL + "-www";
  bQuicklink = true;
}
}
}
if (bQuicklink == true){
	window.location.href = newURL;
return(false);
}else{
return(true);
}
}
