  function getFileName(fullFileName){
	dotIndex=fullFileName.lastIndexOf('.');
	slashIndex=fullFileName.lastIndexOf('\\');

	if(slashIndex==-1)
     slashIndex=fullFileName.lastIndexOf('/');	 
	
	if(fullFileName=="") 
	 return fullFileName;
	 
	if(dotIndex==-1)
	  return "-1";
		
	fileName=fullFileName.substring(slashIndex+1,dotIndex)+"";
	
//	alert("fileName= "+fileName);

	return fileName;
   }	
	
  function isInRange(str, minLength, maxLength){
	if(str!=null && (str.length>=minLength && str.length<=maxLength))
	 return true;

   return false;
  }

  function isEmpty(aTextField){
   if ((aTextField==null) || (aTextField.length==0))
    return true;
   else  
    return false; 
  }
	

