//あ

//javascript:document.write(encodeURI('文字化け調査')) 

//alert(1)

/*



Ajax / setRequestHeader()

*/



//document.write('<div><a href="http://jsgt.org/ajax2/"><img src="http://jsgt.org/ajax2/newmon/tools/img/book2.gif" width="80" height="102" border="0" align="left"></a>');

//document.write('  ');

//document.write('<br><h5>『入門Ajax 増補改訂版』（新版）</h5>←お待たせしました。<a href="http://www.amazon.co.jp/exec/obidos/ASIN/4797336242/ref%3Dnosim/javascriptsam-22/250-8516105-4220201">予約受付開始</a>しました。</div><hr>');



var jsonmenu =

{

	"link" :[

	{

		"row"  : "<a href='http://jsgt.org/mt/01/' target='_top'>JavaScript++%E3%81%8B%E3%82%82%E6%97%A5%E8%A8%98</a>%E3%81%AE%E3%82%AB%E3%83%86%E3%82%B4%E3%83%AA%E3%83%BC",

		"col"  : "Ajax",

		"text" : "Ajax",

		"href" : "http://jsgt.org/mt/archives/01/cat_ajax.html "

	},

	{

		"row"  : "<a href='http://jsgt.org/mt/01/' target='_top'>JavaScript++%E3%81%8B%E3%82%82%E6%97%A5%E8%A8%98</a>%E3%81%AE%E3%82%AB%E3%83%86%E3%82%B4%E3%83%AA%E3%83%BC",

		"col"  : "Ajax",

		"text" : "json", 

		"href" : "http://jsgt.org/mt/archives/01/cat_json.html "

	},

	{//Ajax ref

		"row"  : "Ajax ref",

		"col"  : "JavaScript",

		"text" : "setRequestHeader()", 

		"href" : "http://jsgt.org/ajax/ref/head_test/request/setRequestHeader1.php "

	},

	{//簡単なテスト: 基本 

		"row"  : "JSON",

		"col"  : "JavaScript",

		"text" : "%E7%B0%A1%E5%8D%98%E3%81%AA%E3%83%86%E3%82%B9%E3%83%88:%20%E5%9F%BA%E6%9C%AC", 

		"href" : "http://jsgt.org/ajax/ref/test/json/test1.htm "

	},

	{//型

		"row"  : "JSON",

		"col"  : "JavaScript",

		"text" : "%E5%9E%8B", 

		"href" : "http://jsgt.org/ajax/ref/test/json/test2.htm "

	},

	{//ダイナミックロード

		"row"  : "JS",

		"col"  : "JavaScript",

		"text" : "%E3%83%80%E3%82%A4%E3%83%8A%E3%83%9F%E3%83%83%E3%82%AF%E3%83%AD%E3%83%BC%E3%83%89", 

		"href" : "http://jsgt.org/ajax/ref/test/json/dload/test1.htm "

	},

	{//PHPでGET,POST 

		"row"  : "PHP",

		"col"  : "PHP",

		"text" : "PHP%E3%81%A7GET,POST",

		"href" : "http://jsgt.org/ajax/ref/test/json/getpost/test2.htm"

	},

	{//PHPでGET,POST(by my encode)

		"row"  : "PHP",

		"col"  : "PHP",

		"text" : "PHP%E3%81%A7GET,POST(by my encode)",

		"href" : "http://jsgt.org/ajax/ref/test/json/getpost/test2_myenc.htm"

	},

	{//PEARのJSONテスト 

		"row"  : "PHP",

		"col"  : "PHP",

		"text" : "PEAR(php)%E3%81%AEJSON%E3%83%86%E3%82%B9%E3%83%88",

		"href" : "http://jsgt.org/ajax/ref/test/php/pear/JSON/pear-json.php"

	},

	{// PHPとJSのURIエンコード比較

		"row"  : "PHP",

		"col"  : "PHP",

		"text" : "PHP%E3%81%A8JS%E3%81%AEURI%E3%82%A8%E3%83%B3%E3%82%B3%E3%83%BC%E3%83%89%E6%AF%94%E8%BC%83", 

		"href" : "http://jsgt.org/ajax/ref/charset_test/responsetext/php/urlencode.php"

	},

	{//PerlでGET,POST 

		"row"  : "Perl",

		"col"  : "Perl",

		"text" : "Perl%E3%81%A7GET,POST",

		"href" : "http://jsgt.org/ajax/ref/test/json/getpost/test3.htm"

	},

	{//CPANのJSONテスト

		"row"  : "Perl",

		"col"  : "perl",

		"text" : "CPAN(perl)%E3%81%AEJSON%E3%83%86%E3%82%B9%E3%83%88", 

		"href" : "http://jsgt.org/ajax/ref/test/perl/cpan-json.cgi "

	},

	{// Flash getURL 対 PHP/Perl 

		"row"  : "Flash+PHP,Perl",

		"col"  : "perl,php",

		"text" : "Flash%20getURL%20%E5%AF%BE%20PHP/Perl%20", 

		"href" : "http://jsgt.org/ajax/ref/test/json/flash/test1_fla1.htm"

	},

	{// Ajax

		"row"  : "%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E5%88%A5%E8%AA%BF%E6%9F%BB",

		"col"  : "JS",

		"text" : "%E3%83%AC%E3%82%B9%E3%83%9D%E3%83%B3%E3%82%B9%E3%81%AE%E3%82%BF%E3%82%A4%E3%83%9F%E3%83%B3%E3%82%B0", 

		"href" : "http://jsgt.org/ajax/ref/test/response/responsetext/try1.php"

	},

	{// Ajax文字化け調査responseText 

		"row"  : "%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E5%88%A5%E8%AA%BF%E6%9F%BB",

		"col"  : "JS",

		"text" : "%E6%96%87%E5%AD%97%E5%8C%96%E3%81%91%E8%AA%BF%E6%9F%BB Text", 

		"href" : "http://jsgt.org/ajax/ref/charset_test/responsetext/test_1_make_table.php"

	},

	

	{// application/x-www-form-urlencoded

		"row"  : "%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E5%88%A5%E8%AA%BF%E6%9F%BB",

		"col"  : "JS",

		"text" : "application/x-www-form-urlencoded", 

		"href" : "http://jsgt.org/ajax/ref/test/enctype/test1.htm"

	},

	{// AjaxでShift_JISやEUC_JPは使えるのか？1

		"row"  : "Ajax%E3%81%A7Shift_JIS%E3%82%84EUC_JP%E3%81%AF%E4%BD%BF%E3%81%88%E3%82%8B%E3%81%AE%E3%81%8B%EF%BC%9F",

		"col"  : "JS1",

		"text" : "-1-responseText", 

		"href" : "http://jsgt.org/ajax/ref/charset_test/responsetext/seu8/sample.htm"

	},

	{// AjaxでShift_JISやEUC_JPは使えるのか？2

		"row"  : "Ajax%E3%81%A7Shift_JIS%E3%82%84EUC_JP%E3%81%AF%E4%BD%BF%E3%81%88%E3%82%8B%E3%81%AE%E3%81%8B%EF%BC%9F",

		"col"  : "JS1",

		"text" : "-2-responseXML", 

		"href" : "http://jsgt.org/ajax/ref/charset_test/responsetext/seu8xml/sample.htm"

	},

	{// AjaSQL

		"row"  : "AjaSQL",

		"col"  : "AjaSQL",

		"text" : "AjaSQL%20test3", 

		"href" : "http://jsgt.org/ajax/ref/test/json/sql/test132.htm"

	},

	{// AjaSQL

		"row"  : "AjaSQL",

		"col"  : "AjaSQL",

		"text" : "AjaSQL%20%E3%83%81%E3%83%A3%E3%83%83%E3%83%88", 

		"href" : "http://jsgt.org/ajax/ref/test/json/sql/bbs2.htm"

	},

	{// Effect

		"row"  : "Effect now%20loading...",

		"col"  : "Effect",

		"text" : "1-1", 

		"href" : "http://jsgt.org/ajax/ref/effects/nowloading/test1.htm"

	},

	{// Effect

		"row"  : "Effect now%20loading...",

		"col"  : "Effect",

		"text" : "1-2", 

		"href" : "http://jsgt.org/ajax/ref/effects/nowloading/test2.htm"

	},

	{// Effect

		"row"  : "Effect now%20loading...",

		"col"  : "Effect",

		"text" : "1-3(progrss bar)", 

		"href" : "http://jsgt.org/ajax/ref/effects/nowloading/test3.htm"

	},

	{// Effect

		"row"  : "Effect now%20loading...",

		"col"  : "Effect",

		"text" : "1-4(progrss bar)", 

		"href" : "http://jsgt.org/ajax/ref/effects/nowloading/test4.htm"

	},

	{// Effect

		"row"  : "Effect now%20loading...",

		"col"  : "Effect",

		"text" : "1-5(progrss bar)", 

		"href" : "http://jsgt.org/ajax/ref/effects/nowloading/test5.htm"

	}

	]

}





