
var BCS_formatlength = new Array();
BCS_formatlength['ppt8'] = "1";
BCS_formatlength['msw8'] = "1";
BCS_formatlength['pdf'] = "1";
BCS_formatlength['excel8book']="2";
BCS_formatlength['zip']="1";

var BCS_formatfullName=new Array();
BCS_formatfullName['ppt8'] = "PowerPoint &#174; slide";
BCS_formatfullName['msw8'] = "Microsoft Word Document";
BCS_formatfullName['pdf'] = "Portable Document";
BCS_formatfullName['excel8book'] = "Excel Document";
BCS_formatfullName['zip'] = "zip"; 



//var display_text=null;

function BCS_CheckInputFormat(item)
{
 //debugger;
var display_text=null;
  for(var itemcount=0;itemcount<item.qpc.length;itemcount++)
	{
			for (var format in BCS_formatlength) {
				if(format==item.qpc[itemcount].iff)
				{
                   if(parseInt(item.qpc[itemcount].rcsize) > parseInt(BCS_formatlength[format]))
						{
                           display_text= BCS_formatfullName[format];
						   
						}
				}
			}
	}
	return display_text;
}




