function changeBrowseTitle(title)
{
	if (document.getElementById('browsetitle'))
	{
		document.getElementById('browsetitle').firstChild.nodeValue=title;
	}
}
        
function buildEmail(tunnus,domain){
    return 'mailto:'+tunnus+String.fromCharCode(64)+domain;
}

OverRide();

function avaaUutinen(url){
    uutinen=window.open( url,'Uutinen','scrollbars=1,status=0,toolbar=0,resizable=1,width=350,height=450');
    if ( uutinen.opener == null ) uutinen.opener = this;
    uutinen.focus();
}

function avaaSalasana(){
    salasana=window.open( 'forgot-password-new.asp','Salasana','scrollbars=1,status=0,toolbar=0,resizable=1,width=450,height=200');
    if ( salasana.opener == null ) salasana.opener = this;
    salasana.focus();
}

function avaaPalaute(){
    palaute=window.open( 'contact-form-new.asp','Palaute','scrollbars=1,status=0,toolbar=0,resizable=1,width=350,height=450');
    if ( palaute.opener == null ) palaute.opener = this;
    palaute.focus();
} 
         
function OverRide(){
    if (typeof( window[ 'NS_ActualOpen' ] ) != "undefined"){
        window.open=NS_ActualOpen;
    }
    if (typeof( window[ 'SymRealWinOpen' ] ) != "undefined"){
        window.open=SymRealWinOpen;
    }
}

function showdemo(lang){
    kcdemo=window.open( 'demo/burpanimation.asp?lang='+lang,'BurpAnimation','scrollbars=0,status=0,toolbar=0,resizable=0,width=600,height=380');
    if ( kcdemo.opener == null ) kcdemo.opener = this;
    kcdemo.focus();
}

var dummyimg=new Image();

function refreshSession(refresh){
	if (refresh==true)
	{
		dummyimg.src='refresh.asp' + cacheKiller();
	}
	refresher=setTimeout('refreshSession(true);',nTime);
}

function cacheKiller(){
	var today = new Date();
	var cache='?cache=' + today.getHours() + today.getMinutes() + today.getSeconds();
	return cache;
}