function openwin(URL,namn,w,h,scrollbars)
	{ 
	var win = null;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrollbars+',resizable=yes,status=no'
	win = window.open(URL,namn,settings);
	win.focus();
	}


function isnum(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }

function reloadpage(strlang, strselbox)
    {
    var strLangkod;
    var oselbox
    if (strselbox=='')
        {
        strLangkod=strlang;
        }
    else
        {
        oselbox = document.getElementById(strselbox);
        strLangkod = oselbox.options[oselbox.selectedIndex].value;
        }
    parent.window.location="http://" + location.hostname + "/index.asp?lang=" + strLangkod
    }