// Dar de lata una  página en varios sites

function getDescription(defaultDesc) {

	var desc = defaultDesc;
	var metatags = document.getElementsByTagName("meta");
	
	for( var i = 0; i < metatags.length; i++) {
		if( metatags[i].getAttribute("name") != null)  {
			if (-1 != metatags[i].getAttribute("name").match(/description/i)) {
				desc = metatags[i].getAttribute("content");
			}
		}
	}
	return desc;		
}

function addpagetoDelicious(uname) {

var width = 750, height = 500;
var left = parseInt((screen.availWidth/2) - (width/2)); 
var top  = parseInt((screen.availHeight/2) - (height/2));
var props = "width="+width+",height="+height+",left="+left+",top="+top+",menubar=0,toolbar=0,location=0,status=0,resizable=1,scrollbars=1";
var title = document.title;

var desc = getDescription("Easyjob develops and markets software applications for resume writing, resume help, and provides resume examples");
var tags = "resume resumes job jobs career cv templates samples easyjob";
var url = "http://del.icio.us/"+uname+"/?url=" + encodeURIComponent(location.href)+ "&title=" + title + "&notes=" + desc+ "&tags=" + tags;
window.open(url,"",props);
return false;
}

function addpagetoMyweb() {

var desc = getDescription("Easyjob develops and markets software applications for resume writing, resume help, and provides resume examples");
var title = document.title;
var tags = "resume resumes job jobs career cv templates samples easyjob";
var url = "http://myweb.yahoo.com/myresults/bookmarklet?u="+encodeURIComponent(location.href)+"&t="+title+"&d="+desc+"&tag="+tags;
var props = "width=500,height=400,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50";
window.open(url,"",props,0); 
return false;

}

function addpagetoDigg() {

var desc = getDescription("Easyjob develops and markets software applications for resume writing, resume help, and provides resume examples");
var title = document.title;
var url = "http://www.digg.com/submit?phase=2&title="+title+"&bodytext="+desc+"&url="+encodeURIComponent(location.href);
var props = "width=950,height=600,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50";
window.open(url,"",props,0); 
return false;

}

function addpagetoFurl() {

var desc = getDescription("Easyjob develops and markets software applications for resume writing, resume help, and provides resume examples");
var title = document.title;
var tags= "resume, resumes, job, jobs, career, cv, templates, samples, easyjob"
var url = "http://www.furl.net/storeIt.jsp?u="+encodeURIComponent(location.href)+"&t="+title+"&description="+desc+"&keywords="+tags;
var props = "width=475,height=540,left=75,top=20,resizable=yes";
window.open(url,"",props,0); 
return false;

}

function addpagetoReddit() {

var title = document.title;
var url = "http://reddit.com/submit?url="+encodeURIComponent(location.href)+"&title="+title;
var props = "width=500,height=400,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50";
window.open(url,"",props,0); 
return false;

}

function addpagetoNewsVine() {

var title = document.title;
var url = "http://www.newsvine.com/_wine/save?u="+encodeURIComponent(location.href)+"&h="+encodeURIComponent(title)+"&t=resume, resumes, job, jobs, career, cv, templates, samples, easyjob";
var props = "toolbar=no,width=590,height=480";
window.open(url,"newsvine",props,0); 
return false;

}

function addpagetoBlogger() {

var title = document.title;
var desc = getDescription("Easyjob develops and markets software applications for resume writing, resume help, and provides resume examples");
var url = "http://www.blogger.com/blog_this.pyra?t=" + desc + "&u=" + encodeURIComponent(location.href) + '&n=' + escape(title);
var props = "scrollbars=no,width=475,height=300,top=175,left=75,status=yes,resizable=yes";
window.open(url,"bloggerForm",props); 
return false;

}
