﻿
function oncomment()
{
	if( !logined() )
	{
		window.location = "/login.aspx";
		return;
	}
	
	var comment = encodeURIComponent( getobj( "Comment" ).value );
	ajaxrequest( "newsdetailajax.aspx?cmd=comment&comment=" + comment + "&newsid=" + getURLparameter("id"), doContents);
	function doContents( str )
	{
		getobj( "idcomments" ).innerHTML = str;
		setLocalTime( getobj("idcomments"), "MMM dd yyyy hh:mm" );
		getobj( "Comment" ).value;
	}
}

function timelocal()
{
	var a = document.getElementsByName("asdf");
	alert( a.length );
	for( var i = 0, n = a.length; i < n; i++ )
	{
		setLocalTime( a[i], "MMM dd hh:mm" );
	}
}

