Today I got Requirement to Filter Potential Customer for Opportunity to show only accounts.This can be achieved only just putting one line in Opportunity form load
//To Show Only Account
crmForm.all.customerid.setAttribute(“lookuptypes”,”1″);
//To Show only Contact
crmForm.all.customerid.setAttribute(“lookuptypes”,”2″);
Done !!!