// JavaScript Document
function setEnglishLanguage()
{
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
var input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", "preferedLanguage");
input.setAttribute("value", "en");
document.getElementById("frmSearch").appendChild(input); 
document.frmSearch.action=sPage;
document.frmSearch.submit();
}

function setGermanLanguage()
{
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
var input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", "preferedLanguage");
input.setAttribute("value", "de");
document.getElementById("frmSearch").appendChild(input); 
document.frmSearch.action=sPage;
document.frmSearch.submit();
}
function setDeutchLanguage()
{
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
var input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", "preferedLanguage");
input.setAttribute("value", "nl");
document.getElementById("frmSearch").appendChild(input); 
document.frmSearch.action=sPage;
document.frmSearch.submit();
}
function setFranchLanguage()
{
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
var input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", "preferedLanguage");
input.setAttribute("value", "fr");
document.getElementById("frmSearch").appendChild(input); 
document.frmSearch.action=sPage;
document.frmSearch.submit();
}

 
function showResponse(originalRequest)
{
	alert(originalRequest.responseText);
}

function setscrollspeed(amount)
{
document.getElementById('newsandivents').scrollAmount=amount;
}
 
function setPrvscrollspeed(amount)
{
document.getElementById('newsandivents').scrollAmount=amount;
}