window.onload = output 


/*

google_ad_client = "pub-7598465699071822";

// 200x90, 作成済み 08/02/12 

google_ad_slot = "8973558472";

google_ad_width = 200;

google_ad_height = 90;





google_ad_client = "pub-7598465699071822";

google_ad_width = 728;

google_ad_height = 90;

google_ad_format = "728x90_as";

google_ad_type = "text";

google_ad_channel ="3429954352";

google_color_border = "CCCCCC";

google_color_bg = "eeeeee";

google_color_link = "000000";

google_color_url = "666666";

google_color_text = "333333";



		var gog = ''

		gog +='<scr'+'ipt type="text/javas'+'cript"';

		gog +='  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">';

		gog +='</scr'+'ipt>';



ngurl = "bbs.php"		;

if(location.href.indexOf(ngurl)==-1){ document.write(gog) }

*/
    document.write('<!-- myadd1 --><scr'+'ipt type="text/javascript"');
    document.write('   charset="utf-8" ');
    document.write('  src="http://jsgt.org/ad/ad.js">');
    document.write('</scr'+'ipt>');
    document.write('<br><br>');



//onload時のコールバック関数用ダミー

//  ( 読み込み先にonLoadFnc()が無かった時用 )

function onLoadFnc(){}



	//メニュー

	function output()

	{

		//DIV へ出力

		document.getElementById('jsonmenu').innerHTML = '<!--<b>Ajax</b>(Asynchronous JavaScript + X)<b> Tests </b> <hr>--><font size=-1>'+ html +'<hr></font>'

		onLoadFnc()

	}

	

	//メニュー

	// 先に作っておく

	//

	var html = ""

	mkmenu();

	

	function mkmenu()

	{

	

		//JSONを使ってHTML文字列を作成

		html = mkHtml(jsonmenu)

	}





	//HTML生成

	function mkHtml(oj)

	{

		var str = ''

		oldrow = 0

		

		for (i in oj.link)

		{

			if(oj.link[i].row != oldrow )

				str += '<br><b>'+decodeURI(oj.link[i].row)+':: </b>'

				

			str += '| <a href="'+oj.link[i].href+'" target="_top">'

			str += decodeURI(oj.link[i].text)

			str += '</a> '

		//	str += '<br>'

		



			oldrow = oj.link[i].row

		}

		return str

	}



	//HTML生成

	function mkHtml0(oj)

	{

		var str = ''

		for (i in oj.link)

		{

			str += '| <a href="'+oj.link[i].href+'" target="_top">'

			str += decodeURI(oj.link[i].text)

			str += '</a> '

		//	str += '<br>'



		}

		return str

	}