setWTC

function setWTCookie(name, value, expires, path, domain) {
 // set time, it's in milliseconds
 var today = new Date();
 today.setTime(today.getTime());

 if (expires) {
 expires = expires * 1000 * 60 * 60 * 24;
 }

 var expires_date = new Date(today.getTime() + (expires));

 var test = name + "=" + escape(value) +
 ((expires) ? "; expires=" + expires_date.toGMTString() : "") +
 ((path) ? "; path=" + path : "") +
 ((domain) ? "; domain=" + domain : "") + ";";
 document.cookie=test;
}

function setWTC(value) {
 setWTCookie('OUI', value, 90, '/', '.postfinance.ch');
}

function openPopup(link, windowname, width, height) {
 popup = window.open(link, windowname,
 "width=" + width + ",height=" + height + ",left=100,top=200,resizable=yes,scrollbars=yes");
 popup.focus();
}

function openHelpbrowser(link) {
 openPopup(link, 'help', '900', '630');
}
