function openwin(filename)
{
  //	var newWindow = window.open(filename +".htm",'ARTVIEW','scrollbars=yes,status=no,resizable=no,width=440,height=420,border=0');
	var newWindow = window.open("artview/frog.htm",'ARTVIEW','scrollbars=yes,status=no,resizable=no,width=440,height=420,border=0');

	if (newWindow.opener == null)
		newWindow.opener = window;
	//else if(browserVer >=3.2)
	//	newWindow.focus();
}

function isFieldEmpty(fld, noCheckFlds)
{
  for(var i = 0; i < noCheckFlds.length; i++)
  {
	  if (fld.name == noCheckFlds[i])
     	return false;
  }

  switch(fld.type)
  {
		case "select-one":
			return (fld.selectedIndex == 0);

		default:
      if (fld.value.length == 0)
      	return true;

      str = fld.value;

      for(var i = 0; i < str.length; i++)
      {
        if(str.charAt(i) != ' ')
            return false;
     	}
  }

	return true;
}
