function getHTML(url)
{
  var myAjax = new Ajax.Request(
                   url,
                   {
                     method: 'get', onComplete:printTag
                   });
}

function printTag(httpObj)
{
  $("display").innerHTML = httpObj.responseText;
}

function deleteOK(url, purl)
{
	var myAjax = new Ajax.Request(
		url,
		{
		method: 'get', onComplete:checkPassword
		});

	function checkPassword(httpObj)
	{
		if (httpObj.responseText == 'n') {
			alert('パスワードが違います');
		} else {
			getHTML(purl);
		}
	}

	function getHTML(purl)
	{
		var myAjax = new Ajax.Request(
			purl,
			{
			method: 'get', onComplete:printTag
			});
	}

	function printTag(httpObj)
	{ 
		$("bbs").innerHTML = httpObj.responseText;
	}


}
