﻿function bookmark(){
 window.external.AddFavorite(location.href,document.title );
 }
 

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;

  
window.open(href, windowname, 'width=465,height=350,scrollbars=no');
return false;

}

function plsfb(){
/*
Facebook ekle
*/
window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(location.href)+"&amp;t="+encodeURIComponent(document.title),"poplekle","width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes");
}

function plsrd(){
/*
Reddit ekle
*/
window.open("http://reddit.com/submit?url="+encodeURIComponent(location.href)+"&amp;title="+encodeURIComponent(document.title),"poplekle","width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
}

function plsdg(){
/*
Digg ekle
*/
window.open("http://digg.com/submit?phase=2&amp;url="+encodeURIComponent(location.href)+"&amp;bodytext="+encodeURIComponent(metadesc())+"&amp;tags="+encodeURIComponent(metakeys())+"&amp;title="+encodeURIComponent(document.title),"poplekle","width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
}

function plsds(){
/*
del.icio.us ekle
*/
window.open("http://del.icio.us/post?v=2&amp;url="+encodeURIComponent(location.href)+"&amp;notes="+encodeURIComponent(metadesc())+"&amp;tags="+encodeURIComponent(metakeys())+"&amp;title="+encodeURIComponent(document.title),"poplekle","width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
}
function plsjt(){
/*
Jumptags ekle
*/
window.open("http://www.jumptags.com/add/?url="+encodeURIComponent(location.href)+"&amp;title="+encodeURIComponent(document.title),"poplekle","width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
}

function plssy(){
/*
Simpy ekle
*/
window.open("http://www.simpy.com/simpy/LinkAdd.do?title="+encodeURIComponent(document.title)+"&amp;tags="+encodeURIComponent(metakeys())+"&amp;note="+encodeURIComponent(metadesc())+"&amp;href="+encodeURIComponent(location.href),"poplekle","width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
}

function plsgg(){
/*
Google ekle
*/
window.open("http://www.google.com/bookmarks/mark?op=add&amp;hl=en&amp;bkmk="+encodeURIComponent(location.href)+"&amp;annotation="+encodeURIComponent(metadesc())+"&amp;labels="+encodeURIComponent(metakeys())+"&amp;title="+encodeURIComponent(document.title),"poplekle","width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");

}
function plslv(){
/*
Live ekle
*/

window.open( "https://favorites.live.com/quickadd.aspx?marklet=1&amp;url="+encodeURIComponent(location.href)+"&amp;title="+encodeURIComponent(document.title),"poplekle","width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
}

function plsms(){
/*
mySpace ekle
*/
window.open("http://www.myspace.com/Modules/PostTo/Pages/?u="+encodeURIComponent(location.href)+"&amp;t="+encodeURIComponent(document.title),"poplekle","width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");

}

/*
,"poplekle","width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"
*/


function metakeys(){
var obj;
var keys="";

    if(document.getElementsByName("keywords").length > 0)
    {
        obj  = document.getElementsByName("keywords");
        keys = obj(0).content;
    }
    return keys;
}

function metadesc(){
var obj;
var desc="";

    if ( document.getElementsByName("description").length > 0)
    {
        obj = document.getElementsByName("description");
        desc = obj(0).content;
    }
return desc;
}
function sendto()
{
window.open("http://www.turkishexporter.net/v3/pages/sendto.aspx?url="+encodeURIComponent(location.href) +"&title="+encodeURIComponent(document.title),"poplekle","width=400,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
}




