/*function redirect(wordID, urlID){
	if (document.getElementById("checkCookie").checked == true) {
		window.location.href = "proc.jsp?actionID=24&wordID=" + wordID + "&cookie=checked&urlID=" + urlID;
		return;
	} else {
		window.location.href = "proc.jsp?actionID=24&wordID=" + wordID + "&urlID=" + urlID;
		return;	
	}
}
*/
//Facebook
function openSharedPopUp(url) {
	if (url == '') {
		url = window.location;
	}
	window.open('http://www.facebook.com/sharer.php?u=' + url ,'ventanacompartir', 'toolbar=0, status=0, width=650, height=450');
}

//Twitter compartilhando Link
function sharedLinkTwitter(url, text) {
	window.location= "https://twitter.com/share?url=" + encodeURI(url) + "&text=" + text;
}

//E-mail
function sharedPageEmail(){
	var url = window.location;
	top.location.href = "indic.jsp?url="+encodeURI(url);
}

function historyEmail(urlID){
	window.location.href = "proc.jsp?actionID=25&urlID=" + urlID;
	return;	
}

function createCookie(keyword){
	$(document).ready(function() {
		 $.get("/proc.jsp", { actionID: 24 }, function(response) {
		});
	});
}


