function refobj(obj)
{
	if(document.getElementById){
		return document.getElementById(obj);
	}else if(document.all){
		return eval('document.all.' + obj);
	}else{
		return false;
	}
}

function nico_limg(src_postf, src_url, src_url2, title, text){
	r0 = refobj('nico_dest');
	r1 = refobj('nico_dest2');
	r2 = refobj('nico_dest3');
	r3 = refobj('nico_dest4');
//	rn = refobj('nico_'+src_postf);
	if(r0 != null) r0.src = src_url;
	if(r1 != null) r1.href = src_url2;
	if(r2 != null) r2.innerHTML = title;
	if(r3 != null) r3.innerHTML = text;
//	r2.firstChild.nodeValue = title;
//	r3.firstChild.nodeValue = text;
	return true;
}

function nico_limg2(src_postf, src_url, src_url2){
	r0 = refobj('nico_dest_'+src_postf);
	r1 = refobj('nico_dest2_'+src_postf);
	if(r0 != null) r0.src = src_url;
	if(r1 != null) r1.href = src_url2;
	return true;
}
