if (top.location != location) { top.location.href = document.location.href; }


function ajax(link) 
{

$("#frame").fadeTo(0,0.0);
$("#frame").empty().append('<div align="center"><img src="/~images/loading.gif"><br />Please wait to loading this page...<br /></div>').fadeTo(0,1.0);



	$.ajax(
	{
		type: "POST",
		url: 'core.php',
		data: "op="+link,
		cache: false,
		success: function(msgc)
		
		{
			$("#frame").fadeTo(0,0.0);
			$("#frame").empty().append(msgc).fadeTo(300,1.0);
			
		}
	});
}

function doc(field)
{
	return escape(document.getElementById(field).value);
}

$('#img').click(
	function()
	{
		alert($(this).attr('href'));
		return false;
	}
);