// hmmmm...
function gmof() {
	if(top.location!=self.location) top.location=self.location;
	//document.all.NAME.focus();
}
function hogehoge() {
	window.location.reload();
}
function checktextlength(field, len) {
	if(field.value.length > len)
	field.value = field.value.substr(0, len);
} 
// IE may barf on this
function hogepage() {
	if (document.images)
	  location.replace(location.href + '?' + (new Date()).getTime());
	else
	  location.href = location.href + '?' + (new Date()).getTime();
}
function hogenow() {
	var lastTime = location.search.substring(1) - 0;
	if ((new Date()).getTime() - lastTime > 1000)
	  hogepage();
}
function whack(datthere) {
	datthere.elements['old'].value = '';
	datthere.elements['new'].value = '';
	datthere.elements['again'].value = '';
}
function tsfldbg(objElement) {
	if (objElement.className=='fsready')
	  objElement.className='fsactive';
	else
	  objElement.className='fsready';
}
function tfldbg(objElement) {
	if (objElement.className=='fready')
	  objElement.className='factive';
	else
	  objElement.className='fready';
}
function txfldbg(objElement) {
	if (objElement.className=='fxready')
	  objElement.className='fxactive';
	else
	  objElement.className='fxready';
}
function flipimg() {
	var i, j = 0, x, a = flipimg.arguments;
	document.isr = new Array;
	for (i = 0; i < (a.length - 2); i += 3) {
	  if ((x = locateimg(a[i])) != null) {
	    document.isr[j++] = x;
	    if (!x.oSrc)
	      x.oSrc = x.src;
	      x.src = a[i + 2];
	  }
  }
}
function restoreimg() {
  var i, x, a = document.isr;
	for (i = 0; a && i < a.length&&(x = a[i]) && x.oSrc; i++)
	  x.src = x.oSrc;
}
function locateimg(n, d) {
	var p, i, x;
	if (!d) d = document;
	if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
	  d = parent.frames[n.substring(p + 1)].document;
	  n = n.substring(0, p);
	}
  if (!(x = d[n]) && d.all)
	  x = d.all[n];
	for (i = 0; !x && i < d.forms.length; i++)
	  x = d.forms[i][n];
  for (i = 0; !x && d.layers && i < d.layers.length; i++)
	  x = locateimg(n, d.layers[i].document);
	return x;
}
function gttop() { window.scrollTo(0,0); }
function qvopenup() {
	var answer = confirm("This will open a huge window!");
	if (answer){
	window.open('http://dvoi.com/x/','quadview','height=1024,width=1280,resizable=no,toolbar=no,fullscreen=yes,directories=no,location=no,menubar=no,status=no,scrollbars=no');
	}
}

