<!-- Begin
var visitor
var first
var lang
var now
var country

var eml  = ""
var del = false
var newlang
var brief

function setformmailurl()
{
<!--var formmailadres = "http://www.oifinland.org/scripts/formmail.pl"  //RESERVE-->
var formmailadres = "http://www.oife.org/cgi-bin/formmail.pl"
return formmailadres
}

function setexp(days)
{
var expDays = days;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
return exp
}

function setbrief(mins)
{
var brf = new Date();
brf.setTime(brf.getTime() + (mins*60*1000));
return brf
}

function getCookieVal (offset) 
{ 
var endstr = document.cookie.indexOf (";", offset);  
if (endstr == -1) { endstr = document.cookie.length; }
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) 
{
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) 
	{    
	var j = i + alen;    
	if (document.cookie.substring(i, j) == arg) return getCookieVal (j);    
	i = document.cookie.indexOf(" ", i) + 1;    
	if (i == 0) break;   
	}  
return null;
}


function SetCookie (name, value, expires, path) 
{
document.cookie = name + "=" + escape (value) + 
	((expires) ? "; expires=" + expires.toGMTString() : ""  ) + 
	((path) ? "; path=" + path : "") //+ 
	//((domain) ? "; domain=" + domain : ""  ) +    
	//((secure) ? "; secure" : "");
}

function CheckCookie(name)
{
if(GetCookie(name) != null)
 {return true}
else
 {return false}
}

function DelCookie (name, value, path) 
{
var exp = new Date();  
exp.setTime (exp.getTime() - 1);
var cval = value;
expiration = exp.toGMTString();
document.cookie = name + "=" + cval + 
"; expires=" + expiration + 
( (path) ? "; path=" + path : "") ;
}

function DeleteCookie (name) 
{  
var exp = new Date();  
exp.setTime (exp.getTime() - 1); 
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

function autoSubmitForm(formname)
{
formname.submit.disabled = false
formname.submit()
}

// End -->
