//Urlcheck
function isUrl(s) {
	urlRE=/^http:\/\/[\w\.]/;
  //alert(urlRE.test(s)); 
  return urlRE.test(s);
}

//flash
function flash(id)
{
  setTimeout(id + ".style.background='#FF6A6A';",0);
  setTimeout(id + ".style.background='white';",400);
  setTimeout(id + ".style.background='#FF6A6A';",800);
  setTimeout(id + ".style.background='white';",1200);
  setTimeout(id + ".style.background='#FF6A6A';",1600);
  setTimeout(id + ".style.background='white';",2000);
}

//check ifthis is a number
function IsNumeric(sText)
{
var ValidChars = "0123456789.";
var IsNumber=true;
var Char;

for (i = 0; i < sText.length && IsNumber == true; i++)
{
Char = sText.charAt(i);
if ((i == 0) && (Char == "-")) // check first character for minus sign
continue;
if (ValidChars.indexOf(Char) == -1)
{
IsNumber = false;
}
}
return IsNumber;

}
