/**********************************************************/
// マイスクラップ登録用js 関数名：myscrap.entry
/**********************************************************/
function entryScrap(path, pageType){
	var url = location.href;
	$.ajax({
		beforeSend: function(){$.blockUI({ message: null})},
		url : path  + "myscrapentry",
		type : "post",
		data : ({ url: url , pType: pageType }),
		success: function(request) {statusView(request)},
		error: function(request) {$.blockUI({ theme: true, title: 'Infomation', message: '<p>登録に失敗しました。</p>', timeout: 2000 });}
	});
}

function statusView(request){
	$('#dialogView').html("<div id=\"dialog\" title=\"Information\">" + request + "</div>"); 
	$('#dialog').dialog({ autoOpen: true, width: 400, buttons: { "OK": function() { $(this).dialog("close"); $.unblockUI(); }}});
}
