function checkLen(Fstr) 
{  
	var val = Fstr;
	var len = val.length;
	if (navigator.appName!="Netscape")
	{ 
		var s = 0;
		var total = 0;
		while (s < len) 
		{
			 chr = val.charAt(s);
			 if((chr >= '.') && (chr <= '€')) 
				  { total++;  } 
			 else { total+=2; }
			 s++;
		} 
	} 
	else { total = len ; }
	return total;
}

function checkBlank(str) {
	for (var n=0; n < str.length; n++)  {
		var thisChar = str.substring(n, n+1);
		if(thisChar == " ") {
			return true;
		}
	}
	return;	
}

function isNum(num_Val) {
  var numStr="0123456789- ";
  var thisChar;
  var counter = 0;
  for (var n=0; n < num_Val.length; n++)  {
 thisChar = num_Val.substring(n, n+1);
 if (numStr.indexOf(thisChar) != -1)
counter ++;
  }
  if(counter == num_Val.length) return true;
  else return;
}

function OpenWin(popwidth,popheight,popname,popurl)
{
	LeftPosition=(screen.width)?(screen.width-popwidth)/2:100;
	TopPosition=(screen.height)?(screen.height-popheight)/2:100;
	
	window.open(popurl,popname,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,top='+TopPosition+',left='+LeftPosition+',copyhistory=0,width='+popwidth+',height='+popheight);
}
