jQuery.ajax({
	type: "GET",
	url: checklogin
});

function aggiungibookmark(idasset) {

	if (urlbookmark.indexOf("?") > 0) {
		urlbookmark += '&idasset='+ idasset;
	} else {
		urlbookmark += '?idasset='+ idasset;
	}
		var div = document.getElementById('bookmark'); 
		jQuery.ajax({
			type: "GET",
			url: urlbookmark,
			success: function(data){
					var response = data || "no response text";
					div.innerHTML=response;
					div.style.color="#FF0000";
					if(response.indexOf('EFFETTUARE LOGIN') > 0 || response.indexOf('LOGIN') > 0){
						Intoscana.showLayer('310','auto',userlogin,'usrToolBar');
					}
				},
			error: function(){
					div.innerHTML="error";
				}
		});
}

function aggiungibookmarkenti(idasset) {

	var urlbookmarkenti = urlbookmark;
	if (urlbookmark.indexOf("?") > 0) {
		urlbookmarkenti += '&idasset='+ idasset;
	} else {
		urlbookmarkenti += '?idasset='+ idasset;
	}
		var div = document.getElementById(idasset); 
		jQuery.ajax({
			type: "GET",
			url: urlbookmarkenti,
			success: function(data){
					var response = data || "no response text";
					div.innerHTML=response;
					div.style.color="#FF0000";
					if(response.indexOf('EFFETTUARE LOGIN') > 0 || response.indexOf('LOGIN') > 0){
						Intoscana.showLayer('310','auto',userlogin,'usrToolBar');
					}
					if(response.indexOf('BOOKMARK ADDED') > 0 || response.indexOf('BOOKMARK AGGIUNTO') > 0){
						filtroCatTAG();
					}
				},
			error: function(){
					div.innerHTML="error";
				}
		});

}

function aggiornamentoSelect(){
	jQuery.ajax({
		type: "GET",
		url: urlbookmark+"&m=select",
		success: function(data){
			document.getElementById('selectDiv').innerHTML = "<select id=\"categoriaTAG\" name=\"categoriaTAG\" size=\"1\">"+data+"<\/select>";
			jQuery('select').each(function(){
				jQuery(this).skin();
			});
		}
	});
}

