function checkFileUpload()
{
  return false
}
function checkItemRedirect( a1, a2, a3)
{
  return false;
}
function checkUploadFile( name)
{
  if ( document.fform.elements[""+name+""].value == "" )
  {
    return false;
  }
  else
  {
    return true;
  }
}
function checkUploadFileOnServer( name)
{
  return 1;
}
function getPostVars( name)
{
  return document.fform.elements[""+name+""].value;
}
function trim( str)
{
  pos1 = 0;
  pos2 = str.length-1;
  while( pos1 < pos2 && str.substr( pos1, 1) == " " ) pos1++;
  while( pos2 > 0 && str.substr( pos2, 1) == " " ) pos2--;
  return str.substr( pos1, pos2-pos1+1);
}
function checkEmail( email)
{
  if ( !(
         email.indexOf("@")>0
         && email.indexOf(".")>0
         && email.indexOf(".")+1<email.length
         && email.indexOf("@")+1<email.length
        )
      )
    {
      return false;
    }
    else
    {
      return true;
    }
}

function isNumeric( value )
{
  v2 = value;
  v2 = v2-1+1;
  if ( value != "" && value == v2 )
  {
    return true;
  }
  else
  {
    return false;
  }
}

function checkExtention( path, extentions)
{
  if ( path.lastIndexOf( ".") != -1 )
    ext = path.substr( path.lastIndexOf( ".")+1); 
  else
    ext = "";
  in_ = false;
  extentions = extentions.split( ",");
  for( i in extentions){
    if ( ext == extentions[i] ){
      in_ = true;
      break;
    }
  }
  return in_;
}

function formDataVarValue( name)
{
  return document.fform.elements["form_data["+name+"]"].value;
}
function formDataCheckboxStatus( name)
{
  return document.fform.elements["form_data["+name+"]"].checked;
}
function validURL( value) {
	var rg = /[^0-9A-z\._-]/i
    return !rg.test(value);
}
