function subWin(theURL,winName,features)
{
  window.open(theURL,winName,features);
}

function setImage(adrs)
{
    document.saku.src = adrs;
}

function LinkSelect(form, sel)
{
	adrs = sel.options[sel.selectedIndex].value;
	if (adrs != "-" ) location.href = adrs;
}

function infoSelect(form, sel)
{
	adrs = sel.options[sel.selectedIndex].value;
	if (adrs != "-" ) parent.infoframe.location.href = adrs;
}

function shake_x(n) {
	if (self.moveBy) {
		for (i = 10; i > 0; i--) {
		for (j = n; j > 0; j--) {
			self.moveBy(i,0);
			self.moveBy(-i,0);
			}
		}
	}
}

function shake_y(n) {
	if (self.moveBy) {
		for (i = 10; i > 0; i--) {
		for (j = n; j > 0; j--) {
			self.moveBy(0,i);
			self.moveBy(0,-i);
			}
		}
	}
}

flag=0;
function formclear(target) {
  if (target=='before') {
    if (flag==0) {
      flag=1;
      document.message.comment.value = "";
    }
  }
  else {
    document.message.comment.value = "";
  }
}
