function OpenWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
function hideBar(){ 
    Element.setStyle('tickler', { display:'none' });
}
function serverTipOnYes(){
    hideBar();
    return OnChoose(true);
}
function serverTipOnNo(){
    hideBar();
    return OnChoose(false);
}
function serverTipOnClose(){
    hideBar();
    return OnDismiss();
}
function OnChoose(choice) {
    writeLightCookie("kuttokunamesrch", "1", "Mon, 04 Oct 2021 12:00:00 GMT");
    if (choice) {
        window.external.AddSearchProvider('http://name.kuttoku.com/searchplugins/kuttoku-name.xml');
        return false;
    }
}
function OnDismiss() {
    return false;
}
function writeLightCookie(n, v, d){
    document.cookie = n + "=" + v + ";expires=" + d;
}
function getCookie(c_name){
    var st="";
    var ed="";
    if (document.cookie.length>0){
        st=document.cookie.indexOf(c_name + "=");
        if (st!=-1){ 
            st=st+c_name.length+1;
            ed=document.cookie.indexOf(";",st);
            if (ed==-1) ed=document.cookie.length;
            return unescape(document.cookie.substring(st,ed));
        } 
    }
    return "";
}
function initLoad(){
    if (getCookie("kuttokunamesrch")==""){
        try { 
            if (window.external.IsSearchProviderInstalled('http://name.kuttoku.com/') > 0) {
            }else{
                var a = new Effect.Appear('tickler');
            }
        }
        catch(e){
        }
    }
}
