//function to set as home page
function setHomePage(obj) {
    var isIE = document.all ? true : false;
    var isNS6 = (document.getElementById && !isIE) ? true : false;
    var isOther = (!isIE && !isNS6);
    var link = document.getElementById('setas');
    var stylesh =
                '<style type="text/css">'
                + 'body {background:#ffffff; font-family:Arial, Helvetica, Geneva, sans-serif; font-size:12px; color:#oooooo;}'
                + 'a:link, a:visited, a:hover, a:active {color:#0000ff;}'
                + '.purplebuttontext {color:#000000; font-weight:bold; font-size:12px; line-height:12px; font-family:Arial, Helvetica, Geneva, sans-serif; text-decoration:none}'
                + 'a.purplebutton {padding:1px 6px 1px 6px; border:2px outset #cccccc; background:#eeeeee; color:#000000; text-decoration:none; height:19px; vertical-align:middle;}'
                + 'a.purplebutton:focus, a.purplebutton:hover {border:2px inset #cccccc; vertical-align:middle; background:#eeeeee; color:#000000; text-decoration:none;}'
                + '</style>';

    var closewin = '<table width="100%"><tr><td class="purplebuttontext" align="left"><a href="#" class="purplebutton" onClick="window.close();">Close window</a></td></tr></table>';

    if (isIE) {
        eval("link.style.behavior=\'url(#default#homepage)\';");
        eval("link.setHomePage(\'http://www.a.co.il');");
    }

    // If its Netscape 6, tell user to drag link onto Home button
    else if (isNS6) {
        var win = window.open('', 'HomePage', 'width=180,height=80');
        win.document.write(stylesh + 'Drag this link <A ondrag="window.close();" HREF="http://www.a.co.il">a.co.il<A><br>to a Homepage button <br>to set a homepage' + closewin);
    }
    else {
        var win = window.open('', 'HomePage', 'width=180,height=80');
        win.document.write(stylesh + '<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.<p>' + closewin);
    }
}//setHomePage function

