﻿function Openwindow(fn)
{
window.open(fn,null,
"height=300,width=300,status=no,toolbar=no,menubar=no,location=no, titlebar=no , scrollbars=yes");
          
}
function FakePasswordClick(objToDisplay)
{
    document.getElementById('span_password').style.display = '';
    document.getElementById(objToDisplay).focus();
    document.getElementById('span_fakepassword').style.display = 'none';
}

function ShowHideRegDiv(divname , as_event)
{
    if(document.getElementById("" + divname).style.display == 'none')
    {
        document.getElementById("" + divname).style.display = '';
        document.getElementById("" + divname).style.posLeft = as_event.clientX - 300;
        document.getElementById("" + divname).style.posTop = as_event.clientY + 13;
    }
    else
        document.getElementById("" + divname).style.display = 'none';
}
function fbs_click(u) 
{
        //u=location.href;
        //t=document.title;
        //u = "http://www.tenbook.co.il/DisplayBooksList.aspx"
        window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u),'sharer', 'toolbar=0, status=0, width=626, height=436');
        return false;
}

function tweeter_click(u) 
{
        window.open('http://twitter.com/home?status='+encodeURIComponent(u),'sharertweeter', 'toolbar=0, status=0, width=626, height=436');
        return false;
}

function mekusharim_click(u) 
{
        window.open('http://mekusharim.walla.co.il/share/share.aspx?url='+encodeURIComponent(u),'sharermekusharim', 'toolbar=0, status=0, width=626, height=436');
        //http://mekusharim.walla.co.il/share/share.aspx?url=http://www.yad2.co.il/Cars/4X4_info.php?CarID=156922&ref=mek&imagepath=http://images.yad2.co.il/Pic/201002/08/1_3/o/e1_3_1_177297_20100208120237-m.jpg&title=%D7%A4%D7%95%D7%9C%D7%A7%D7%A1%D7%95%D7%95%D7%92%D7%9F+-+%D7%98%D7%95%D7%90%D7%A8%D7%92+-+TDI+COMFORTLINE+R5+%D7%93%D7%99%D7%96%D7%9C+%D7%90%D7%95%D7%98%27+2.5&fixed=true&description=%D7%A0%D7%90+%D7%9C%D7%90+%D7%9C%D7%94%D7%AA%D7%A7%D7%A9%D7%A8+%D7%91%D7%A9%D7%91%D7%AA.+%D7%A4%D7%A8%D7%98%D7%99.+%D7%98%D7%A1%D7%98+%D7%9C%D7%A9%D7%A0%D7%94.%0D%0A%D7%97%D7%91%D7%99%D7%9C%D7%AA+%D7%A9%D7%98%D7%97+%23%D7%9E%D7%A7%D7%95%D7%A8%D7%99%D7%AA%23+%D7%A9%D7%9C+%D7%A4%D7%95%D7%9C%D7%A7%D7%A1%D7%95%D7%95%D7%92%D7%9F+%D7%94%D7%9B%D7%95%D7%9C%D7%9C%D7%AA+%D7%9E%D7%AA%D7%9C%D7%99+%D7%90%D7%95%D7%95%D7%99%D7%A8+%D7%94%D7%9E%D7%A9%D7%A0%D7%99%D7%9D+%D7%90%D7%AA+%D7%92%D7%95%D7%91%D7%94+%D7%94%D7%A8%D7%9B%D7%91+%D7%9C%D7%A4%D7%99+%D7%93%D7%A8%D7%99%D7%A9%D7%94.+-+%D7%9B%D7%95%D7%9C%D7%9C+%D7%97%D7%91%D7%99%D7%9C%D7%AA+%D7%A9%D7%98%D7%97+%D7%95%D7%A0%D7%A2%D7%99%D7%9C%D7%AA+%D7%93%D7%99%D7%A4%D7%A8%D7%A0%D7%A6%D7%99%D7%90%D7%9C+%D7%90%D7%97%D7%95%D7%A8%D7%99.+%D7%9B%D7%95%D7%9C%D7%9C+%D7%A4%D7%A0%D7%A1%D7%99+%D7%A7%D7%A1%D7%A0%D7%95%D7%9F+%D7%9E%D7%A7%D7%95%D7%A8%D7%99%D7%99%D7%9D.+%D7%9E%D7%97%D7%99%D7%A8%D7%95%D7%9F+%D7%9C%D7%95%D7%99+%D7%99%D7%A6%D7%97%D7%A7+05%2F2010+%D7%94%D7%95%D7%90+175%2C000+%D7%9C%D7%A4%D7%A0%D7%99+%D7%94%D7%97%D7%91%D7%99%D7%9C%D7%AA+%D7%A9%D7%98%D7%97.
        return false;
}








