function DynamicCities(pnum,pnam)
{
	url = "http://otokoi.com/pcm/citieslist.js.php?pref=" + pnum + "&pnam=" + pnam;
	dynamicLoad(url);
}
function DynamicCitiesParam(pnum,pnam)
{
	url = "http://otokoi.com/pcm/citieslist.js.php?pref=" + pnum + "&pnam=" + pnam + "&opts=parm";
	dynamicLoad(url);
}
function DynamicCitiesFREE(pnum,pnam)
{
	url = "http://otokoi.com/pcm/citieslist.js.php?pref=" + pnum + "&pnam=" + pnam + "&opts=free";
	dynamicLoad(url);
}

function dynamicLoad(jsFileName)
{
	//--for cache 
	var now = new Date();
	var getData = jsFileName+'&nc='+now.getTime();
	if( document.all ){ 
		if( navigator.userAgent.indexOf("Win")!=-1 ){
			//--for document.all && Win
			eval(document.all('dynld')).src = getData;
		} else if( navigator.userAgent.indexOf("Mac")!=-1 ){
			//--for document.all && Mac
			document.body.insertAdjacentHTML('BeforeEnd'
				,'<scr'+'ipt src="'+getData+'"><scr'+'ipt/>');
		}
	} else if(document.getElementById){
		//--for w3c-dom  widthout document.all 
		var cnode = document.getElementById('dynld');
		var nnode = document.createElement('script');
		nnode.src = getData;
		nnode.id  = 'dynld';
		cnode.parentNode.replaceChild(nnode,cnode);
	} else {
		//--for nondhtml(n4...)
		if(document.images){
			var datasrc   = new Image();
			datasrc.src   = getData;
			location.href = datasrc.src;
		}
	}
}
document.write('<scr'+'ipt id="dynld"></scr'+'ipt>');
/*====================ページ構築後外部js取得用関数ここまで*/
