
function convertMoji2_shtml(t){
	var s="",moji="";
	for(var i=0;i<t.length;i++){
		moji=t.charCodeAt(i);
		s +=String.fromCharCode(moji+1);
	}
		return s;
}

function ChangePicture(myPicURL,CMT1,CMT2){
	document.images["illust_disp"].src = myPicURL;
	document.getElementById("cmp1").innerText = CMT1;
	document.getElementById("cmp2").innerText = CMT2;
	/* Fire Fox */
	document.getElementById("cmp1").textContent = CMT1;
	document.getElementById("cmp2").textContent = CMT2;
	/* Netscape */
	document.getElementById("cmp1").innerHTML = CMT1;
	document.getElementById("cmp2").innerHTML = CMT2;
}

function openwindow(url,name){
	x = (screen.width - 700)/2;
	y = (screen.height - 600)/2;
	window.open(url,name,'top=' + y + ',left=' + x + ',height=600,width=700,status=yes,toolbar=no,menubar=no,location=no, scrollbars=yes');
}

function preloadImage(){
	img = new Array("img/img0.jpg","img/img1.jpg","img/img2.jpg","img/img3.jpg");
	bfImg = new Array();
	for(i=0; i<img.length; i++) {
	  bfImg[i] = new Image();
	  bfImg[i].src = img[i];
	}
}

function swapImage(name,img){
	document.images[name].src = img;
}

function getmad(){
	var tmp;
	tmp = "@";
	return "info" + tmp + "gam.ebb." + "j" + "p";	
}